diff options
author | thompsa <thompsa@FreeBSD.org> | 2005-12-21 21:29:45 +0000 |
---|---|---|
committer | thompsa <thompsa@FreeBSD.org> | 2005-12-21 21:29:45 +0000 |
commit | 42c9ecf9f57f7681e401bcf499946dbe2f2cd09f (patch) | |
tree | fbd9c548f0727ef749bbae4f6181a65a63dbc539 /sys/net/if_gif.h | |
parent | 09b665597401a6c52abc7955a365036782ba772a (diff) | |
download | FreeBSD-src-42c9ecf9f57f7681e401bcf499946dbe2f2cd09f.zip FreeBSD-src-42c9ecf9f57f7681e401bcf499946dbe2f2cd09f.tar.gz |
Add RFC 3378 EtherIP support. This change makes it possible to add gif
interfaces to bridges, which will then send and receive IP protocol 97 packets.
Packets are Ethernet frames with an EtherIP header prepended.
Obtained from: NetBSD
MFC after: 2 weeks
Diffstat (limited to 'sys/net/if_gif.h')
-rw-r--r-- | sys/net/if_gif.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/net/if_gif.h b/sys/net/if_gif.h index 831c7f7..698c6703 100644 --- a/sys/net/if_gif.h +++ b/sys/net/if_gif.h @@ -85,6 +85,14 @@ struct gif_softc { #define MTAG_GIF 1080679712 #define MTAG_GIF_CALLED 0 +struct etherip_header { + u_int8_t eip_ver; /* version/reserved */ + u_int8_t eip_pad; /* required padding byte */ +}; +#define ETHERIP_VER_VERS_MASK 0x0f +#define ETHERIP_VER_RSVD_MASK 0xf0 +#define ETHERIP_VERSION 0x03 + /* Prototypes */ void gifattach0(struct gif_softc *); void gif_input(struct mbuf *, int, struct ifnet *); |