Bug 98541

Summary: tun man page references obsolite ioctl
Product: Documentation Reporter: David Gilbert <dgilbert>
Component: Books & ArticlesAssignee: Tom Rhodes <trhodes>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description David Gilbert 2006-06-05 21:00:42 UTC
tun.4 currently references SIOCSIFADDR.  When asking about this,
I received:

From: "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>
To: David Gilbert <dgilbert@dclg.ca>
Cc: freebsd-hackers@freebsd.org
Date: Mon, 5 Jun 2006 19:36:20 +0000 (UTC)
X-SpamProbe: GOOD 0.0000051 239939e801214c8c84129231bc5ca32c

On Mon, 5 Jun 2006, David Gilbert wrote:

> I read in the if_tun manpage that it supports SIOCSIFADDR (such that
> it works with ifconfig).  I like examples, so I search the ifconfig
> source code for SIOCSIFADDR.  None.  Then I search the entire source
> tree.  ppp uses it to set the IPX address.  Obviously SIOCSIFADDR is
> not the preferred way to do this anymore.  Hints?

SIOCSIFADDR/SIOCSIFDSTADDR was deprecated about 10 years ago. See
man 4 netintro /Calls which are now deprecated are .
If you want SIOCSIFADDR/SIOCSIFDSTADDR for tun you need a patch I
have in my tree.
SIOCAIFADDR is what you really want. Look at ppp sources for examples
for example.

How-To-Repeat: man 4 tun
Comment 1 Tom Rhodes freebsd_committer freebsd_triage 2006-10-09 20:15:48 UTC
State Changed
From-To: open->closed

Slightly different version of the patch committed, I just 
added a comma.  Thanks for the submission! 


Comment 2 Tom Rhodes freebsd_committer freebsd_triage 2006-10-09 20:15:48 UTC
Responsible Changed
From-To: freebsd-doc->trhodes

Over to me, MFC reminder.
Comment 3 dfilter service freebsd_committer freebsd_triage 2006-10-09 20:21:06 UTC
trhodes     2006-10-09 19:20:53 UTC

  FreeBSD src repository

  Modified files:
    share/man/man4       tun.4 
  Log:
  The SIOCSIFNETMASK ioctl was removed from tun.c, thus remove mention of
  it in the tun.4 manual page.
  
  PR:             98541
  Submitted by:   David Gilbert
  
  Revision  Changes    Path
  1.22      +1 -3      src/share/man/man4/tun.4
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 4 dfilter service freebsd_committer freebsd_triage 2006-11-03 08:50:44 UTC
trhodes     2006-11-03 08:50:26 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_6)
    share/man/man4       tun.4 
  Log:
  MFC:
    The SIOCSIFNETMASK ioctl was removed from tun.c, thus remove mention of
    it in the tun.4 manual page.
  
    PR:             98541
    Submitted by:   David Gilbert (In actuality it was submitted by bz@)
  
  Approved by:    re (hrs)
  
  Revision  Changes    Path
  1.21.2.1  +2 -4      src/share/man/man4/tun.4
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"