summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJustin Iurman <justin.iurman@6wind.com>2026-03-24 10:14:33 +0100
committerJakub Kicinski <kuba@kernel.org>2026-03-26 18:45:29 -0700
commit78723a62b969af404fde2468bb9782519d5f8ba7 (patch)
treebab596b34eb454d82fb3155fe55b76ba4e0d9846 /include
parented8edcd47529d9ad6558ca2c00dccf21fc0abc08 (diff)
seg6: add per-route tunnel source address
Add SEG6_IPTUNNEL_SRC in the uapi for users to configure a specific tunnel source address. Make seg6_iptunnel handle the new attribute correctly. It has priority over the configured per-netns tunnel source address, if any. Cc: David Ahern <dsahern@kernel.org> Signed-off-by: Justin Iurman <justin.iurman@6wind.com> Reviewed-by: Andrea Mayer <andrea.mayer@uniroma2.it> Link: https://patch.msgid.link/20260324091434.359341-2-justin.iurman@6wind.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include')
-rw-r--r--include/uapi/linux/seg6_iptunnel.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/seg6_iptunnel.h b/include/uapi/linux/seg6_iptunnel.h
index ae78791372b8..485889b19900 100644
--- a/include/uapi/linux/seg6_iptunnel.h
+++ b/include/uapi/linux/seg6_iptunnel.h
@@ -20,6 +20,7 @@
enum {
SEG6_IPTUNNEL_UNSPEC,
SEG6_IPTUNNEL_SRH,
+ SEG6_IPTUNNEL_SRC, /* struct in6_addr */
__SEG6_IPTUNNEL_MAX,
};
#define SEG6_IPTUNNEL_MAX (__SEG6_IPTUNNEL_MAX - 1)