summaryrefslogtreecommitdiff
path: root/sys/net/if_ethersubr.c
AgeCommit message (Collapse)Author
2001-06-27introduce the ALTQ queue macros into sys/net files.Kenjiro Cho
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
2001-06-24Use ETHER_IS_MULTICAST macro; jason@ ok.Federico G. Schwindt
2001-06-23Add ether_input_mbuf to help us remove the ether_header fromFederico G. Schwindt
ether_input; all drivers should start migrating to this. Discussed with jason@, deraadt@ more or les ok'ed.
2001-06-23Check for bridge loops.Angelos D. Keromytis
2001-06-23Use standard defined macros to access inner ifnet data structure members.Aaron Campbell
2001-06-15change the meaning of ifnet.if_lastchange to meet RFC1573 ifLastChange.Jun-ichiro itojun Hagino
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.
2001-06-14drop multicast packet from myself, if the interface is !IFF_SIMPLEX.Jun-ichiro itojun Hagino
sync with netbsd/kame.
2001-05-28add BIOC[GS]HDRCMPLT ioctl for BPF, to disable overwriting of link level ↵Dug Song
source address in forged frames. from NetBSD. art@ok
2001-03-23move the vlan and bridge handling around a bit, and make sure the testJason Wright
for (mcast || bcase || (unicast || for us)) is always called.
2001-03-22remove vlan_proto variable, replace with ETHERTYPE_8021QJason Wright
define if_type for vlan interfaces (IFT_8021_VLAN) #ifdef DEBUG some debugging printf's protect against other uses of M_PROTO1
2001-02-20for ethernet ifaces attach bpf from ether_ifattach; jason@, aaron@, itojun@ okMichael Shalayeff
2001-02-01packets received on gif's for local processing can't just fall down theJason Wright
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.
2000-12-12Add support for 802.1D spanning tree protocol.Jason Wright
NOTE: this requires recompiling brconfig with updated include files.
2000-10-18use llc_snap instead of home grown macrosJason Wright
2000-09-07if an interface comes up with a bad ethernet address, change it --Theo de Raadt
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...
2000-06-02vlan was consuming all vlan frames before they had a chance to be bridged.Jason Wright
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.
2000-06-02On input if the packet matches one of the member interface MAC addresses,Jason Wright
set the receiving interface to be that interface for further processing; thanks to dorcula@uncool.org for reporting and testing.
2000-04-26if_vlan from FreeBSD and a few modificationsChris Cappuccio
2000-02-07fix include file path related to ip6.Jun-ichiro itojun Hagino
2000-01-11Remove unneeded loout call that uses ipx_thishost.Federico G. Schwindt
1999-12-08bring in KAME IPv6 code, dated 19991208.Jun-ichiro itojun Hagino
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).
1999-09-01o simpler handling of "forme" packetsJason Wright
o when ~IFF_UP, don't act like a bridge for output either
1999-08-08Fix cases when wanting to communicate with the bridge'Niklas Hallqvist
s remote interfaces, both ARP and local delivery had bugs
1999-08-08Support detaching of network interfaces. Still work to do in ipf, andNiklas Hallqvist
other families than inet.
1999-02-26Ethernet bridge/IP firewall driver.Jason Wright
1999-01-08inet6 support; NRL/cmetzTheo de Raadt
1998-07-07htons(ETHERTYPE_IPX)ryker
1998-02-03bad types; wileyc@sekiya.twics.co.jpTheo de Raadt
1997-09-27undo previous AF_UNSPEC change. analyze two alternatives: AF_SOMETHINGNEW,Theo de Raadt
or how much work it would be fix everything that uses AF_UNSPEC.
1997-07-27for AF_UNSPEC sockets, do not whack the ethernet address; this is what bpfTheo de Raadt
uses when it sends packets out. blame tqbf@rdist.org for this fix.
1997-07-24do not ignore IFF_NOARPTheo de Raadt
1997-07-23define ETHERTYPE_IPXMichael Shalayeff
1997-07-23make it compile w/o NETATALK definedMichael Shalayeff
1997-07-23A block of code from the last commit was not #ifdef NETATALK.denny
1997-07-23AppleTalk support based on netatalk-1.4a2 and FreeBSD.denny
1997-01-26Don't examine an mbuf after it has been released; from Andreas GunnarssonThorsten Lockert
1997-01-02accept llc/snap packets; still cannot send them...Theo de Raadt
1996-12-19do SIOCGIFADDRMichael Shalayeff
1996-12-19treat only ether II type packets for ipx.Michael Shalayeff
1996-06-02removed an unused variableNiklas Hallqvist
1996-05-10if_name/if_unit -> if_xname/if_softcTheo de Raadt
1996-05-06fix includes for x25/llc.Michael Shalayeff
1996-05-06if.h was missed from the commit.Michael Shalayeff
if_ethersubr.c: missed variables added.
1996-05-05add general ether_ioctl call in net/if_ethersubr.c,Michael Shalayeff
NS,IPX,X.25 special processing is now handled in there. reflect this amazing addition in all the ether ifaces. ppl, pls check the stuff.
1996-05-02prettyTheo de Raadt
1996-04-29fix last fix that was unfix for the before previous fix.Michael Shalayeff
that is, redundant ).
1996-04-29fix the wrong changes, so the bcasts will work now ;)Michael Shalayeff
1996-04-28IPX additions and fixes.Michael Shalayeff
ether -- missed the input for IPX. fddi -- just added. ppp -- field codes added. loop -- minor fix.
1996-04-19According to the latest config stuff changes (as for if_ppp.c).Michael Shalayeff
the other stuff is just for IPX support.
1996-03-03From NetBSD: 960217 mergeNiklas Hallqvist