diff options
author | wollman <wollman@FreeBSD.org> | 1995-12-21 21:20:27 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1995-12-21 21:20:27 +0000 |
commit | 3b1844ffed97a280f416ed667f7b46ce3ef52184 (patch) | |
tree | 1badc150daa025f145ec55e57b754768ec1267cd /sys/netinet/ip.h | |
parent | 2f6b2c3a32846b925f99bee9f559dce65925051a (diff) | |
download | FreeBSD-src-3b1844ffed97a280f416ed667f7b46ce3ef52184.zip FreeBSD-src-3b1844ffed97a280f416ed667f7b46ce3ef52184.tar.gz |
If _IP_VHL is defined, declare a single ip_vhl member in struct ip rather
than separate ip_v and ip_hl members. Should have no effect on current code,
but I'd eventually like to get rid of those obnoxious bitfields completely.
Diffstat (limited to 'sys/netinet/ip.h')
-rw-r--r-- | sys/netinet/ip.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/netinet/ip.h b/sys/netinet/ip.h index 41439c2..8fb9d9a 100644 --- a/sys/netinet/ip.h +++ b/sys/netinet/ip.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)ip.h 8.2 (Berkeley) 6/1/94 - * $Id: ip.h,v 1.5 1995/05/30 08:09:33 rgrimes Exp $ + * $Id: ip.h,v 1.6 1995/09/21 18:01:11 wollman Exp $ */ #ifndef _NETINET_IP_H_ @@ -51,6 +51,9 @@ * against negative integers quite easily, and fail in subtle ways. */ struct ip { +#ifdef _IP_VHL + u_char ip_vhl; /* version << 4 | header length >> 2 */ +#else #if BYTE_ORDER == LITTLE_ENDIAN u_char ip_hl:4, /* header length */ ip_v:4; /* version */ @@ -59,6 +62,7 @@ struct ip { u_char ip_v:4, /* version */ ip_hl:4; /* header length */ #endif +#endif /* not _IP_VHL */ u_char ip_tos; /* type of service */ short ip_len; /* total length */ u_short ip_id; /* identification */ |