summaryrefslogtreecommitdiffstats
path: root/sys/net/if_ethersubr.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* fix leak ether_deatch(): if if_free_sadl() is called before if_detach()markus2004-01-091-1/+4
| | | | | then ifnet_addrs[ifp->if_index] leaks; if it's called after if_detach() then if_free_sadl() does nothing; ok itojun
* de-register. deraadt okitojun2003-12-101-21/+21
|
* "goto bad" on error with carp_input, instead of simply returning.mcbride2003-10-251-2/+2
| | | | | | Fixes leakage of mbufs on error. Pointed out by Max Laier.
* Common Address Redundancy Protocolmcbride2003-10-171-1/+21
| | | | | | | | | | Allows multiple hosts to share an IP address, providing high availability and load balancing. Based on code by mickey@, with additional help from markus@ and Marco_Pfatschbacher@genua.de ok deraadt@
* prevent looutput() feedback of broadcast/multicast packets if they aredhartmei2003-08-181-2/+3
| | | | | pf routed. prevents a kernel lockup with some (non-sensical) route-to rules. report and debugging by mpech@. ok itojun@, henning@, mpech@.
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-6/+2
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* KNFderaadt2003-02-161-2/+2
|
* remove the altq classifier code which is replaced by pf and no longer used.kjc2003-01-071-102/+2
| | | | ok henning@, deraadt@
* KNF - return is not a function.itojun2002-09-111-3/+3
|
* allocate sockaddr_dl for ifnet in if_alloc_sadl(), as we don't always knowitojun2002-06-301-13/+7
| | | | | the size of sockaddr_dl on if_attach() - for instance, see ether_ifattach(). from netbsd. fgs ok
* Split common code which converts a multicast address to an ethernetchris2002-06-101-105/+80
| | | | | | | | | address from ether_addmulti() and ether_delmulti() into ether_multiaddr(), a'la netbsd. Also clean up some magic numbers. itojun likes it
* sync with KAME.kjc2002-05-171-5/+8
| | | | | - make altq_etherclassify() able to handle packets whose ethernet header is in a separate mbuf.
* move ether_crc32_le to if_ethersubr.c. Add ether_crc32_benate2002-05-071-1/+75
|
* Quiet down an annoying message in altq_etherclassify.art2002-02-071-1/+3
|
* Use queue.h TAILQ macros instead of accessing members directly.jason2001-12-091-5/+4
| | | | (And convert a few loops to TAILQ_FOREACH).
* unifdef OLDIP6OUTPUTitojun2001-11-301-6/+1
|
* M_WAIT in ether_output is wrong. Fix APPLETALK stuff.art2001-10-031-4/+5
|
* document why we use random()deraadt2001-09-201-1/+6
|
* the use of arc4random() in ether_ifattach() is wrong as randomattach()peter2001-09-201-2/+2
| | | | | | | | | | | | has not yet been called at this point. replace arc4random() with the more mundae random()&0xff as the use of a strong PRNG is not need here, where this code just helps fix up broken MAC addresses anyway now to find the real problem with my sis(4) LAN interface... ok'd by jason@
* compile w/out INETjason2001-08-191-1/+5
|
* use queue.h macrosjason2001-07-301-4/+5
|
* Initialization of arpcom * based on ifp was too soon: ifp can change asjason2001-07-251-2/+4
| | | | a result of a call to bridge_input().
* introduce the ALTQ queue macros into sys/net files.kjc2001-06-271-8/+107
| | | | | | | | | | | | | | the new model removes direct references to the fields in ifp->if_snd, and defines the following macros to manipulate ifp->if_snd. IFQ_ENQUEUE(ifq, m, pktattr, err) IFQ_DEQUEUE(ifq, m) IFQ_POLL(ifq, m) IFQ_PURGE(ifq) IFQ_IS_EMPTY(ifq) the new model also enforces some rules regarding how to use these macros. details are descrined in http://www.csl.sony.co.jp/~kjc/software/altq-new-design.txt
* Use ETHER_IS_MULTICAST macro; jason@ ok.fgsch2001-06-241-2/+2
|
* Add ether_input_mbuf to help us remove the ether_header fromfgsch2001-06-231-1/+17
| | | | | ether_input; all drivers should start migrating to this. Discussed with jason@, deraadt@ more or les ok'ed.
* Check for bridge loops.angelos2001-06-231-3/+35
|
* Use standard defined macros to access inner ifnet data structure members.aaron2001-06-231-2/+2
|
* change the meaning of ifnet.if_lastchange to meet RFC1573 ifLastChange.itojun2001-06-151-3/+1
| | | | | | | | follows BSD/OS practice and ucd-snmp code (FreeBSD does it for specific interfaces only). was: if_lastchange get updated on every packet transmission/receipt. now: if_lastchange get updated when IFF_UP is changed.
* drop multicast packet from myself, if the interface is !IFF_SIMPLEX.itojun2001-06-141-5/+26
| | | | sync with netbsd/kame.
* add BIOC[GS]HDRCMPLT ioctl for BPF, to disable overwriting of link level source address in forged frames. from NetBSD. art@okdugsong2001-05-281-5/+15
|
* move the vlan and bridge handling around a bit, and make sure the testjason2001-03-231-19/+19
| | | | for (mcast || bcase || (unicast || for us)) is always called.
* remove vlan_proto variable, replace with ETHERTYPE_8021Qjason2001-03-221-2/+2
| | | | | | define if_type for vlan interfaces (IFT_8021_VLAN) #ifdef DEBUG some debugging printf's protect against other uses of M_PROTO1
* for ethernet ifaces attach bpf from ether_ifattach; jason@, aaron@, itojun@ okmickey2001-02-201-1/+10
|
* packets received on gif's for local processing can't just fall down thejason2001-02-011-1/+5
| | | | | | | stack, they have to be pushed; when calling ether_input(): 1 - unicast packets have the ifp of the matching interface 2 - bcast/mcast packets have the ifp of the first IFT_ETHER bridge member based on discussion with angelos.
* Add support for 802.1D spanning tree protocol.jason2000-12-121-1/+2
| | | | NOTE: this requires recompiling brconfig with updated include files.
* use llc_snap instead of home grown macrosjason2000-10-181-10/+7
|
* if an interface comes up with a bad ethernet address, change it --deraadt2000-09-071-1/+14
| | | | | | setting it to fe:e1:ba:d0:xx where xx is a random number. this avoids various network catastrophies, and also client machines will complain everytime that server is rebooted...
* vlan was consuming all vlan frames before they had a chance to be bridged.jason2000-06-021-11/+12
| | | | | | Change the order of operations to be: ether_input() -> bridge_input() -> vlan_input() Also, only process vlan frames that are unicast for us or bcast/mcast.
* On input if the packet matches one of the member interface MAC addresses,jason2000-06-021-1/+2
| | | | | set the receiving interface to be that interface for further processing; thanks to dorcula@uncool.org for reporting and testing.
* if_vlan from FreeBSD and a few modificationschris2000-04-261-2/+16
|
* fix include file path related to ip6.itojun2000-02-071-6/+1
|
* Remove unneeded loout call that uses ipx_thishost.fgsch2000-01-111-3/+1
|
* bring in KAME IPv6 code, dated 19991208.itojun1999-12-081-15/+65
| | | | | | | | | replaces NRL IPv6 layer. reuses NRL pcb layer. no IPsec-on-v6 support. see sys/netinet6/{TODO,IMPLEMENTATION} for more details. GENERIC configuration should work fine as before. GENERIC.v6 works fine as well, but you'll need KAME userland tools to play with IPv6 (will be bringed into soon).
* o simpler handling of "forme" packetsjason1999-09-011-4/+6
| | | | o when ~IFF_UP, don't act like a bridge for output either
* Fix cases when wanting to communicate with the bridge'niklas1999-08-081-4/+4
| | | | s remote interfaces, both ARP and local delivery had bugs
* Support detaching of network interfaces. Still work to do in ipf, andniklas1999-08-081-1/+15
| | | | other families than inet.
* Ethernet bridge/IP firewall driver.jason1999-02-261-3/+44
|
* inet6 support; NRL/cmetzderaadt1999-01-081-23/+120
|
* htons(ETHERTYPE_IPX)ryker1998-07-071-2/+2
|
* bad types; wileyc@sekiya.twics.co.jpderaadt1998-02-031-2/+2
|