From root@daveg.ca  Mon Jun  5 19:54:04 2006
Return-Path: <root@daveg.ca>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 4270F16C6C2
	for <freebsd-gnats-submit@freebsd.org>; Mon,  5 Jun 2006 19:54:04 +0000 (UTC)
	(envelope-from root@daveg.ca)
Received: from ox.eicat.ca (ox.eicat.ca [66.96.30.35])
	by mx1.FreeBSD.org (Postfix) with ESMTP id EBB9D43D46
	for <freebsd-gnats-submit@freebsd.org>; Mon,  5 Jun 2006 19:54:03 +0000 (GMT)
	(envelope-from root@daveg.ca)
Received: by ox.eicat.ca (Postfix, from userid 66)
	id 2362316BD3; Mon,  5 Jun 2006 15:54:03 -0400 (EDT)
Received: by canoe.dclg.ca (Postfix, from userid 0)
	id 4C1244AC2D; Mon,  5 Jun 2006 15:53:55 -0400 (EDT)
Message-Id: <20060605195355.4C1244AC2D@canoe.dclg.ca>
Date: Mon,  5 Jun 2006 15:53:55 -0400 (EDT)
From: David Gilbert <dgilbert@daveg.ca>
Reply-To: David Gilbert <dgilbert@daveg.ca>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: tun man page references obsolite ioctl
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         98541
>Category:       docs
>Synopsis:       tun man page references obsolite ioctl
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    trhodes
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 05 20:00:42 GMT 2006
>Closed-Date:    Mon Oct 09 19:22:10 GMT 2006
>Last-Modified:  Fri Nov  3 09:00:37 GMT 2006
>Originator:     David Gilbert
>Release:        FreeBSD 6.1-STABLE i386
>Organization:
DaveG.ca
>Environment:
System: FreeBSD canoe.dclg.ca 6.1-STABLE FreeBSD 6.1-STABLE #7: Sun Jun 4 18:23:37 EDT 2006 dgilbert@canoe.dclg.ca:/usr/src/sys/i386/compile/CANOE i386


As above
>Description:
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
>Fix:


*** tun.4.orig	Mon Jun  5 15:49:27 2006
--- tun.4	Mon Jun  5 15:51:12 2006
***************
*** 65,73 ****
  Each interface supports the usual network-interface
  .Xr ioctl 2 Ns s ,
  such as
! .Dv SIOCSIFADDR
! and
! .Dv SIOCSIFNETMASK ,
  and thus can be used with
  .Xr ifconfig 8
  like any other interface.
--- 65,71 ----
  Each interface supports the usual network-interface
  .Xr ioctl 2 Ns s ,
  such as
! .Dv SIOCAIFADDR
  and thus can be used with
  .Xr ifconfig 8
  like any other interface.


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: trhodes 
State-Changed-When: Mon Oct 9 19:15:48 UTC 2006 
State-Changed-Why:  
Slightly different version of the patch committed, I just 
added a comma.  Thanks for the submission! 


Responsible-Changed-From-To: freebsd-doc->trhodes 
Responsible-Changed-By: trhodes 
Responsible-Changed-When: Mon Oct 9 19:15:48 UTC 2006 
Responsible-Changed-Why:  
Over to me, MFC reminder. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=98541 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: docs/98541: commit references a PR
Date: Mon,  9 Oct 2006 19:21:06 +0000 (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"
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: docs/98541: commit references a PR
Date: Fri,  3 Nov 2006 08:50:44 +0000 (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"
 
>Unformatted:
