Skip to contentSkip to conversation

proto: Add router advertisement and solicitation icmp types

PATCH Applied Laura Garcia Liebana 2 participants 2 messages Mar 9, 2016 – Mar 10, 2016 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 proto: Add router advertisement and solicitation icmp types

Enable support for router-advertisement and router-solicitation icmp types in nft.

Example:

$ sudo nft add rule ip filter input icmp type router-advertisement counter accept
$ sudo nft add rule ip filter input icmp type router-solicitation counter accept
---
 src/proto.c | 2 ++
 1 file changed, 2 insertions(+)
src/proto.c +2 -0
index 0ed98ed..b54a4c1 100644
@@ -299,6 +299,8 @@ static const struct symbol_table icmp_type_tbl = {
 		SYMBOL("source-quench",			ICMP_SOURCE_QUENCH),
 		SYMBOL("redirect",			ICMP_REDIRECT),
 		SYMBOL("echo-request",			ICMP_ECHO),
+		SYMBOL("router-advertisement",		ICMP_ROUTERADVERT),
+		SYMBOL("router-solicitation",		ICMP_ROUTERSOLICIT),
 		SYMBOL("time-exceeded",			ICMP_TIME_EXCEEDED),
 		SYMBOL("parameter-problem",		ICMP_PARAMETERPROB),
 		SYMBOL("timestamp-request",		ICMP_TIMESTAMP),
Signature · 1 line
2.7.0
maintainer Applied
#1 lore raw
Quoted 5 lines · Laura Garcia Liebana

Enable support for router-advertisement and router-solicitation icmp types in nft.

Example:

$ sudo nft add rule ip filter input icmp type router-advertisement counter accept
$ sudo nft add rule ip filter input icmp type router-solicitation counter accept

Applied, thanks Laura.