[PATCH] net: add more sockopt options
Mike Frysinger
vapier at gentoo.org
Thu Jan 30 23:53:43 UTC 2014
This syncs with the defines as available in linux-3.13.
* net.c (sockipoptions): Add IP_IPSEC_POLICY, IP_XFRM_POLICY, IP_PASSSEC,
IP_TRANSPARENT, IP_ORIGDSTADDR, IP_RECVORIGDSTADDR, IP_MINTTL, IP_NODEFRAG,
IP_UNBLOCK_SOURCE, IP_BLOCK_SOURCE, IP_ADD_SOURCE_MEMBERSHIP,
IP_DROP_SOURCE_MEMBERSHIP, MCAST_JOIN_GROUP, MCAST_BLOCK_SOURCE,
MCAST_UNBLOCK_SOURCE, MCAST_LEAVE_GROUP, MCAST_JOIN_SOURCE_GROUP,
MCAST_LEAVE_SOURCE_GROUP, IP_MULTICAST_ALL, IP_UNICAST_IF.
---
net.c | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 60 insertions(+)
diff --git a/net.c b/net.c
index ea785b3..dd1e446 100644
--- a/net.c
+++ b/net.c
@@ -850,6 +850,66 @@ static const struct xlat sockipoptions[] = {
#ifdef IP_FREEBIND
{ IP_FREEBIND, "IP_FREEBIND" },
#endif
+#ifdef IP_IPSEC_POLICY
+ { IP_IPSEC_POLICY, "IP_IPSEC_POLICY" },
+#endif
+#ifdef IP_XFRM_POLICY
+ { IP_XFRM_POLICY, "IP_XFRM_POLICY" },
+#endif
+#ifdef IP_PASSSEC
+ { IP_PASSSEC, "IP_PASSSEC" },
+#endif
+#ifdef IP_TRANSPARENT
+ { IP_TRANSPARENT, "IP_TRANSPARENT" },
+#endif
+#ifdef IP_ORIGDSTADDR
+ { IP_ORIGDSTADDR, "IP_ORIGDSTADDR" },
+#endif
+#ifdef IP_RECVORIGDSTADDR
+ { IP_RECVORIGDSTADDR, "IP_RECVORIGDSTADDR" },
+#endif
+#ifdef IP_MINTTL
+ { IP_MINTTL, "IP_MINTTL" },
+#endif
+#ifdef IP_NODEFRAG
+ { IP_NODEFRAG, "IP_NODEFRAG" },
+#endif
+#ifdef IP_UNBLOCK_SOURCE
+ { IP_UNBLOCK_SOURCE, "IP_UNBLOCK_SOURCE" },
+#endif
+#ifdef IP_BLOCK_SOURCE
+ { IP_BLOCK_SOURCE, "IP_BLOCK_SOURCE" },
+#endif
+#ifdef IP_ADD_SOURCE_MEMBERSHIP
+ { IP_ADD_SOURCE_MEMBERSHIP, "IP_ADD_SOURCE_MEMBERSHIP" },
+#endif
+#ifdef IP_DROP_SOURCE_MEMBERSHIP
+ { IP_DROP_SOURCE_MEMBERSHIP, "IP_DROP_SOURCE_MEMBERSHIP" },
+#endif
+#ifdef MCAST_JOIN_GROUP
+ { MCAST_JOIN_GROUP, "MCAST_JOIN_GROUP" },
+#endif
+#ifdef MCAST_BLOCK_SOURCE
+ { MCAST_BLOCK_SOURCE, "MCAST_BLOCK_SOURCE" },
+#endif
+#ifdef MCAST_UNBLOCK_SOURCE
+ { MCAST_UNBLOCK_SOURCE, "MCAST_UNBLOCK_SOURCE" },
+#endif
+#ifdef MCAST_LEAVE_GROUP
+ { MCAST_LEAVE_GROUP, "MCAST_LEAVE_GROUP" },
+#endif
+#ifdef MCAST_JOIN_SOURCE_GROUP
+ { MCAST_JOIN_SOURCE_GROUP, "MCAST_JOIN_SOURCE_GROUP" },
+#endif
+#ifdef MCAST_LEAVE_SOURCE_GROUP
+ { MCAST_LEAVE_SOURCE_GROUP, "MCAST_LEAVE_SOURCE_GROUP" },
+#endif
+#ifdef IP_MULTICAST_ALL
+ { IP_MULTICAST_ALL, "IP_MULTICAST_ALL" },
+#endif
+#ifdef IP_UNICAST_IF
+ { IP_UNICAST_IF, "IP_UNICAST_IF" },
+#endif
{ 0, NULL },
};
#endif /* SOL_IP */
--
1.8.5.3
More information about the Strace-devel
mailing list