]> git.ipfire.org Git - thirdparty/iptables.git/commit
libxtables: Add dccp and ipcomp to xtables_chain_protos
authorPhil Sutter <phil@nwl.cc>
Wed, 10 Jan 2024 22:22:32 +0000 (23:22 +0100)
committerPhil Sutter <phil@nwl.cc>
Tue, 6 Feb 2024 23:25:03 +0000 (00:25 +0100)
commita369c736a7fa88a176dbdb17fd50cf30074f54ab
treea6f06b719367efe60f6210754869cde6b12c7062
parent34f085b1607364f4eaded1140060dcaf965a2649
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>
libxtables/xtables.c