]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
* sysdeps/unix/sysv/linux/bits/in.h: Cosmetic fixes to get in sync
authorRoland McGrath <roland@gnu.org>
Tue, 25 May 2004 18:56:20 +0000 (18:56 +0000)
committerRoland McGrath <roland@gnu.org>
Tue, 25 May 2004 18:56:20 +0000 (18:56 +0000)
with sysdeps/generic/bits/in.h.

ChangeLog
sysdeps/unix/sysv/linux/bits/in.h

index cf131a5c8cbd49610d1095c4643a3cb949aae46b..9c1166efe844d79d2e48cca9e3f54f86f3f266fa 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-10  Robert Millan  <robertmh@gnu.org>
+
+       * sysdeps/unix/sysv/linux/bits/in.h: Cosmetic fixes to get in sync
+       with sysdeps/generic/bits/in.h.
+
 2004-05-25  Roland McGrath  <roland@frob.com>
 
        * sysdeps/generic/unwind-dw2-fde-glibc.c: Change copyright terms from
index 5c21ec9aa840c729c10c8548eeed9ed197afdd0d..ff72d4587bb109c6f7b5054232232d9e808cdfda 100644 (file)
 /* Options for use with `getsockopt' and `setsockopt' at the IP level.
    The first word in the comment at the right is the data type used;
    "bool" means a boolean value stored in an `int'.  */
-#define IP_TOS             1   /* int; IP type of service and precedence.  */
-#define IP_TTL             2   /* int; IP time to live.  */
-#define IP_HDRINCL         3   /* int; Header is included with data.  */
-#define IP_OPTIONS         4   /* ip_opts; IP per-packet options.  */
+#define        IP_OPTIONS      4       /* ip_opts; IP per-packet options.  */
+#define        IP_HDRINCL      3       /* int; Header is included with data.  */
+#define        IP_TOS          1       /* int; IP type of service and precedence.  */
+#define        IP_TTL          2       /* int; IP time to live.  */
+#define        IP_RECVOPTS     6       /* bool; Receive all IP options w/datagram.  */
+/* For BSD compatibility.  */
+#define        IP_RECVRETOPTS  IP_RETOPTS       /* bool; Receive IP options for response.  */
+#define        IP_RETOPTS      7       /* ip_opts; Set/get IP per-packet options.  */
+#define IP_MULTICAST_IF 32      /* in_addr; set/get IP multicast i/f */
+#define IP_MULTICAST_TTL 33    /* u_char; set/get IP multicast ttl */
+#define IP_MULTICAST_LOOP 34   /* i_char; set/get IP multicast loopback */
+#define IP_ADD_MEMBERSHIP 35   /* ip_mreq; add an IP group membership */
+#define IP_DROP_MEMBERSHIP 36  /* ip_mreq; drop an IP group membership */
+
 #define IP_ROUTER_ALERT    5   /* bool */
-#define IP_RECVOPTS        6   /* bool */
-#define IP_RETOPTS         7   /* bool */
 #define IP_PKTINFO         8   /* bool */
 #define IP_PKTOPTIONS      9
 #define IP_PMTUDISC        10  /* obsolete name? */
 #define IP_RECVERR         11  /* bool */
 #define IP_RECVTTL         12  /* bool */
 #define IP_RECVTOS         13  /* bool */
-#define IP_MULTICAST_IF    32  /* in_addr; set/get IP multicast i/f */
-#define IP_MULTICAST_TTL   33  /* u_char; set/get IP multicast ttl */
-#define IP_MULTICAST_LOOP  34  /* i_char; set/get IP multicast loopback */
-#define IP_ADD_MEMBERSHIP  35  /* ip_mreq; add an IP group membership */
-#define IP_DROP_MEMBERSHIP 36  /* ip_mreq; drop an IP group membership */
 
-/* For BSD compatibility.  */
-#define IP_RECVRETOPTS IP_RETOPTS
 
 /* IP_MTU_DISCOVER arguments.  */
 #define IP_PMTUDISC_DONT   0   /* Never send DF frames.  */
@@ -60,9 +61,9 @@
 #define IP_DEFAULT_MULTICAST_LOOP       1
 #define IP_MAX_MEMBERSHIPS              20
 
-/* Structure used to describe IP options for IP_OPTIONS. The `ip_dst'
-   field is used for the first-hop gateway when using a source route
-   (this gets put into the header proper).  */
+/* Structure used to describe IP options for IP_OPTIONS and IP_RETOPTS.
+   The `ip_dst' field is used for the first-hop gateway when using a
+   source route (this gets put into the header proper).  */
 struct ip_opts
   {
     struct in_addr ip_dst;     /* First hop; zero without source route.  */
@@ -103,6 +104,9 @@ struct in_pktinfo
 #define IPV6_PKTOPTIONS                6
 #define IPV6_CHECKSUM          7
 #define IPV6_HOPLIMIT          8
+
+#define SCM_SRCRT              IPV6_RXSRCRT
+
 #define IPV6_NEXTHOP           9
 #define IPV6_AUTHHDR           10
 #define IPV6_UNICAST_HOPS      16
@@ -121,14 +125,11 @@ struct in_pktinfo
 #define IPV6_IPSEC_POLICY      34
 #define IPV6_XFRM_POLICY       35
 
-#define SCM_SRCRT              IPV6_RXSRCRT
-
 /* Obsolete synonyms for the above.  */
-#define IPV6_RXHOPOPTS         IPV6_HOPOPTS
-#define IPV6_RXDSTOPTS         IPV6_DSTOPTS
 #define IPV6_ADD_MEMBERSHIP    IPV6_JOIN_GROUP
 #define IPV6_DROP_MEMBERSHIP   IPV6_LEAVE_GROUP
-
+#define IPV6_RXHOPOPTS         IPV6_HOPOPTS
+#define IPV6_RXDSTOPTS         IPV6_DSTOPTS
 
 /* IPV6_MTU_DISCOVER values.  */
 #define IPV6_PMTUDISC_DONT     0       /* Never send DF frames.  */