From: Ahmed Abdelsalam <amsalam20@gmail.com>
To: pablo@netfilter.org, davem@davemloft.net
Cc: fw@strlen.de, netfilter-devel@vger.kernel.org,
coreteam@netfilter.org, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org,
Ahmed Abdelsalam <amsalam20@gmail.com>
Subject: [nf-next 2/3] netfilter: add an option to control iptables SEG6 target support
Date: Fri, 12 Jan 2018 05:39:35 +0100 [thread overview]
Message-ID: <1515731976-6338-2-git-send-email-amsalam20@gmail.com> (raw)
In-Reply-To: <1515731976-6338-1-git-send-email-amsalam20@gmail.com>
This patch adds a new option CONFIG_IP6_NF_TARGET_SEG6 to
enable/disable support of iptables SEG6 target.
Signed-off-by: Ahmed Abdelsalam <amsalam20@gmail.com>
---
net/ipv6/netfilter/Kconfig | 12 ++++++++++++
net/ipv6/netfilter/Makefile | 1 +
2 files changed, 13 insertions(+)
diff --git a/net/ipv6/netfilter/Kconfig b/net/ipv6/netfilter/Kconfig
index 4a634b7..8e98afc 100644
--- a/net/ipv6/netfilter/Kconfig
+++ b/net/ipv6/netfilter/Kconfig
@@ -364,6 +364,18 @@ config IP6_NF_TARGET_NPT
endif # IP6_NF_NAT
+if IPV6_SEG6_LWTUNNEL
+config IP6_NF_TARGET_SEG6
+ tristate 'IPv6 Segment Routing "SEG6" target support'
+ depends on NETFILTER_ADVANCED
+ help
+ SEG6 is an special target for IPv6 Segment Routing encapsualted
+ packets. It supports a set of Segment Routing specific actions
+ that are based on SRH information. It is useful for SRv6 Service
+ Function chaining use-cases.
+
+ To compile it as a module, choose M here. If unsure, say N.
+endif # IPV6_SEG6_LWTUNNEL
endif # IP6_NF_IPTABLES
endmenu
diff --git a/net/ipv6/netfilter/Makefile b/net/ipv6/netfilter/Makefile
index d984057..67eff84 100644
--- a/net/ipv6/netfilter/Makefile
+++ b/net/ipv6/netfilter/Makefile
@@ -64,3 +64,4 @@ obj-$(CONFIG_IP6_NF_TARGET_MASQUERADE) += ip6t_MASQUERADE.o
obj-$(CONFIG_IP6_NF_TARGET_NPT) += ip6t_NPT.o
obj-$(CONFIG_IP6_NF_TARGET_REJECT) += ip6t_REJECT.o
obj-$(CONFIG_IP6_NF_TARGET_SYNPROXY) += ip6t_SYNPROXY.o
+obj-$(CONFIG_IP6_NF_TARGET_SEG6) += ip6t_SEG6.o
--
2.1.4
next prev parent reply other threads:[~2018-01-12 4:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-12 4:39 [nf-next 1/3] netfilter: export SRH processing functions from seg6local Ahmed Abdelsalam
2018-01-12 4:39 ` Ahmed Abdelsalam [this message]
2018-01-12 4:39 ` [nf-next 3/3] netfilter: Add support for IPv6 segment routing 'SEG6' target Ahmed Abdelsalam
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1515731976-6338-2-git-send-email-amsalam20@gmail.com \
--to=amsalam20@gmail.com \
--cc=coreteam@netfilter.org \
--cc=davem@davemloft.net \
--cc=fw@strlen.de \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=netfilter-devel@vger.kernel.org \
--cc=pablo@netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).