summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Syromyatnikov <evgsyr@gmail.com>2018-10-15 17:43:54 +0200
committerEugene Syromyatnikov <evgsyr@gmail.com>2021-10-12 01:12:08 +0200
commitae62ccc1cae80f4820a0c41e0de659e6daba521b (patch)
tree51d6b5d4f2a8921657cab3905be21017a0f7ab3c
parentf21601cc93a7ebba74683541f33e83bd92c4d8f0 (diff)
downloadstrace-ae62ccc1cae80f4820a0c41e0de659e6daba521b.tar.gz
xlat: add fallback values to sock_ip_options
* src/xlat/sock_ip_options.in: Add fallback values, remove IP_RECVOPTIONS, IP_RECVRETOPTS, IP_RECVDSTADDR, IP_RECVIFINDEX, IP_BROADCAST_IF that are not present in Linux, remove IP_RECVORIGDSTADDR as it is synonymous to IP_ORIGDSTADDR, add "#value_indexed".
-rw-r--r--src/xlat/sock_ip_options.in97
1 files changed, 46 insertions, 51 deletions
diff --git a/src/xlat/sock_ip_options.in b/src/xlat/sock_ip_options.in
index d9a60d389..eda3c2567 100644
--- a/src/xlat/sock_ip_options.in
+++ b/src/xlat/sock_ip_options.in
@@ -1,51 +1,46 @@
-IP_TOS
-IP_TTL
-IP_HDRINCL
-IP_OPTIONS
-IP_ROUTER_ALERT
-IP_RECVOPTIONS
-IP_RECVOPTS
-IP_RETOPTS
-IP_RECVRETOPTS
-IP_RECVDSTADDR
-IP_PKTINFO
-IP_PKTOPTIONS
-IP_MTU_DISCOVER
-IP_RECVERR
-IP_RECVTTL
-IP_RECVTOS
-IP_MTU
-IP_MULTICAST_IF
-IP_MULTICAST_TTL
-IP_MULTICAST_LOOP
-IP_ADD_MEMBERSHIP
-IP_DROP_MEMBERSHIP
-IP_BROADCAST_IF
-IP_RECVIFINDEX
-IP_MSFILTER
-IP_FREEBIND
-IP_IPSEC_POLICY
-IP_XFRM_POLICY
-IP_PASSSEC
-IP_TRANSPARENT
-IP_ORIGDSTADDR
-IP_RECVORIGDSTADDR
-IP_MINTTL
-IP_NODEFRAG
-IP_CHECKSUM
-IP_BIND_ADDRESS_NO_PORT
-IP_RECVFRAGSIZE
-IP_RECVERR_RFC4884
-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
-MCAST_MSFILTER
-IP_MULTICAST_ALL
-IP_UNICAST_IF
+#value_indexed
+IP_TOS 1
+IP_TTL 2
+IP_HDRINCL 3
+IP_OPTIONS 4
+IP_ROUTER_ALERT 5
+IP_RECVOPTS 6
+IP_RETOPTS 7
+IP_PKTINFO 8
+IP_PKTOPTIONS 9
+IP_MTU_DISCOVER 10
+IP_RECVERR 11
+IP_RECVTTL 12
+IP_RECVTOS 13
+IP_MTU 14
+IP_FREEBIND 15
+IP_IPSEC_POLICY 16
+IP_XFRM_POLICY 17
+IP_PASSSEC 18
+IP_TRANSPARENT 19
+IP_ORIGDSTADDR 20
+IP_MINTTL 21
+IP_NODEFRAG 22
+IP_CHECKSUM 23
+IP_BIND_ADDRESS_NO_PORT 24
+IP_RECVFRAGSIZE 25
+IP_RECVERR_RFC4884 26
+IP_MULTICAST_IF 32
+IP_MULTICAST_TTL 33
+IP_MULTICAST_LOOP 34
+IP_ADD_MEMBERSHIP 35
+IP_DROP_MEMBERSHIP 36
+IP_UNBLOCK_SOURCE 37
+IP_BLOCK_SOURCE 38
+IP_ADD_SOURCE_MEMBERSHIP 39
+IP_DROP_SOURCE_MEMBERSHIP 40
+IP_MSFILTER 41
+MCAST_JOIN_GROUP 42
+MCAST_BLOCK_SOURCE 43
+MCAST_UNBLOCK_SOURCE 44
+MCAST_LEAVE_GROUP 45
+MCAST_JOIN_SOURCE_GROUP 46
+MCAST_LEAVE_SOURCE_GROUP 47
+MCAST_MSFILTER 48
+IP_MULTICAST_ALL 49
+IP_UNICAST_IF 50