summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1996-04-18 15:42:50 +0000
committerwollman <wollman@FreeBSD.org>1996-04-18 15:42:50 +0000
commit26b91f003dade6803e98dc20ae1322b810845b0d (patch)
treec419d50e7ef6ae685a2508de4a4e6f74514da6a9 /sys
parent753262bd8ba3e739f113771685147203b978e8f0 (diff)
downloadFreeBSD-src-26b91f003dade6803e98dc20ae1322b810845b0d.zip
FreeBSD-src-26b91f003dade6803e98dc20ae1322b810845b0d.tar.gz
Define a few macros useful in the _IP_VHL case.
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/ip.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/netinet/ip.h b/sys/netinet/ip.h
index dc8e645..7b89504 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 */
/*
OpenPOWER on IntegriCloud