]> git.ipfire.org Git - thirdparty/iproute2.git/commit
ip: add support for seg6local End.BPF action
authorMathieu Xhonneux <m.xhonneux@gmail.com>
Tue, 17 Jul 2018 14:49:52 +0000 (14:49 +0000)
committerStephen Hemminger <stephen@networkplumber.org>
Wed, 18 Jul 2018 22:56:18 +0000 (15:56 -0700)
commit04cb3c0d4386c6c50d8cdfb90043e2ac022404ac
treeaa0d57622410f8a9c701702ad538330895b5135e
parent8df708afd62e4c3f7c79108d59f1ffa90123e9be
ip: add support for seg6local End.BPF action

This patch adds support for the End.BPF action of the seg6local
lightweight tunnel. Functions from the BPF lightweight tunnel are
re-used in this patch. Example:

$ ip -6 route add fc00::18 encap seg6local action End.BPF endpoint
obj my_bpf.o sec my_func dev eth0

$ ip -6 route show fc00::18
fc00::18  encap seg6local action End.BPF endpoint my_bpf.o:[my_func]
dev eth0 metric 1024 pref medium

v2: - re-use of print_encap_bpf_prog instead of fprintf
    - introduction of "endpoint" keyword for more consistency with
      others parameters

Signed-off-by: Mathieu Xhonneux <m.xhonneux@gmail.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
ip/iproute_lwtunnel.c
lib/bpf.c