summaryrefslogtreecommitdiffstats
path: root/sys/net/if_disc.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.alfred2003-01-211-1/+1
| | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
* network interface and link layer changes:sam2002-11-151-1/+1
| | | | | | | | | | | | o on input don't strip the Ethernet header from packets o input packet handling is now done with if_input o track changes to ether_ifattach/ether_ifdetach API o track changes to bpf tapping o call ether_ioctl for default handling of ioctl's o use constants from net/ethernet.h where possible Reviewed by: many Approved by: re
* Make discard devices clonable and unloadable. Also, change thebrooks2002-05-251-15/+57
| | | | interface name from ds# to disc#.
* minor style fix.jlemon2001-12-141-1/+1
|
* Pull post-4.4BSD change to sys/net/route.c from BSD/OS 4.2.ru2001-10-171-2/+2
| | | | | | | | | | | | | | | | | | | | Have sys/net/route.c:rtrequest1(), which takes ``rt_addrinfo *'' as the argument. Pass rt_addrinfo all the way down to rtrequest1 and ifa->ifa_rtrequest. 3rd argument of ifa->ifa_rtrequest is now ``rt_addrinfo *'' instead of ``sockaddr *'' (almost noone is using it anyways). Benefit: the following command now works. Previously we needed two route(8) invocations, "add" then "change". # route add -inet6 default ::1 -ifp gif0 Remove unsafe typecast in rtrequest(), from ``rtentry *'' to ``sockaddr *''. It was introduced by 4.3BSD-Reno and never corrected. Obtained from: BSD/OS, NetBSD MFC after: 1 month PR: kern/28360
* This file was a horrible mixture of styles old and new.markm2001-06-161-27/+16
| | | | Apply style(9).
* Exterminate the use of PSEUDO_SET() with extreme prejudice.peter2001-01-311-4/+25
|
* udp IPv6 support, IPv6/IPv4 tunneling support in kernel,shin1999-12-071-0/+5
| | | | | | | | | | packet divert at kernel for IPv6/IPv4 translater daemon This includes queue related patch submitted by jburkhol@home.com. Submitted by: queue related patch from jburkhol@home.com Reviewed by: freebsd-arch, cvs-committers Obtained from: KAME project
* Set the queue length.phk1999-11-121-0/+1
|
* Remove NBPF conditionality of bpf calls in most of our network drivers.phk1999-09-251-5/+0
| | | | | | | | | | | | This means that we will not have to have a bpf and a non-bpf version of our driver modules. This does not open any security hole, because the bpf core isn't loadable The drivers left unchanged are the "cross platform" drivers where the respective maintainers are urged to DTRT, whatever that may be. Add a couple of missing FreeBSD tags.
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Rename bpfilter to bpf.des1999-07-061-4/+4
|
* Make the use of 'disc' vs 'ds' as prefix consistent by making all 'disc'.eivind1998-12-141-15/+15
| | | | This fix the conflict of having two functions called 'dsioctl()'.
* This commit fixes various 64bit portability problems required fordfr1998-06-071-3/+3
| | | | | | | | | | FreeBSD/alpha. The most significant item is to change the command argument to ioctl functions from int to u_long. This change brings us inline with various other BSD versions. Driver writers may like to use (__FreeBSD_version == 300003) to detect this change. The prototype FreeBSD/alpha machdep will follow in a couple of days time.
* Make INET a proper option.eivind1998-01-081-1/+2
| | | | | | | | | | | | This will not make any of object files that LINT create change; there might be differences with INET disabled, but hardly anything compiled before without INET anyway. Now the 'obvious' things will give a proper error if compiled without inet - ipx_ip, ipfw, tcp_debug. The only thing that _should_ work (but can't be made to compile reasonably easily) is sppp :-( This commit move struct arpcom from <netinet/if_ether.h> to <net/if_arp.h>.
* Removed unused #includes.bde1997-08-021-21/+1
|
* Don't include <sys/ioctl.h> in the kernel. Stage 2: includebde1997-03-241-2/+2
| | | | <sys/sockio.h> instead of <sys/ioctl.h> in network files.
* Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are notpeter1997-02-221-1/+1
| | | | ready for it yet.
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | 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.
* Remove some historical cruft inherited from the loopback driver in whichwollman1996-10-071-6/+1
| | | | | there were three possible different code paths through which we could discard a packet (which, after all, is the entire function of this interface).
* Change the use if ifnet.if_lastchange to be more in line withgpalmer1996-06-101-2/+1
| | | | | SNMP requirements. Update description of ifnet.if_lastchange in if.h to indicate this.
* Removed never-used #includes of <machine/cpu.h>. Many were apparentlybde1996-04-071-2/+1
| | | | copied from bad examples.
* Clean up Ethernet drivers:wollman1996-02-061-3/+3
| | | | | | | | - 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
* Added a prototype.bde1995-12-031-2/+3
| | | | | | Declared dsioctl() as static consistently. Note that both if_disc.c and subr_diskslice.c use the same prefix `ds' and there is a name conflict for dsioctl().
* Finished (?) cleaning up sysinit stuff.bde1995-12-021-4/+4
|
* Second batch of cleanup changes.phk1995-10-291-4/+1
| | | | | This time mostly making a lot of things static and some unused variables here and there.
* Fix BPf to generate a header mbuf for writes.wollman1995-09-221-1/+9
| | | | | | | | Fix loopback and discard interfaces to understand BPF writes. (These two from Bill Fenner to fix PR 512.) Move ifpromisc() from bpf.c to if.c as suggested by comment in BPF. Send a notice to the log when promiscuous mode is enabled.
* Fixed init functions argument type - caddr_t -> void *. Fixed a couple ofdg1995-09-091-3/+3
| | | | compiler warnings.
* Fix several sysinit functions that had the wrong type and unnecessarilybde1995-08-301-4/+6
| | | | | | external linkage. Remove useless comments saying that SYSINIT() does system initialization.
* Remove trailing whitespace.rgrimes1995-05-301-2/+2
|
* Support for pseudo-device LKMs. Note that this is restricted to onlywollman1995-03-201-2/+2
| | | | | one pseudo per module (a restriction which will eventually be lifted) and isthus not in its final form.
* Beginnings of support for loadable pseudo-devices. bsd.kmod.mk supportwollman1995-03-171-2/+2
| | | | and Makefiles for the more interesting ones to come on Monday.
* Added `ds', a black-hole network interface.wollman1994-12-221-0/+220
OpenPOWER on IntegriCloud