Lines Matching refs:NETNS_BASE
32 #define NETNS_BASE "lwt-seg6local-" macro
40 SYS_NOFAIL("ip netns del %s%d", NETNS_BASE, ns); in cleanup()
48 SYS(fail, "ip netns add %s%d", NETNS_BASE, ns); in setup()
50 SYS(fail, "ip -n %s6 link set dev lo up", NETNS_BASE); in setup()
58 NETNS_BASE, ns, local_id, peer_id, NETNS_BASE, next_ns); in setup()
60 SYS(fail, "ip -n %s%d link set dev veth%d up", NETNS_BASE, ns, local_id); in setup()
61 SYS(fail, "ip -n %s%d link set dev veth%d up", NETNS_BASE, next_ns, peer_id); in setup()
65 NETNS_BASE, ns, local_id, peer_id, local_id); in setup()
67 NETNS_BASE, next_ns, peer_id, local_id, peer_id); in setup()
71 SYS(fail, "ip -n %s5 -6 route add fb00::109 table 117 dev veth9 scope link", NETNS_BASE); in setup()
73 SYS(fail, "ip -n %s1 -6 addr add fb00::1/16 dev lo", NETNS_BASE); in setup()
74 SYS(fail, "ip -n %s1 -6 route add fb00::6 dev veth1 via fb00::21", NETNS_BASE); in setup()
77 NETNS_BASE, BPF_FILE); in setup()
78 SYS(fail, "ip -n %s2 -6 route add fd00::1 dev veth3 via fb00::43 scope link", NETNS_BASE); in setup()
80 SYS(fail, "ip -n %s3 -6 route add fc42::1 dev veth5 via fb00::65", NETNS_BASE); in setup()
83 NETNS_BASE, BPF_FILE); in setup()
87 NETNS_BASE, BPF_FILE); in setup()
88 SYS(fail, "ip -n %s4 -6 addr add fc42::1 dev lo", NETNS_BASE); in setup()
89 SYS(fail, "ip -n %s4 -6 route add fd00::3 dev veth7 via fb00::87", NETNS_BASE); in setup()
91 SYS(fail, "ip -n %s5 -6 route add fd00::4 table 117 dev veth9 via fb00::109", NETNS_BASE); in setup()
94 NETNS_BASE, BPF_FILE); in setup()
96 SYS(fail, "ip -n %s6 -6 addr add fb00::6/16 dev lo", NETNS_BASE); in setup()
97 SYS(fail, "ip -n %s6 -6 addr add fd00::4/16 dev lo", NETNS_BASE); in setup()
101 NETNS_BASE, ns); in setup()
103 SYS(fail, "ip netns exec %s6 sysctl -wq net.ipv6.conf.all.seg6_enabled=1", NETNS_BASE); in setup()
104 SYS(fail, "ip netns exec %s6 sysctl -wq net.ipv6.conf.lo.seg6_enabled=1", NETNS_BASE); in setup()
105 SYS(fail, "ip netns exec %s6 sysctl -wq net.ipv6.conf.veth10.seg6_enabled=1", NETNS_BASE); in setup()
117 const char *ns1 = NETNS_BASE "1"; in test_lwt_seg6local()
118 const char *ns6 = NETNS_BASE "6"; in test_lwt_seg6local()