summaryrefslogtreecommitdiffstats
path: root/sys/net
Commit message (Collapse)AuthorAgeFilesLines
* repair endianness issue in IN_MULTICAST().itojun2000-08-152-3/+7
| | | | | | again, *BSD difference... From: Nick Sayer <nsayer@quack.kfu.com>
* Export the functionality of SIOCSIFLLADDR with if_setlladdr()archie2000-08-152-25/+51
| | | | | | and add some more rigorous sanity checking in the process. Reviewed by: freebsd-net
* Change the argument for SIOCG80211NWID/SIOCS80211NWID to include theonoe2000-08-141-3/+25
| | | | | | | length of NWID. This breaks binary compatibility but only the awi driver refers this ioctl; no userland tools refers it. Add WEP stuff. Obtained from: NetBSD current
* Replace nonexistent !defined(_LKM) by !defined(KLD_MODULE)ache2000-08-011-1/+1
|
* Check IPFILTER (options IPFILTER generates) instead of NIPFILTERache2000-08-011-2/+2
|
* Nonexistent "ipfilter.h" -> "opt_ipfilter.h"ache2000-07-311-1/+1
| | | | Kernel 'make depend' fails otherwise
* Make the bridge_refresh operation automatic when ethernet interfacesnsayer2000-07-293-1/+14
| | | | are attached or detached.
* Fix if_types.h as per the IANA assignments with regard to IPv6.asmodai2000-07-281-4/+8
| | | | | | | | | | | | | | | gif/faith/stf moved to 0xfN entries, since their previous location is allocated to some other interfaces. Also add the IFT_PVC, which is the ATM PVC subinterface from ALTQ. This also syncs us up a bit to NetBSD again. This change requires a total recompilation of all kmem users, as itojun told me. Next in line is synching to the IANI SMI list. Approved by: itojun
* Change to support vmware... SIOCSIFADDR on the character devicensayer2000-07-252-6/+8
| | | | | | sets the (notional) "remote" ethernet address. Submitted by: vsilyaev@mindspring.com
* Workaround to avoid panic during detach pccard nic.ume2000-07-251-1/+4
|
* Sundry changes to debugging code.nsayer2000-07-242-35/+75
| | | | | | | | Add spl/splx to various sensitive spots Change semantics of the vmnet version of the device to keep VMware happy (don't junk state when the device is closed) Submitted by: vsilyaev@mindspring.com
* When a connection is being dropped due to a listen queue overflow,jayanth2000-07-211-1/+1
| | | | | | | | | delete the cloned route that is associated with the connection. This does not exhaust the routing table memory when the system is under a SYN flood attack. The route entry is not deleted if there is any prior information cached in it. Reviewed by: Peter Wemm,asmodai
* Oops. SYSCTL_HANDLER_ARGS -> (SYSCTL_HANDLER_ARGS)nsayer2000-07-201-1/+1
|
* Add sysctl to perform bridge refresh. This is required if bridgednsayer2000-07-201-7/+29
| | | | | | | | configurations include loadable interfaces. After loading new interface drivers, perform a 'sysctl -w net.link.ether.bridge_refresh=1' and the bridge code will reinitialize itself. Submitted by: <vsilyaev@mindspring.com>
* Add the tap driver.nsayer2000-07-203-0/+919
| | | | | | | | | | | | | The tap driver is used to present a virtual Ethernet interface to the system. Packets presented by the network stack to the interface are made available to a character device in /dev. With tap and the bridge code, you can make remote bridge configurations where both sides of the bridge are separated by userland daemons. This driver also has a special naming hack to allow it to serve a similar purpose to the vmware port. Submitted by: myevmenkin@att.com, vsilyaev@mindspring.com
* Temporary hack for the benefit of the X-Bone projectkris2000-07-201-0/+2
| | | | | | (http://www.isi.edu/xbone). I expect this to go away in due course. Submitted by: Lars Eggert <larse@ISI.EDU>
* Const'ify parameters to ethers(3) routines as appropriate.archie2000-07-181-5/+5
|
* Initialise ifnet::if_typebrian2000-07-171-0/+2
| | | | | PR: 17873 Submitted by: Kensaku Masuda <greg@greg.rim.or.jp>
* improve route/nd cache cleanup on interface removal.itojun2000-07-161-12/+10
| | | | CAVEAT: haven't really tested it yet, please report
* Make all Ethernet drivers attach using ether_ifattach() and detach usingarchie2000-07-135-12/+31
| | | | | | | | | ether_ifdetach(). The former consolidates the operations of if_attach(), ng_ether_attach(), and bpfattach(). The latter consolidates the corresponding detach operations. Reviewed by: julian, freebsd-net
* repair IPV6_JOIN_GROUP to IPv6 all multi.itojun2000-07-091-0/+10
| | | | From: ume
* sync with kame tree as of july00. tons of bug fixes/improvements.itojun2000-07-0410-419/+1281
| | | | | | | API changes: - additional IPv6 ioctls - IPsec PF_KEY API was changed, it is mandatory to upgrade setkey(8). (also syntax change)
* Previous commit changing SYSCTL_HANDLER_ARGS violated KNF.phk2000-07-043-4/+4
| | | | Pointed out by: bde
* Style police catches up with rev 1.26 of src/sys/sys/sysctl.h:phk2000-07-033-4/+4
| | | | | | | | Sanitize SYSCTL_HANDLER_ARGS so that simplistic tools can grog our sources: -sysctl_vm_zone SYSCTL_HANDLER_ARGS +sysctl_vm_zone (SYSCTL_HANDLER_ARGS)
* Previous commit didn't work; this time really fix it.archie2000-06-301-14/+0
|
* Provide forward declarations for struct ifnet and struct mbufarchie2000-06-291-0/+3
| | | | to avoid compiler warnings.
* Fix kernel build breakage when 'device ether' was not included.archie2000-06-293-13/+3
|
* Make the ng_ether(4) node type dynamically loadable like the rest.archie2000-06-265-427/+126
| | | | | | | | | | | | | This means 'options NETGRAPH' is no longer necessary in order to get netgraph-enabled Ethernet interfaces. This supports loading/unloading the ng_ether.ko and attaching/detaching the Ethernet interface in any order. Add two new hooks 'upper' and 'lower' to allow access to the protocol demux engine and the raw device, respectively. This enables bridging to be defined as a netgraph node, if so desired. Reviewed by: freebsd-net@freebsd.org
* Implement SIOCSIFLLADDR, which allows you to change the link-levelwpaul2000-06-161-0/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | address on an interface. This basically allows you to do what my little setmac module/utility does via ifconfig. This involves the following changes: socket.h: define SIOCSIFLLADDR if.c: add support for SIOCSIFLLADDR, which resets the values in the arpcom struct and sockaddr_dl for the specified interface. Note that if the interface is already up, we need to down/up it in order to program the underlying hardware's receive filter. ifconfig.c: add lladdr command ifconfig.8: document lladdr command You can now force the MAC address on any ethernet interface to be whatever you want. (The change is not sticky across reboots of course: we don't actually reprogram the EEPROM or anything.) Actually, you can reprogram the MAC address on other kinds of interfaces too; this shouldn't be ethernet-specific (though at the moment it's limited to 6 bytes of address data). Nobody ran up to me and said "this is the politically correct way to do this!" so I don't want to hear any complaints from people who think I could have done it more elegantly. Consider yourselves lucky I didn't do it by having ifconfig tread all over /dev/kmem.
* Do not perform any opeartion with mbuf after it placed intobp2000-06-143-9/+9
| | | | | | interface queue. Tested by: Bosko Milekic <bmilekic@dsuper.net>
* Unused include: #include "sl.h" - NSL is no longer used.peter2000-06-101-2/+0
|
* Don't try to apply ipfw filtering to non-IP packets.archie2000-06-021-0/+2
| | | | Reported-by: "Lachlan O'Dea" <lodea@vet.com.au>
* fix KASSERT usagemjacob2000-06-021-1/+1
|
* Don't panic if ifpromisc() returnes ENXIO, it's probably just an pccardphk2000-06-011-2/+7
| | | | which have been pulled.
* Make sl(4) SLIP devices dynamically expansible. Yay! =)green2000-05-302-116/+170
| | | | | PR: kern/17758 Submitted by: David Malone <dwmalone@maths.tcd.ie>
* Rather than checking for hlen causing misalignment, we should do thegallatin2000-05-261-7/+9
| | | | | | | | | | | | m_adj() and then check the resulting mbuf for misalignment, copying backwards to align the mbuf if required. This fixes a longstanding problem where an mbuf which would have been properly aligned after an m_adj() was being misaligned and causing an unaligned access trap in ip_input(). This bug only triggered when booting diskless. Reviewed by: dfr
* Back out the previous change to the queue(3) interface.jake2000-05-267-20/+20
| | | | | | It was not discussed and should probably not happen. Requested by: msmith and others
* Just need to pass the address family to if_simloop(), not the whole sockaddr.archie2000-05-245-18/+21
|
* Change the way that the queue(3) structures are declared; don't assume thatjake2000-05-237-20/+20
| | | | | | | | the type argument to *_HEAD and *_ENTRY is a struct. Suggested by: phk Reviewed by: phk Approved by: mdodd
* Move code to handle BPF and bridging for incoming Ethernet packets outarchie2000-05-144-73/+87
| | | | | | | | | | | | | | | of the individual drivers and into the common routine ether_input(). Also, remove the (incomplete) hack for matching ethernet headers in the ip_fw code. The good news: net result of 1016 lines removed, and this should make bridging now work with *all* Ethernet drivers. The bad news: it's nearly impossible to test every driver, especially for bridging, and I was unable to get much testing help on the mailing lists. Reviewed by: freebsd-net
* patch from Alexey Zelkindarrenr2000-05-111-5/+4
|
* Add pfil(9) subroutines and manpage from NetBSD.darrenr2000-05-103-0/+391
|
* Remove unneeded #include <sys/kernel.h>phk2000-04-292-3/+0
|
* OOps forgot to check in this one...julian2000-04-281-3/+4
| | | | API chage for netgraph.
* Add a bpfdetach() stub routine to bpf.c. Without this, you'll get anwpaul2000-04-271-0/+6
| | | | | | | | unresolved symbol error if you try to load a network driver into a kernel which doesn't have bpf enabled. Forgotten by: rwatson Found by: peter
* Fix support for 802.2 and SNAP frames. Bug was introduced duringbp2000-04-272-25/+53
| | | | | | initial import. Tested by: Jorge P Vasquez <jorge@acron.ind.br>
* remove "register" specifiers to supress compiler warning.kjc2000-04-261-2/+2
|
* * Use sys/sys/random.h rather than a i386 specific one.obrien2000-04-241-4/+1
| | | | | * There was nothing that should be machine dependant about i386/isa/random_machdep.c, so it is now sys/kern/kern_random.c.
* A couple months ago, Kirk and I were doing a walkthrough of the radix-treewollman2000-04-233-157/+202
| | | | | | | | search routine, and scratching our heads over why it was so obfuscated. This delta fixes a number of confusing style bugs and renames several structure members to have more meaningful names. There remain a number of odd control-flow structures. These changes do not affect the generated code.
* IOCGIFCONF once and for all. Sometimes the ifc_len variableguido2000-04-211-5/+2
| | | | | | | | | would be returned with a wrong value. While we're here, get rid of unnecessary panic call. PR: 17311, 12996, 14457 Submitted by: Patrick Bihan-Faou <patrick@mindstep.com>, Kris Kennaway <kris@FreeBSD.org>
OpenPOWER on IntegriCloud