diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2001-02-02 08:28:22 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2001-02-02 08:28:22 +0000 |
commit | 7208f82973bca74103056227015bbd4c20a20c4b (patch) | |
tree | e72acffd5dc5171c24893b53d92fee8d56967c94 /sys/netinet/ip_ether.h | |
parent | 86ec1982657db9cfb78b45fd3985758b70532101 (diff) |
a quick checkpoint:
- 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
Diffstat (limited to 'sys/netinet/ip_ether.h')
-rw-r--r-- | sys/netinet/ip_ether.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/netinet/ip_ether.h b/sys/netinet/ip_ether.h index d10102ad4cd..63171c03747 100644 --- a/sys/netinet/ip_ether.h +++ b/sys/netinet/ip_ether.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_ether.h,v 1.6 2001/02/01 20:19:24 jason Exp $ */ +/* $OpenBSD: ip_ether.h,v 1.7 2001/02/02 08:28:21 jason Exp $ */ /* * The author of this code is Angelos D. Keromytis (angelos@adk.gr) @@ -40,9 +40,13 @@ struct etheripstat u_int64_t etherip_obytes; /* output bytes */ }; +struct etherip_header { + u_int8_t eip_ver; +}; +#define ETHERIP_VER_VERS_MASK 0x0f +#define ETHERIP_VER_RSVD_MASK 0xf0 + #define ETHERIP_VERSION 0x02 -#define ETHERIP_VERSION_MASK 0x0f -#define ETHERIP_RSVD_MASK 0xf0 /* * Names for Ether-IP sysctl objects |