From 221cf3e6e6cc50d02e1d70d81fab88841e872ff7 Mon Sep 17 00:00:00 2001 From: wollman Date: Thu, 18 Apr 1996 15:42:50 +0000 Subject: [PATCH] Define a few macros useful in the _IP_VHL case. --- sys/netinet/ip.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/sys/netinet/ip.h b/sys/netinet/ip.h index dc8e645b094f..7b895047b35d 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.7 1995/12/21 21:20:27 wollman Exp $ + * $Id: ip.h,v 1.8 1996/03/14 16:59:20 fenner Exp $ */ #ifndef _NETINET_IP_H_ @@ -76,6 +76,13 @@ struct ip { struct in_addr ip_src,ip_dst; /* source and dest address */ }; +#ifdef _IP_VHL +#define IP_MAKE_VHL(v, hl) ((v) << 4 | (hl)) +#define IP_VHL_HL(vhl) ((vhl) & 0x0f) +#define IP_VHL_V(vhl) ((vhl) >> 4) +#define IP_VHL_BORING 0x45 +#endif + #define IP_MAXPACKET 65535 /* maximum packet size */ /*