History log of /freebsd-10.1-release/share/man/man9/ifnet.9
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 272461 02-Oct-2014 gjb

Copy stable/10@r272459 to releng/10.1 as part of
the 10.1-RELEASE process.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


# 249928 26-Apr-2013 glebius

Document constantness of dst argument to if_output.

Submitted by: pluknet


# 235693 20-May-2012 gjb

Typo and mdoc(7) style fixes.

PR: 168117
Submitted by: Nobuyuki Koganemaru (kogane&jp!freebsd!org)
MFC after: 3 days


# 233370 23-Mar-2012 pluknet

Expand contraction.

Spotted by: bjk


# 233348 23-Mar-2012 pluknet

Update IFCAP_* macro descriptions.

Reviewed by: attilio (polling part, a previous version)
MFC after: 1 week


# 233347 23-Mar-2012 pluknet

Clean up from the old kern.polling.

Reviewed by: attilio
MFC after: 1 week


# 233340 23-Mar-2012 pluknet

Document IFT_USB referenced by IFF_CANTCONFIG since the previous change,
so that ifnet(9) is self contained.

MFC after: 1 week


# 233339 23-Mar-2012 pluknet

Update IFF_* macro descriptions.

MFC after: 1 week


# 233232 20-Mar-2012 pluknet

Update the list of struct ifnet fields.
- Document if_vnet, if_home_vnet, if_carp, if_vlantrunk, if_multiaddrs,
if_amcount, if_addr, if_llsoftc stub, if_broadcastaddr, if_bridge,
if_label, if_afdata, if_afdata_initialized, if_afdata_lock, if_linktask,
if_addr_mtx (now if_addr_lock), if_clones, if_groups, if_pf_kif, if_lagg,
if_alloctype
- G/c now defunct and/or commented out in the manual page if_ipending,
if_poll_slowq, if_done, if_poll_recv, if_poll_xmit, if_poll_slowinput,
if_poll_intren
- Update if_snd type changed with ALTQ integration.

MFC after: 1 week


# 232659 07-Mar-2012 pluknet

Move struct if_data basic description to a more suitable place, and remove
a bit of .Bx 4.4 history.

MFC after: 1 week


# 232654 07-Mar-2012 pluknet

Reflect that if_output changed to take a struct route as its fourth
argument (r191148).

MFC after: 1 week


# 232651 07-Mar-2012 pluknet

Update ifa_rtrequest() description after post-4.4BSD change made in r85074.
3rd argument of ifa->ifa_rtrequest is now ``rt_addrinfo *'' instead of
``sockaddr *''. While here, un-document RTM_RESOLVE cmd argument for
ifa_rtrequest() that became a stub after separating L2 tables in r186119.

MFC after: 1 week


# 232600 06-Mar-2012 pluknet

Remove if_watchdog remnants after if_timer/if_watchdog removal in r199975.
This part was missed in r199992.

MFC after: 1 week


# 232592 06-Mar-2012 pluknet

Fix a typo: use lower case in "A Shorthand".

Noted by: maxim


# 232591 06-Mar-2012 pluknet

Kill EoL whitespaces.


# 232589 06-Mar-2012 pluknet

The missing part of r232588 that documents ifaddr_byindex() itself.

MFC after: 1 week


# 232588 06-Mar-2012 pluknet

- ifnet_addrs has gone and replaced by ifaddr_byindex(), as per r83130
- access to the AF_LINK address through if_addrhead is deprecated (r128315)

MFC after: 1 week


# 232384 02-Mar-2012 pluknet

Reflect the renaming of ifmaof_ifpforaddr() to if_findmulti() in r148652.

MFC after: 1 week


# 232382 02-Mar-2012 pluknet

ifp->if_ioctl() has moved to u_long cmd in r36735.
Somehow that change had not reached here together with ifioctl().

MFC after: 1 week


# 232336 01-Mar-2012 pluknet

Changes in ifaddr refcounting: ifa_refcnt IFAREF/IFAFREE macros
moved to ifa_ref()/ifa_free() refcounting functions.

MFC after: 1 week


# 232335 01-Mar-2012 pluknet

Refine r232333 [1] and put note about ifnet refcount caller responsibility.

Spotted by: gavin [1]
MFC after: 1 week


# 232334 01-Mar-2012 pluknet

Reflect that ifa_ifwithnet() gained ignore_ptp argument.

MFC after: 1 week


# 232333 01-Mar-2012 pluknet

Document ifunit_ref function.

MFC after: 1 week


# 232331 01-Mar-2012 pluknet

Document ifnet refcount.

MFC after: 1 week


# 230581 26-Jan-2012 glebius

List supported ioctl commands instead of old one.


# 225776 27-Sep-2011 pluknet

Fix typo in OSIOCGIFADDR.

MFC after: 3 days


# 223735 03-Jul-2011 bz

Add infrastructure to allow all frames/packets received on an interface
to be assigned to a non-default FIB instance.

You may need to recompile world or ports due to the change of struct ifnet.

Submitted by: cjsp
Submitted by: Alexander V. Chernikov (melifaro ipfw.ru)
(original versions)
Reviewed by: julian
Reviewed by: Alexander V. Chernikov (melifaro ipfw.ru)
MFC after: 2 weeks
X-MFC: use spare in struct ifnet


# 210525 27-Jul-2010 simon

Missing IFCAP_* macro descriptions in ifnet(9).

PR: docs/148952
Submitted by: Lars Hartmann <lars@chaotika.org>
MFC after: 2 weeks


# 206622 14-Apr-2010 uqs

mdoc: order prologue macros consistently by Dd/Dt/Os

Although groff_mdoc(7) gives another impression, this is the ordering
most widely used and also required by mdocml/mandoc.

Reviewed by: ru
Approved by: philip, ed (mentors)


# 202285 14-Jan-2010 jhb

- Note that if_xname, if_dname, and if_dunit are usually initialized via
if_initname().
- Document if_drv_flags and replace references to IFF_(RUNNING|OACTIVE)
with references to IFF_DRV_(RUNNING|OACTIVE).
- Complete truncated sentence in the description of if_transmit by copying
from the description in if_qflush.
- Add missing line breaks for translators.

Reviewed by: brooks (1)
MFC after: 3 days


# 199992 01-Dec-2009 bz

Unbreak user space after if_timer/if_watchdog removal in r199975.

Tested by: glebius


# 185945 11-Dec-2008 kmacy

Add entry for if_transmit and if_qflush


# 167554 14-Mar-2007 bms

Remove obsolete polling members from documentation for struct ifnet.

Submitted by: Aniruddha Bohra
MFC after: 5 days


# 165213 14-Dec-2006 mpp

Spelling fixes.


# 148580 31-Jul-2005 keramida

Fix all the spelling mistakes I could find in the man pages for words
that have at least 3 characters.

MFC after: 1 week
Thanks to: Music band ``Chingon''
for keeping me company while searching for these.


# 147398 15-Jun-2005 ru

Assorted markup fixes and minor wordsmithing.

Approved by: re


# 147256 10-Jun-2005 brooks

Stop embedding struct ifnet at the top of driver softcs. Instead the
struct ifnet or the layer 2 common structure it was embedded in have
been replaced with a struct ifnet pointer to be filled by a call to the
new function, if_alloc(). The layer 2 common structure is also allocated
via if_alloc() based on the interface type. It is hung off the new
struct ifnet member, if_l2com.

This change removes the size of these structures from the kernel ABI and
will allow us to better manage them as interfaces come and go.

Other changes of note:
- Struct arpcom is no longer referenced in normal interface code.
Instead the Ethernet address is accessed via the IFP2ENADDR() macro.
To enforce this ac_enaddr has been renamed to _ac_enaddr.
- The second argument to ether_ifattach is now always the mac address
from driver private storage rather than sometimes being ac_enaddr.

Reviewed by: sobomax, sam


# 147036 05-Jun-2005 brooks

Add missing Va in ifi_epoch entry.


# 142501 25-Feb-2005 brooks

Change the definition of struct if_data's member ifi_epoch from wall
clock time to uptime because wall clock time may go backwards.

This is a change in the API which will impact SNMP agents who are using
ifi_epoch to set RFC2233's ifCounterDiscontinuityTime. None are know to
exist today. This will not impact applications that are using the
<index, epoch> tuple to verify interface uniqueness except that it
eliminates a race which could lead to a false assumption of uniqueness.

Because this is a behavior change, bump __FreeBSD_version.

Discussed with: re (jhb, scottl)
MFC after: 3 days
Pointed out by: pkh (way back at EuroBSDCon)
Pointy hat: brooks


# 140140 12-Jan-2005 ru

Scheduled mdoc(7) sweep.


# 139592 02-Jan-2005 krion

Remove trailing spaces.

Reviewed by: brueffer
MFC after: 3 days


# 135365 17-Sep-2004 brooks

Document the struct if_data members ifi_datalen, ifi_epoch, and
ifi_link_state.

Reminded by: ru


# 130599 16-Jun-2004 ru

Markup fixes.


# 130238 08-Jun-2004 yar

Touch .Dd (date) since new functionality has been documented.

Reminded by: ru


# 130235 08-Jun-2004 yar

Make the legend to the table of interface flags compact
for the reader's convenience.

Suggested by: ru


# 130234 08-Jun-2004 yar

Describe how polling(4) applies to network interfaces.

Reviewed by: ru


# 130195 07-Jun-2004 yar

1. There are interface capabilities to be used by "lower" kernel
components as well, i.e., polling.

2. Stress that if_capenable should be modified only from within
the interface driver because it solely knows about how to control
the capabilities.


# 125411 04-Feb-2004 brooks

Add the kernel side of network interface renaming support.

The basic process is to send a routing socket announcement that the
interface has departed, change if_xname, update the sockaddr_dl
associated with the interface, and announce the arrival of the interface
on the routing socket.

As part of this change, ifunit() is greatly simplified by testing
if_xname directly. if_clone_destroy() now uses if_dname to look up the
cloner for the interface and if_dunit to identify the unit number.

Reviewed by: ru, sam (concept)
Vincent Jardin <vjardin AT free.fr>
Max Laier <max AT love2party.net>


# 125026 26-Jan-2004 yar

Document the interface method if_input().


# 125016 26-Jan-2004 yar

Clearly state that upon SIOCSIFFLAGS, ifp->if_flags is updated
at the common ifioctl() level.


# 125014 26-Jan-2004 yar

Extend the description of SIOCSIFCAP.


# 124820 21-Jan-2004 yar

Extend the description of the framework of interface capabilities.


# 121816 31-Oct-2003 brooks

Replace the if_name and if_unit members of struct ifnet with new members
if_xname, if_dname, and if_dunit. if_xname is the name of the interface
and if_dname/unit are the driver name and instance.

This change paves the way for interface renaming and enhanced pseudo
device creation and configuration symantics.

Approved By: re (in principle)
Reviewed By: njl, imp
Tested On: i386, amd64, sparc64
Obtained From: NetBSD (if_xname)


# 119893 08-Sep-2003 ru

mdoc(7): Use the new feature of the .In macro.


# 116272 12-Jun-2003 hmp

Remove paragraph which describes how we might switch our packet queueing
discipline to Random Early Detection (RED) in the future. The same para
incorrectly spelt ``Random Early Detection'' as ``Random Early Drop''.

While I am there, nuke IF_ENQ_DROP from the list of functions. More
work will be done on this, since some of the functions like
if_enq_drop() and if_queue_drop() were replaced with one function
called if_handoff() that does the job of enqueing the packet and
updating interface statistics as necessary.

Reviewed by: wollman
Approved by: des (mentor)
MFC after: 1 day


# 114441 01-May-2003 trhodes

fnet(9) claims that "those interfaces supporting reception of multicast
datagrams have a LIST of multicast group memberships...". On -CURRENT, that
LIST is actually a TAILQ. Note that -STABLE still uses a LIST

PR: 50426
Submitted by: Scott Mitchell <scott+freebsd@fishballoon.org>


# 112421 19-Mar-2003 ceri

Correct typo in function declaration (s/if_dont/if_done).

PR: docs/50136
Submitted by: Scott Mitchell <scott+freebsd@fishballoon.org>
MFC After: 4.8


# 107383 29-Nov-2002 ru

mdoc(7) police: scheduled sweep.

Approved by: re


# 102510 28-Aug-2002 sobomax

Last missed bit of user-setable promisc mode.

Pointy hat to: sobomax
MFC after: 1 day


# 102052 18-Aug-2002 sobomax

Increase size of ifnet.if_flags from 16 bits (short) to 32 bits (int). To avoid
breaking application ABI use unused ifreq.ifru_flags[1] for upper 16 bits in
SIOCSIFFLAGS and SIOCGIFFLAGS ioctl's.

Reviewed by: -hackers, -net


# 89196 10-Jan-2002 ru

mdoc(7) police: tidy up the markup, fix some minor bugs.


# 89124 09-Jan-2002 mpp

ispell sweep of share/man/man9/*.


# 88509 26-Dec-2001 davidc

Update function definitions and required include files to reflect
the current state of the system.

Approved by: alfred


# 84306 01-Oct-2001 ru

mdoc(7) police: Use the new .In macro for #include statements.


# 84293 01-Oct-2001 ru

mdoc(7) police: removed gratuitous .Pp calls.


# 83817 22-Sep-2001 asmodai

Remove IFCAP_HWCSUM, it is merely a luxury #define, not a real flag.
Remove explicit mention of IP stack, since it might not be accurate for all
interfaces.
Change if_enable to if_capenable, as it is spelled.

Submitted by: jlemon


# 83816 22-Sep-2001 asmodai

Commit descriptions for the interface capabilities support.


# 81251 07-Aug-2001 ru

mdoc(7) police:

Avoid using parenthesis enclosure macros (.Pq and .Po/.Pc) with plain text.
Not only this slows down the mdoc(7) processing significantly, but it also
has an undesired (in this case) effect of disabling hyphenation within the
entire enclosed block.


# 79727 14-Jul-2001 schweikh

Removed whitespace at end-of-line; no content changes. I simply did
cd src/share; find man[1-9] -type f|xargs perl -pi -e 's/[ \t]+$//'

BTW, what editors are the culprits? I'm using vim and it shows
me whitespace at EOL in troff files with a thick blue block...

Reviewed by: Silence from cvs diff -b
MFC after: 7 days


# 79538 10-Jul-2001 ru

mdoc(7) police: removed HISTORY info from the .Os call.


# 72520 15-Feb-2001 bde

Fixed bitrot in synopsis. The Lite2 change from int to u_long for ioctl
command numbers had not reached here.


# 71895 01-Feb-2001 ru

mdoc(7) police: split punctuation characters + misc fixes.


# 70466 29-Dec-2000 ru

Prepare for mdoc(7)NG.


# 70015 14-Dec-2000 ru

mdoc(7) police: removed history info from the .Os FreeBSD call.


# 61480 10-Jun-2000 alex

Remove XXX: Describe if_init().

Reviewed by: asmodai


# 60311 10-May-2000 sheldonh

Supply only one author name per instance of %A, as per mdoc.samples(7).

PR: 18465
Submitted by: Kazu TAKAMUNE <takamune@avrl.mei.co.jp>


# 51253 13-Sep-1999 ru

Adjust descriptions for if_up() and if_down().

Reviewed by: wollman


# 50476 27-Aug-1999 peter

$Id$ -> $FreeBSD$


# 48264 27-Jun-1999 mpp

Fix some typos and do some minor mdoc cleanup.


# 34504 12-Mar-1998 charnier

.Sh AUTHOR -> .Sh AUTHORS according to mdoc specs.
Use .An/.Aq.


# 21735 15-Jan-1997 wollman

Document Monday's changes in the interface structure.


# 21673 14-Jan-1997 jkh

Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.


# 20920 26-Dec-1996 wosch

Sort cross references.


# 20662 18-Dec-1996 mpp

Typo police.


# 20603 17-Dec-1996 wollman

Create a new manual page describing how network interfaces and
addresses are glued together with the generic networking code.