aboutsummaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2020-11-13 13:49:27 +0100
committerDmitry Vyukov <dvyukov@google.com>2020-11-13 14:27:16 +0100
commit857a060fe3a415c1909ad8a342d9ca21019ab2fc (patch)
treee3dbcf413b8fe04b79b7f1f36962ec2733d7f704 /sys
parente32b6fa920e7300d16c190c1138dd042a9df7ea2 (diff)
pkg/compiler: check for flags with all equal values
There is no point in having flags when values are equal. This can only mean a typo or other bug. Check for such cases and fix 3 existing precedents.
Diffstat (limited to 'sys')
-rw-r--r--sys/linux/netfilter.txt4
-rw-r--r--sys/openbsd/vnet.txt2
2 files changed, 3 insertions, 3 deletions
diff --git a/sys/linux/netfilter.txt b/sys/linux/netfilter.txt
index a620f40e7..dc8655ec0 100644
--- a/sys/linux/netfilter.txt
+++ b/sys/linux/netfilter.txt
@@ -573,7 +573,7 @@ xt_ipcomp {
hdrres const[0, int8]
}
-xt_ipcomp_flags = XT_IPCOMP_INV_SPI, XT_IPCOMP_INV_MASK
+xt_ipcomp_flags = XT_IPCOMP_INV_SPI
xt_statistic_info {
mode bool16
@@ -768,7 +768,7 @@ xt_esp {
invflags flags[xt_esp_flags, int8]
}
-xt_esp_flags = XT_ESP_INV_SPI, XT_ESP_INV_MASK
+xt_esp_flags = XT_ESP_INV_SPI
xt_cpu_info {
cpu int32
diff --git a/sys/openbsd/vnet.txt b/sys/openbsd/vnet.txt
index bd18f899c..6c229b969 100644
--- a/sys/openbsd/vnet.txt
+++ b/sys/openbsd/vnet.txt
@@ -566,7 +566,7 @@ ipv6_hopots_ext_header {
options array[ipv6_tlv_option]
} [packed, align[8]]
-ipv6_routing_types = IPV6_RTHDR_LOOSE, IPV6_RTHDR_TYPE_0
+ipv6_routing_types = IPV6_RTHDR_LOOSE
ipv6_rt_hdr {
next_header flags[ipv6_types, int8]