aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/ip.h
diff options
context:
space:
mode:
authorGarrett Wollman <wollman@FreeBSD.org>1996-04-18 15:42:50 +0000
committerGarrett Wollman <wollman@FreeBSD.org>1996-04-18 15:42:50 +0000
commit61e5033f0ab41095899cd73a3abe24368731b2a1 (patch)
treec419d50e7ef6ae685a2508de4a4e6f74514da6a9 /sys/netinet/ip.h
parentdbe4b3f02672d31de1a81b67f068ffe145bcb7e9 (diff)
downloadsrc-61e5033f0ab41095899cd73a3abe24368731b2a1.tar.gz
src-61e5033f0ab41095899cd73a3abe24368731b2a1.zip
Define a few macros useful in the _IP_VHL case.
Notes
Notes: svn path=/head/; revision=15294
Diffstat (limited to 'sys/netinet/ip.h')
-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 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 */
/*