1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-10 09:42:26 +00:00

Define a few macros useful in the _IP_VHL case.

This commit is contained in:
Garrett Wollman 1996-04-18 15:42:50 +00:00
parent dbe4b3f026
commit 61e5033f0a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=15294

View File

@ -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 */
/*