summaryrefslogtreecommitdiffstats
path: root/sys/net/if.h
Commit message (Collapse)AuthorAgeFilesLines
...
* Removed nested include if <sys/socket.h> from <net/if.h> andbde1996-10-121-3/+1
| | | | | | | <net/if_arp.h> and fixed the things that depended on it. The nested include just allowed unportable programs to compile and made my simple #include checking program report that networking code doesn't need to include <sys/socket.h>.
* correct a field comment that someone must have accidentally spammedjulian1996-08-261-2/+2
| | | | as it's still used for what the original BSD4.4 comment says it's for.
* Add a callback pointer to the interfaces "init" routine.phk1996-08-041-1/+6
| | | | | Add ether_ioctl() which can take care of the SIOC[SG]IFADDR cases for most (ethernet) drivers.
* Add better support for retrieving management information from networkwollman1996-07-301-7/+23
| | | | | | | | | | | | | interfaces. This creates two new tables in the net.link.generic branch of the MIB; one contains (essentially) `ifdata' structures, and the other contains a blob provided by the interface (and presumably used to implement link-layer-specific MIB variables). A number of things have been moved around in the `ifnet' and `ifdata' structures, so NEW VERSIONS OF ifconfig(8) AND routed(8) ARE REQUIRED. (A simple recompile is all that's necessary.) I have a sample program which uses this interface for those interested in making use of it.
* Fix a spelling error I forgot to bring over from my personal versionwollman1996-07-231-2/+2
| | | | of the last (IF_ENQ_DROP) commit.
* Add a new, better mechanism for sticking packets onto ifqueues.wollman1996-07-221-1/+30
| | | | | | | | The old system had the misfeature that the only policy it could implement was tail-drop; the new IF_ENQ_DROP macro/function makes it possible to implement more sophisticated queueing policies on a system-wide basis. No code actually uses this yet (although on my machine I have converted the ethernet and (polled) loopback to use it).
* Change the use if ifnet.if_lastchange to be more in line withgpalmer1996-06-101-2/+2
| | | | | SNMP requirements. Update description of ifnet.if_lastchange in if.h to indicate this.
* Clean up Ethernet drivers:wollman1996-02-061-2/+2
| | | | | | | | - fill in and use ifp->if_softc - use if_bpf rather than private cookie variables - change bpf interface to take advantage of this - call ether_ifattach() directly from Ethernet drivers - delete kludge in if_attach() that did this indirectly
* Delete the if_private[] array in struct ifnet; this turned out to bewollman1996-01-261-4/+19
| | | | | | | | | | | | of limited utility. In their place, add bunch of pointers which will eventually be needed by the polled-interrupt scheme we're working here. (It will probably be a while before the code is written and committed here.) At the same time, a `void *if_softc' field was added to the beginning of the structure to make certain driver writers happier. The practical upshot of all this is that you need to recompile utilities such as netstat which manipulate struct ifnet.
* The last part of the ether_sprint -> %6D change.phk1996-01-261-2/+1
| | | | | Sorry for the delay. (%D is for hexdumping.)
* Staticize, clean lint.phk1995-12-091-8/+1
|
* all:dg1995-12-051-6/+2
| | | | | | | | | | | | | | | | Removed ifnet.if_init and ifnet.if_reset as they are generally unused. Change the parameter passed to if_watchdog to be a ifnet * rather than a unit number. All of this is an attempt to move toward not needing an array of softc pointers (which is usually static in size) to point to the driver softc. if_ed.c: Changed some of the argument passing to some functions to make a little more sense. if_ep.c, if_vx.c: Killed completely bogus use of if_timer. It was being set in such a way that the interface was being reset once per second (blech!).
* Say goodbye to IFF_NOTRAILERS. Support for trailers was officiallywollman1995-10-131-2/+2
| | | | | dropped for 4.4, but for some reason this flag lived on. (Until today, that is.)
* Add a few hooks (in the form of an array of four void *'s) to allowwollman1995-08-311-1/+4
| | | | | various bits of software to save some data in the ifnet structure without having to constantly change the declaration thereof.
* Fix several sysinit functions that had the wrong type and unnecessarilybde1995-08-301-2/+1
| | | | | | external linkage. Remove useless comments saying that SYSINIT() does system initialization.
* Make everything except the unsupported network sources compile cleanlybde1995-08-161-1/+2
| | | | with -Wnested-externs.
* Move some struct definitions outside of struct's, so their scopes forjoerg1995-07-091-35/+40
| | | | | | C++ will match the scopes for C. Submitted by: Warner Losh
* Remove trailing whitespace.rgrimes1995-05-301-3/+3
|
* Cleanup loopback interface support.pst1995-04-261-2/+2
| | | | Reviewed by: wollman
* Add and move declarations to fix all of the warnings from `gcc -Wimplicit'bde1995-03-161-1/+2
| | | | | | (except in netccitt, netiso and netns) and most of the warnings from `gcc -Wnested-externs'. Fix all the bugs found. There were no serious ones.
* Moved declaration of ifnet pointer out of the header file and into thedg1994-12-301-2/+2
| | | | .c file where it belongs. Bezeroed some uninitialized malloc data.
* Removed bogus semicolon at end of a #define line.dg1994-12-221-2/+2
|
* Add generic part of generic multiple-physical-interface support (thewollman1994-12-211-1/+3
| | | | successor of IFF_ALTPHYS).
* Add a #define for if_rawoutput(), which isn't used now, but eventually willwollman1994-12-211-1/+2
| | | | be.
* Add support for two separate cloning flags, one set by the lower layers,wollman1994-12-131-1/+13
| | | | | | | | | | | | | | | | | and one set by the protocol family. Also add another parameter to rtalloc1() to allow for any interface flags to be ignored; currently this is only useful for RTF_PRCLONING. Get rid of rt_prflags and re-unite with rt_flags. Add T/TCP ``route metrics''. NB: YOU MUST RECOMPILE `route' AND OTHER RELATED PROGRAMS AS A RESULT OF THIS CHANGE. This also adds a new interface parameter, `ifi_physical', which will eventually replace IFF_ALTPHYS as the mechanism for specifying the particular physical connection desired on a multiple-connection card. NB: YOU MUST RECOMPILE `ifconfig' AND OTHER RELATED PROGRAMS AS A RESULT OF THIS CHANGE.
* #include <socket.h> -> <sys/socket.h>phk1994-11-161-2/+2
|
* Include <sys/socket.h> for declaration of struct sockaddr. This helpsbde1994-11-151-4/+7
| | | | | | genassym compile when KERNEL is not defined. Uniformize idempotency ifdef.
* if.h:bde1994-11-141-2/+3
| | | | | | | | | | Declare a complete prototype for the function pointer *ifa_rtrequest. radix.h: Declare a complete prototype for the function pointer *rnh_walktree and for the function rn_walktree. Uniformize idempotency ifdef.
* Define IFF_ALTPHYS to be IFF_LINK2. Gross, but effective. (There aren't anywollman1994-10-011-1/+2
| | | | | more bits left in if_flags and I don't want to make it a long this late in the release cycle.)
* Make idempotent.paul1994-08-211-1/+6
| | | | Submitted by: Paul
* Fix up some sloppy coding practices:wollman1994-08-181-2/+2
| | | | | | | | | | | | - Delete redundant declarations. - Add -Wredundant-declarations to Makefile.i386 so they don't come back. - Delete sloppy COMMON-style declarations of uninitialized data in header files. - Add a few prototypes. - Clean up warnings resulting from the above. NB: ioconf.c will still generate a redundant-declaration warning, which is unavoidable unless somebody volunteers to make `config' smarter.
* Added ioctl support for SIOCGIFMTU and SIOCSIFMTU. These set the per-dg1994-08-081-1/+3
| | | | interface MTU.
* Added $Id$dg1994-08-021-0/+1
|
* The big 4.4BSD Lite to FreeBSD 2.0.0 (Development) patch.rgrimes1994-05-251-5/+5
| | | | | Reviewed by: Rodney W. Grimes Submitted by: John Dyson and David Greenman
* BSD 4.4 Lite Kernel Sourcesrgrimes1994-05-241-0/+363
OpenPOWER on IntegriCloud