add IPPROTO_IP for ctloutput, _IDP for NSIP XXX, IP_OPTIONS
authorMike Karels <karels@ucbvax.Berkeley.EDU>
Sat, 10 Aug 1985 03:24:50 +0000 (19:24 -0800)
committerMike Karels <karels@ucbvax.Berkeley.EDU>
Sat, 10 Aug 1985 03:24:50 +0000 (19:24 -0800)
to set IP options on output

SCCS-vsn: sys/netinet/in.h 6.7

usr/src/sys/netinet/in.h

index 6ff312c..919dacd 100644 (file)
@@ -3,7 +3,7 @@
  * All rights reserved.  The Berkeley software License Agreement
  * specifies the terms and conditions for redistribution.
  *
  * All rights reserved.  The Berkeley software License Agreement
  * specifies the terms and conditions for redistribution.
  *
- *     @(#)in.h        6.6 (Berkeley) %G%
+ *     @(#)in.h        6.7 (Berkeley) %G%
  */
 
 /*
  */
 
 /*
 /*
  * Protocols
  */
 /*
  * Protocols
  */
+#define        IPPROTO_IP              0               /* dummy for IP */
 #define        IPPROTO_ICMP            1               /* control message protocol */
 #define        IPPROTO_GGP             2               /* gateway^2 (deprecated) */
 #define        IPPROTO_TCP             6               /* tcp */
 #define        IPPROTO_EGP             8               /* exterior gateway protocol */
 #define        IPPROTO_PUP             12              /* pup */
 #define        IPPROTO_UDP             17              /* user datagram protocol */
 #define        IPPROTO_ICMP            1               /* control message protocol */
 #define        IPPROTO_GGP             2               /* gateway^2 (deprecated) */
 #define        IPPROTO_TCP             6               /* tcp */
 #define        IPPROTO_EGP             8               /* exterior gateway protocol */
 #define        IPPROTO_PUP             12              /* pup */
 #define        IPPROTO_UDP             17              /* user datagram protocol */
+#define        IPPROTO_IDP             22              /* xns idp */
 
 #define        IPPROTO_RAW             255             /* raw IP packet */
 #define        IPPROTO_MAX             256
 
 #define        IPPROTO_RAW             255             /* raw IP packet */
 #define        IPPROTO_MAX             256
@@ -80,6 +82,11 @@ struct sockaddr_in {
        char    sin_zero[8];
 };
 
        char    sin_zero[8];
 };
 
+/*
+ * Options for use with [gs]etsockopt at the IP level.
+ */
+#define        IP_OPTIONS      1               /* set/get IP per-packet options */
+
 #if !defined(vax)
 /*
  * Macros for number representation conversion.
 #if !defined(vax)
 /*
  * Macros for number representation conversion.