diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2020-02-01 11:33:32 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-02-01 11:33:32 +0100 |
| commit | 692266c73ac1a0727b44b0ba097408a5bbf1f3c7 (patch) | |
| tree | 10cd267d774775383653bf02225ca572016f1b1e /sys/linux | |
| parent | 326d4c7836f3fd67d56cefb373c70a9d1a48c827 (diff) | |
sys/linux: use literal consts instead of hardcoded number
Diffstat (limited to 'sys/linux')
| -rw-r--r-- | sys/linux/gen/386.go | 3 | ||||
| -rw-r--r-- | sys/linux/gen/amd64.go | 3 | ||||
| -rw-r--r-- | sys/linux/gen/arm.go | 3 | ||||
| -rw-r--r-- | sys/linux/gen/arm64.go | 3 | ||||
| -rw-r--r-- | sys/linux/gen/mips64le.go | 3 | ||||
| -rw-r--r-- | sys/linux/gen/ppc64le.go | 3 | ||||
| -rw-r--r-- | sys/linux/socket_inet_tcp.txt | 4 | ||||
| -rw-r--r-- | sys/linux/socket_inet_tcp_386.const | 1 | ||||
| -rw-r--r-- | sys/linux/socket_inet_tcp_amd64.const | 1 | ||||
| -rw-r--r-- | sys/linux/socket_inet_tcp_arm.const | 1 | ||||
| -rw-r--r-- | sys/linux/socket_inet_tcp_arm64.const | 1 | ||||
| -rw-r--r-- | sys/linux/socket_inet_tcp_mips64le.const | 1 | ||||
| -rw-r--r-- | sys/linux/socket_inet_tcp_ppc64le.const | 1 |
13 files changed, 20 insertions, 8 deletions
diff --git a/sys/linux/gen/386.go b/sys/linux/gen/386.go index 234c3654c..ff34824ad 100644 --- a/sys/linux/gen/386.go +++ b/sys/linux/gen/386.go @@ -68527,6 +68527,7 @@ var consts_386 = []ConstValue{ {"IPPROTO_L2TP", 115}, {"IPPROTO_MH", 135}, {"IPPROTO_MPLS", 137}, + {"IPPROTO_MPTCP", 262}, {"IPPROTO_MTP", 92}, {"IPPROTO_NONE", 59}, {"IPPROTO_PIM", 103}, @@ -75754,4 +75755,4 @@ var consts_386 = []ConstValue{ {"ethtool_per_queue_op_size", 128}, } -const revision_386 = "4ef672393ff02caf7615f1fbb4a749620a2ca873" +const revision_386 = "84c3c78eff5c3d2bec65378261b09dc0eb5dd264" diff --git a/sys/linux/gen/amd64.go b/sys/linux/gen/amd64.go index 8e9a34ac5..98fce959a 100644 --- a/sys/linux/gen/amd64.go +++ b/sys/linux/gen/amd64.go @@ -69473,6 +69473,7 @@ var consts_amd64 = []ConstValue{ {"IPPROTO_L2TP", 115}, {"IPPROTO_MH", 135}, {"IPPROTO_MPLS", 137}, + {"IPPROTO_MPTCP", 262}, {"IPPROTO_MTP", 92}, {"IPPROTO_NONE", 59}, {"IPPROTO_PIM", 103}, @@ -76714,4 +76715,4 @@ var consts_amd64 = []ConstValue{ {"ethtool_per_queue_op_size", 128}, } -const revision_amd64 = "1c9c7c18dca5c3d692dd3f7eb025b962ded562c7" +const revision_amd64 = "7f945156b7074aa478b8d6e3e8bdd835434bd2d1" diff --git a/sys/linux/gen/arm.go b/sys/linux/gen/arm.go index e50b91083..d9ce74672 100644 --- a/sys/linux/gen/arm.go +++ b/sys/linux/gen/arm.go @@ -68243,6 +68243,7 @@ var consts_arm = []ConstValue{ {"IPPROTO_L2TP", 115}, {"IPPROTO_MH", 135}, {"IPPROTO_MPLS", 137}, + {"IPPROTO_MPTCP", 262}, {"IPPROTO_MTP", 92}, {"IPPROTO_NONE", 59}, {"IPPROTO_PIM", 103}, @@ -75406,4 +75407,4 @@ var consts_arm = []ConstValue{ {"ethtool_per_queue_op_size", 128}, } -const revision_arm = "6978f3ab5517180be51691490677bcc0c067f398" +const revision_arm = "e9390fd58634699bc6a68f0f67f821bf7b0ab383" diff --git a/sys/linux/gen/arm64.go b/sys/linux/gen/arm64.go index bc6251661..86b25228d 100644 --- a/sys/linux/gen/arm64.go +++ b/sys/linux/gen/arm64.go @@ -68911,6 +68911,7 @@ var consts_arm64 = []ConstValue{ {"IPPROTO_L2TP", 115}, {"IPPROTO_MH", 135}, {"IPPROTO_MPLS", 137}, + {"IPPROTO_MPTCP", 262}, {"IPPROTO_MTP", 92}, {"IPPROTO_NONE", 59}, {"IPPROTO_PIM", 103}, @@ -76059,4 +76060,4 @@ var consts_arm64 = []ConstValue{ {"ethtool_per_queue_op_size", 128}, } -const revision_arm64 = "d71e770927deac11e77bca1bf1de0c23c43c6704" +const revision_arm64 = "5b9531fe5418e9fec2eb6c37fdc896446e61936c" diff --git a/sys/linux/gen/mips64le.go b/sys/linux/gen/mips64le.go index 55acb3d65..7d1378919 100644 --- a/sys/linux/gen/mips64le.go +++ b/sys/linux/gen/mips64le.go @@ -67602,6 +67602,7 @@ var consts_mips64le = []ConstValue{ {"IPPROTO_L2TP", 115}, {"IPPROTO_MH", 135}, {"IPPROTO_MPLS", 137}, + {"IPPROTO_MPTCP", 262}, {"IPPROTO_MTP", 92}, {"IPPROTO_NONE", 59}, {"IPPROTO_PIM", 103}, @@ -73720,4 +73721,4 @@ var consts_mips64le = []ConstValue{ {"ethtool_per_queue_op_size", 128}, } -const revision_mips64le = "ff5649fcfaeaecfdde5ec7f9018b9c1acd025f54" +const revision_mips64le = "4f29bb8b1cd8e7ff8c19ebce1809e1dba86face2" diff --git a/sys/linux/gen/ppc64le.go b/sys/linux/gen/ppc64le.go index 16078ef57..430a6fc7d 100644 --- a/sys/linux/gen/ppc64le.go +++ b/sys/linux/gen/ppc64le.go @@ -68932,6 +68932,7 @@ var consts_ppc64le = []ConstValue{ {"IPPROTO_L2TP", 115}, {"IPPROTO_MH", 135}, {"IPPROTO_MPLS", 137}, + {"IPPROTO_MPTCP", 262}, {"IPPROTO_MTP", 92}, {"IPPROTO_NONE", 59}, {"IPPROTO_PIM", 103}, @@ -76056,4 +76057,4 @@ var consts_ppc64le = []ConstValue{ {"ethtool_per_queue_op_size", 128}, } -const revision_ppc64le = "f1f9b5304861c0c40f8915a330032270f3319223" +const revision_ppc64le = "ba0df3df2adef37bd095e45a87d010791519994c" diff --git a/sys/linux/socket_inet_tcp.txt b/sys/linux/socket_inet_tcp.txt index 42993e62e..aea321e6b 100644 --- a/sys/linux/socket_inet_tcp.txt +++ b/sys/linux/socket_inet_tcp.txt @@ -12,7 +12,7 @@ include <uapi/linux/tls.h> resource sock_tcp[sock_in] socket$inet_tcp(domain const[AF_INET], type const[SOCK_STREAM], proto const[0]) sock_tcp -socket$inet_mptcp(domain const[AF_INET], type const[SOCK_STREAM], proto const[262]) sock_tcp +socket$inet_mptcp(domain const[AF_INET], type const[SOCK_STREAM], proto const[IPPROTO_MPTCP]) sock_tcp # From interface point of view SMC sockets seem to be the same as TCP. socket$inet_smc(domain const[AF_SMC], type const[SOCK_STREAM], proto const[0]) sock_tcp @@ -20,7 +20,7 @@ socket$inet_smc(domain const[AF_SMC], type const[SOCK_STREAM], proto const[0]) s resource sock_tcp6[sock_in6] socket$inet6_tcp(domain const[AF_INET6], type const[SOCK_STREAM], proto const[0]) sock_tcp6 -socket$inet6_mptcp(domain const[AF_INET6], type const[SOCK_STREAM], proto const[262]) sock_tcp6 +socket$inet6_mptcp(domain const[AF_INET6], type const[SOCK_STREAM], proto const[IPPROTO_MPTCP]) sock_tcp6 # Generic TCP socket options diff --git a/sys/linux/socket_inet_tcp_386.const b/sys/linux/socket_inet_tcp_386.const index 4e80ef1ae..3ceb90532 100644 --- a/sys/linux/socket_inet_tcp_386.const +++ b/sys/linux/socket_inet_tcp_386.const @@ -2,6 +2,7 @@ AF_INET = 2 AF_INET6 = 10 AF_SMC = 43 +IPPROTO_MPTCP = 262 IPPROTO_TCP = 6 SIOCATMARK = 35077 SIOCINQ = 21531 diff --git a/sys/linux/socket_inet_tcp_amd64.const b/sys/linux/socket_inet_tcp_amd64.const index efb523656..b49a50933 100644 --- a/sys/linux/socket_inet_tcp_amd64.const +++ b/sys/linux/socket_inet_tcp_amd64.const @@ -2,6 +2,7 @@ AF_INET = 2 AF_INET6 = 10 AF_SMC = 43 +IPPROTO_MPTCP = 262 IPPROTO_TCP = 6 SIOCATMARK = 35077 SIOCINQ = 21531 diff --git a/sys/linux/socket_inet_tcp_arm.const b/sys/linux/socket_inet_tcp_arm.const index 552deba17..882de327e 100644 --- a/sys/linux/socket_inet_tcp_arm.const +++ b/sys/linux/socket_inet_tcp_arm.const @@ -2,6 +2,7 @@ AF_INET = 2 AF_INET6 = 10 AF_SMC = 43 +IPPROTO_MPTCP = 262 IPPROTO_TCP = 6 SIOCATMARK = 35077 SIOCINQ = 21531 diff --git a/sys/linux/socket_inet_tcp_arm64.const b/sys/linux/socket_inet_tcp_arm64.const index 0e32bbfca..ef0162ac0 100644 --- a/sys/linux/socket_inet_tcp_arm64.const +++ b/sys/linux/socket_inet_tcp_arm64.const @@ -2,6 +2,7 @@ AF_INET = 2 AF_INET6 = 10 AF_SMC = 43 +IPPROTO_MPTCP = 262 IPPROTO_TCP = 6 SIOCATMARK = 35077 SIOCINQ = 21531 diff --git a/sys/linux/socket_inet_tcp_mips64le.const b/sys/linux/socket_inet_tcp_mips64le.const index bae162037..4ed3a37c9 100644 --- a/sys/linux/socket_inet_tcp_mips64le.const +++ b/sys/linux/socket_inet_tcp_mips64le.const @@ -2,6 +2,7 @@ AF_INET = 2 AF_INET6 = 10 AF_SMC = 43 +IPPROTO_MPTCP = 262 IPPROTO_TCP = 6 SIOCATMARK = 1074033415 SIOCINQ = 18047 diff --git a/sys/linux/socket_inet_tcp_ppc64le.const b/sys/linux/socket_inet_tcp_ppc64le.const index 3a24218dd..f801d0228 100644 --- a/sys/linux/socket_inet_tcp_ppc64le.const +++ b/sys/linux/socket_inet_tcp_ppc64le.const @@ -2,6 +2,7 @@ AF_INET = 2 AF_INET6 = 10 AF_SMC = 43 +IPPROTO_MPTCP = 262 IPPROTO_TCP = 6 SIOCATMARK = 35077 SIOCINQ = 1074030207 |
