summaryrefslogtreecommitdiff
path: root/sys/net/if_ethersubr.c
AgeCommit message (Collapse)Author
2003-02-16KNFTheo de Raadt
2003-01-07remove the altq classifier code which is replaced by pf and no longer used.Kenjiro Cho
ok henning@, deraadt@
2002-09-11KNF - return is not a function.Jun-ichiro itojun Hagino
2002-06-30allocate sockaddr_dl for ifnet in if_alloc_sadl(), as we don't always knowJun-ichiro itojun Hagino
the size of sockaddr_dl on if_attach() - for instance, see ether_ifattach(). from netbsd. fgs ok
2002-06-10Split common code which converts a multicast address to an ethernetChris Cappuccio
address from ether_addmulti() and ether_delmulti() into ether_multiaddr(), a'la netbsd. Also clean up some magic numbers. itojun likes it
2002-05-17sync with KAME.Kenjiro Cho
- make altq_etherclassify() able to handle packets whose ethernet header is in a separate mbuf.
2002-05-07move ether_crc32_le to if_ethersubr.c. Add ether_crc32_beNathan Binkert
2002-02-07Quiet down an annoying message in altq_etherclassify.Artur Grabowski
2001-12-09Use queue.h TAILQ macros instead of accessing members directly.Jason Wright
(And convert a few loops to TAILQ_FOREACH).
2001-11-30unifdef OLDIP6OUTPUTJun-ichiro itojun Hagino
2001-10-03M_WAIT in ether_output is wrong. Fix APPLETALK stuff.Artur Grabowski
2001-09-20document why we use random()Theo de Raadt
2001-09-20the use of arc4random() in ether_ifattach() is wrong as randomattach()Peter Galbavy
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@
2001-08-19compile w/out INETJason Wright
2001-07-30use queue.h macrosJason Wright
2001-07-25Initialization of arpcom * based on ifp was too soon: ifp can change asJason Wright
a result of a call to bridge_input().
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