summaryrefslogtreecommitdiffstats
path: root/libxtables
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2024-01-10 23:22:32 +0100
committerPhil Sutter <phil@nwl.cc>2024-02-07 00:25:03 +0100
commita369c736a7fa88a176dbdb17fd50cf30074f54ab (patch)
treea6f06b719367efe60f6210754869cde6b12c7062 /libxtables
parent34f085b1607364f4eaded1140060dcaf965a2649 (diff)
libxtables: Add dccp and ipcomp to xtables_chain_protos
There are "protocol extensions" for both just like with TCP or UDP. Caching their values allows for implicit extension lookup after '-p' flag, for instance: | iptables -A FORWARD -p dccp --dport 1 | iptables -A FORWARD -p ipcomp --ipcompspi 18 Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'libxtables')
-rw-r--r--libxtables/xtables.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libxtables/xtables.c b/libxtables/xtables.c
index ae3ff25a..f2fcc5c2 100644
--- a/libxtables/xtables.c
+++ b/libxtables/xtables.c
@@ -2203,6 +2203,8 @@ const struct xtables_pprot xtables_chain_protos[] = {
{"mobility-header", IPPROTO_MH},
{"ipv6-mh", IPPROTO_MH},
{"mh", IPPROTO_MH},
+ {"dccp", IPPROTO_DCCP},
+ {"ipcomp", IPPROTO_COMP},
{"all", 0},
{NULL},
};