History

selftests/bpf: update test_lwt_seg6local.sh according to iproute2

The shell file for test_lwt_seg6local contains an early iproute2 syntax for installing a seg6local End.BPF route. iproute2 support for this feature has recently been upstreamed, but with an additional keyword required. This patch updates test_lwt_seg6local.sh to the definitive iproute2 syntax

Mathieu Xhonneux committed 8 years ago

Commit 8c85cbd1 parent 2d55d611 file · +3 −3Browse files

Unified · Split

tools/testing/selftests/bpf/test_lwt_seg6local.sh+3−3
@@ -115,14 +115,14 @@ ip netns exec ns2 ip -6 route add fb00::6 encap bpf in obj test_lwt_seg6local.o · 114 unmodified lines
115115 ip netns exec ns2 ip -6 route add fd00::1 dev veth3 via fb00::43 scope link
116116
117117 ip netns exec ns3 ip -6 route add fc42::1 dev veth5 via fb00::65
118−ip netns exec ns3 ip -6 route add fd00::1 encap seg6local action End.BPF obj test_lwt_seg6local.o sec add_egr_x dev veth4
118+ip netns exec ns3 ip -6 route add fd00::1 encap seg6local action End.BPF endpoint obj test_lwt_seg6local.o sec add_egr_x dev veth4
119119
120−ip netns exec ns4 ip -6 route add fd00::2 encap seg6local action End.BPF obj test_lwt_seg6local.o sec pop_egr dev veth6
120+ip netns exec ns4 ip -6 route add fd00::2 encap seg6local action End.BPF endpoint obj test_lwt_seg6local.o sec pop_egr dev veth6
121121 ip netns exec ns4 ip -6 addr add fc42::1 dev lo
122122 ip netns exec ns4 ip -6 route add fd00::3 dev veth7 via fb00::87
123123
124124 ip netns exec ns5 ip -6 route add fd00::4 table 117 dev veth9 via fb00::109
125−ip netns exec ns5 ip -6 route add fd00::3 encap seg6local action End.BPF obj test_lwt_seg6local.o sec inspect_t dev veth8
125+ip netns exec ns5 ip -6 route add fd00::3 encap seg6local action End.BPF endpoint obj test_lwt_seg6local.o sec inspect_t dev veth8
126126
127127 ip netns exec ns6 ip -6 addr add fb00::6/16 dev lo
128128 ip netns exec ns6 ip -6 addr add fd00::4/16 dev lo

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t