summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_ether.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* gif shouldn't include netinet/ip_ether.h, cos gif doesnt do etherip.dlg2019-10-041-3/+1
| | | | | | ip_ether.h is where netinet/ip_ipip.h got the forward declaration for struct tdb from though, so fix that before cutting ip_ether.h out of gif.
* get rid of prototypes for mplsip_input and mplsip_output. they don't exist.dlg2019-10-041-6/+1
|
* Add ifdef MPLS around all the MPLS-in-IP codejca2017-11-171-2/+4
| | | | ok visa@ mpi@
* Rename functions that now handle only MPLS-in-IPjca2017-11-171-3/+3
| | | | ok visa@ mpi@
* Move etherip_allow where it is usedjca2017-11-171-3/+1
| | | | | While here, drop the declaration in headers, since the variable is used in a single file. ok visa@ mpi@
* Move etherip counters and their allocation to etherip(4)jca2017-11-171-2/+1
| | | | | | | | | gif(4) now depends on etherip(4) but this is a temporary drawback: we can get rid of etherip_init(), called from the protocol switch, and ip_ether.c should stop using etherip counters once it is clear that this file doesn't handle ethernet-in-IP any more. ok visa@ as part of a larger diff, ok mpi@
* etherip(4) now handles etherip sysctls, move/remove code accordingly.jca2017-11-151-3/+1
| | | | ok visa@ as part of a larger diff, ok mpi@
* Use percpu counters with etheripstat.visa2017-11-101-2/+42
| | | | Input and OK jca@, OK florian@
* Pass down the address family through the pr_input calls. Thisbluhm2017-04-141-2/+2
| | | | | allows to simplify code used for both IPv4 and IPv6. OK mikeb@ deraadt@
* Rename struct etheripstat members for consistency, move them all to 64bitsjca2017-03-071-10/+10
| | | | Will make transition to percpu counters easier. ok bluhm@
* Change the IPv4 pr_input function to the way IPv6 is implemented,bluhm2017-01-291-5/+2
| | | | | | | to get rid of struct ip6protosw and some wrapper functions. It is more consistent to have less different structures. The divert_input functions cannot be called anyway, so remove them. OK visa@ mpi@
* Since raw_input() and route_input() are gone from pr_input, we canbluhm2017-01-251-2/+2
| | | | | | make the variable parameters of the protocol input functions fixed. Also add the proto to make it similar to IPv6. OK mpi@ guenther@ millert@
* In the next step, stop accepting the nibble-swapped protocol for 5.6.deraadt2014-07-141-3/+3
| | | | | | This completes the transition. A cvs log and diff will tell the story of why we went through this. with david.dahlberg@fkie.fraunhofer.de and claudio
* after OpenBSD requested a etherip rev 3 to solve a byte order weakness, andderaadt2013-01-141-6/+11
| | | | | | | | | worked with them to define a specific format, ietf quietly changed their mind and did something different. First step of transitioning over two release -- accept both types, but continue sending old format. pointed out by david.dahlberg@fkie.fraunhofer.de ok claudio
* Fix tcpdump for etherip packets.mpf2012-05-121-1/+3
| | | | | | bpf_mtap() needs to be called without the etherip_header. Idea to use a forward declaration for struct tdb by claudio. OK claudio@
* Massiv cleanup of the gif(4) mess. Move encapsulation into gif_output()claudio2010-05-111-1/+6
| | | | | | | | | | | where it is not necessary to guess protocols by looking at the first nibble. in_gif_output() will encapsulate the packet but not send it. Because of etherip support and the way the bridge works a minimal hack is needed in gif_start() to ensure that the bridged packets are encapsulated as well. This actually started with the idea to add MPLS support but that turned out to be not as simple as in the gre(4) case. Tested by myself (IP, IPv6, etherip, MPLS), sthen@ (IP, IPv6), naddy (IPv6) OK sthen@
* add sysctl entry points into various network layers, in particular toderaadt2007-12-141-2/+4
| | | | provide netstat(1) with data it needs; ok claudio reyk
* whitespaceitojun2002-06-091-4/+4
|
* First round of __P removal in sysmillert2002-03-141-2/+2
|
* Copyright.angelos2001-06-251-4/+3
|
* Inclusion protection.angelos2001-06-091-2/+6
|
* - define and use EtherIP version 3 (2 byte padded header instead of thejason2001-02-031-3/+4
| | | | | single byte header used in V2), and drop support for V2. - that done, remove some of the buffer copies that were used as alignment shims
* KNFjason2001-02-031-12/+11
|
* a quick checkpoint:jason2001-02-021-3/+7
| | | | | | | | | | - add a struct etherip_header (will make switching protocol versions a bit easier and give a base for aligning things correctly) - fix the version/reserved field checking for good this time - don't need to m_copydata to grab the first byte of an mbuf that you know has t hat byte - m_adj() instead of homebrew - fix M_MCAST/M_BCAST setting (cut/pasto) - if_imcasts was being updated on the wrong interface
* grr, don't forget to change the reserved field to the upper 4 bits of the header.jason2001-02-011-1/+2
|
* according to the draft-housley-etherip-01, the version is in the low orderjason2001-02-011-2/+3
| | | | 4 bits of the header
* Define version number for EtherIP protocol (soon to become RFC).angelos2001-01-091-1/+3
|
* Fix comment.angelos2000-01-211-2/+2
|
* Queue on the bridge interface.angelos1999-10-291-7/+8
|
* Add Ethernet-IP encapsulation handling.angelos1999-10-281-0/+58