summaryrefslogtreecommitdiffstats
path: root/sys/netinet/if_ether.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* For virtual Ethernet drivers that don't have a technical limit of thereyk2016-11-291-1/+6
| | | | | | | | hardmtu, pick a value of 65435 that leaves space for some encapsulation and almost a complete max-IP packet. After some discussion we picked this arbitrary value. OK dlg@
* Add sysctl for arp timers: net.inet.ip.arptimeout (expire timer for resolvedchris2016-06-281-1/+4
| | | | | | entries) and net.inet.ip.arpdown (expire timer for unresolved entries) ok mpi@
* Remove some superflous if_get(9)/if_put(9) dances now that ARP inputmpi2016-05-181-3/+3
| | | | | | routines are call directly by ether_input(). ok visa@, dlg@
* Implement proxy ARP for ART based on mpath support.mpi2016-03-301-2/+1
| | | | | | Since mpath is not enabled in RAMDISK, proxy ARP won't work there either. ok bluhm@
* macros for the null, min, and max vlan ids.dlg2016-03-161-2/+6
| | | | ok mpi@ and tweaks from sthen@
* move the vlan protocol definitions to the same places as the ethernet onesdlg2016-03-141-1/+22
| | | | ok mpi@
* enm_ac in ether_multi is set but never used. so we dont need it.dlg2016-03-011-2/+1
|
* Get rid of the arp and revarp input queues.mpi2016-01-081-15/+13
| | | | | | | Packets of types ARP and REVARP are now processed in the softnet task, directly from ether_input() and without holding the KERNEL_LOCK. Tested by many, ok dlg@
* Keep all ether prototypes in one place.mpi2015-12-091-1/+10
|
* Merge three #ifdef _KERNEL blocks into one.mpi2015-11-241-49/+43
|
* Sore the index of the interface used for revarp instead of a pointer tompi2015-11-131-2/+2
| | | | | | its descriptor. Get rid of a if_ref(). ok dlg@
* RIP arp_ifinit().mpi2015-10-271-2/+1
|
* Introduce if_rtrequest() the successor of ifa_rtrequest().mpi2015-10-251-2/+2
| | | | | | | | | L2 resolution depends on the protocol (encoded in the route entry) and an ``ifp''. Not having to care about an ``ifa'' makes our life easier in our MP effort. Fewer dependencies between data structures implies fewer headaches. Discussed with bluhm@, ok claudio@
* Welcome etheranyaddr, cousin of etherbroadcastaddr.stsp2015-09-271-1/+2
| | | | | | Can be used to check if a MAC address is all zeros. Will be used by iwm(4) soon. ok kettenis@
* queue revarps to softnet so we can defer processing to a context withdlg2015-09-131-3/+2
| | | | | | the kernel lock. "do it" claudio@ mpi@
* Missing prototype change in previous.mpi2015-09-101-2/+2
|
* Pass a "struct ifnet *" instead of a "struct arpcom *" to arpresolve().mpi2015-06-231-2/+2
| | | | | | | | Most of the ARP layer already take an ifp pointer and this makes clear wich chunks of code are messing with ac_enaddr. Note that our Ethernet code assume that these pointer are interchangeable since the first element of the "struct arpcom" is a "struct ifnet".
* replace the use of ifqueues for most input queues serviced by netisrdlg2015-04-101-2/+2
| | | | | | | | | | | | | | | | | with niqueues. this change is so big because there's a lot of code that takes pointers to different input queues (eg, ether_input picks between ipv4, ipv6, pppoe, arp, and mpls input queues) and falls through to code to enqueue packets against the pointer. if i changed only one of the input queues id have to add sepearate code paths, one for ifqueues and one for niqueues in each of these places by flipping all these input queues at once i can keep the currently common code common. testing by mpi@ sthen@ and rafael zalamena ok mpi@ sthen@ claudio@ henning@
* Convert hand-rolled mbuf list used to store packets until ARPmpi2015-03-241-12/+1
| | | | | | resolution is completed to ml_init(9) API. Tested by kspillner@, inputs & ok dlg@
* Explicitly include <net/if_var.h> instead of pulling it in <net/if.h>.mpi2014-12-051-1/+4
| | | | ok mikeb@, krw@, bluhm@, tedu@
* bzero/bcmp -> memset/memcmp. ok matthewtedu2014-01-091-4/+4
|
* hide a bunch of structures (namely arpcom, llinfo_arp, ethernetmikeb2013-11-211-4/+3
| | | | | multicast macros and in_ifaddr) that reference ifnet in some way; looked over by deraadt, ok mpi
* Remove unused argument from *rtrequest()mpi2013-08-281-2/+2
| | | | ok krw@, mikeb@
* Rewrite the function used to determine if we do proxy ARP for one ofmpi2013-07-041-1/+2
| | | | | | our addresses to reuse arplookup() and do only one list iteration. Looks ok to claudio@, ok mikeb@
* simple replacement of LIST_END with NULL. ok mpitedu2013-03-221-2/+2
|
* Move revarp code into #ifdef NFSCLIENT; saving space on some media.deraadt2012-10-181-2/+4
| | | | | | | Resurrect the rather silly "unplug my network device while I am doing nfs diskless revarp" safety code which was disabled due to a missing "ether.h" include, found by jsg ok jsg
* arpioctl() is not used sore remove it. Found by Gleydson Soares.claudio2010-02-081-2/+1
|
* Unify the various fake ethernet generators as ether_fakeaddr() whichderaadt2010-01-121-1/+3
| | | | | | is safe for both hardware devices and virtual devices ok mpf, kettenis, moaning and groaning and slow acceptance from mcbride XXX should loop checking for uniqueness after new henning diff goes in
* Get rid of unused macro `la_timer'.mk2009-10-251-2/+1
| | | | `if it is unused nuke it' claudio
* fix macros up so they use the do { } while (/* CONSTCOND */ 0) idiomdlg2008-11-081-23/+23
| | | | ok deraadt@ otto@
* Be way more strict in the number of packets allowed to be queued in theclaudio2008-10-311-2/+2
| | | | | arp layer. With a lot of input from deraadt@. OK dlg@, looks good gollo@ + deraadt@
* Arpresolve could loose few packets during resolving an ethernetgollo2008-10-301-2/+6
| | | | | | | | | address. This cvs commit introduces a queue that buffers a small burst of packets and resending the packets in correct order when the ethernet address is resolved. Code written by Armin Wolfermann <aw@osn.de>. OK: claudio@ henning@
* Kill M_HASFCS, it is not used in OpenBSD. If a ethernet chip returns theclaudio2008-10-161-6/+1
| | | | | checksum in the packet it should be trimmed away by the driver and not by driver independent code. OK brad@
* extend the if_ethersubr.c crc functions to support updating a runningdjm2008-04-181-1/+3
| | | | | | | | | | | crc in addition to the existing "oneshot" mode and use them to replace ieee80211_crc_update() with the new ether_crc32_le_update(). Saves 1k kernel bss + some code. Mark the new ether_crc32_[lb]e_update functions as __pure for a ~25x speedup (on my i386 at least). feedback and ok damien@
* count the number of multicast ranges that are kept in the list of multicastdlg2007-05-161-3/+5
| | | | | | | addresses in struct arpcom. this lets a nic driver easily see if it wants allmulti behaviour, which in turn means we can clean some code up. ok jason@ claudio@ norby@
* No need to add function prototypes twice to a header file.claudio2006-06-281-6/+1
|
* - remove ETHER_MAX_LEN_JUMBO and ETHERMTU_JUMBO.brad2006-05-281-3/+1
| | | | | | - use if_hardmtu for MTU ioctl handlers. ok reyk@
* Use more queue macros rather than doing it by hand; ok otto@ krw@miod2006-03-051-6/+6
|
* add some const to ether_*. remove bonus prototypes this brought out.tedu2005-03-281-4/+4
| | | | ok deraadt@
* add ETHER_MAX_DIX_LENbrad2004-09-231-1/+2
|
* - formattingbrad2004-07-311-5/+8
| | | | - add comment
* Add M_LINK0 for net80211; OK markus@ and mcbride@millert2004-06-221-1/+6
|
* make safe for inclusion in C++ code; ok millert@, deraadt@naddy2004-06-161-1/+3
|
* if_ether.hbrad2004-05-181-2/+13
| | | | | | | | | | | | add ETHER_MAX_LEN_JUMBO, ETHER_VLAN_ENCAP_LEN, ETHER_ALIGN, and ETHERMTU_JUMBO constants. if.h add a few more interface capabilities flags. Some from NetBSD, some from FreeBSD. ok markus@
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-6/+2
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* move ETHERTYPE_xx declarations to <net/ethertypes.h>. meets netbsd practice.itojun2003-05-141-18/+2
| | | | deraadt ok
* back out. these changes were not tested. it might come as a surprisederaadt2003-05-131-2/+18
| | | | | | | | | to some developers, but include files are not just used by the kernel. there are applications that pull them in as well. this change broke tcpdump, and who knows what else. i've been talking for 24 hours now about tree breakage and let this be official: I am prepared to lock the tree entirely if need be. YOU WILL GET OK PERMISSION FROM EVERYONE, NOT JUST FROM ONE PERSON
* move ethernet protocol type defs into sys/net/, as it is not just for ethernetitojun2003-05-131-18/+2
| | | | | (FDDI, ieee1394, ...). follows netbsd practice. 2 jasons, dhartmei, thierry ok
* Change all variables definitions (int foo) in sys/sys/*.h to variablemiod2002-07-031-5/+5
| | | | declarations (extern int foo), and compensate in the appropriate locations.
* spelling; from Brian Poole <raj@cerias.purdue.edu>todd2002-06-141-2/+2
|