Lines Matching refs:namespace
72 char local_veth[VETH_NAME_MAX_LEN]; /* Interface in main namespace */
73 char remote_veth[VETH_NAME_MAX_LEN]; /* Peer interface in dedicated namespace*/
74 char namespace[NS_NAME_MAX_LEN]; /* Namespace for the remote veth */
92 .namespace = "ns-veth11-"
99 .namespace = "ns-veth22-"
106 .namespace = "ns-veth33-"
151 nstoken = open_netns(net_config->veth_cfg[index].namespace);
152 if (!ASSERT_OK_PTR(nstoken, "switch to remote veth namespace"))
186 err = append_tid(net_config->veth_cfg[i].namespace, NS_NAME_MAX_LEN);
189 SYS(fail, "ip netns add %s", net_config->veth_cfg[i].namespace);
200 net_config->veth_cfg[i].namespace);
204 net_config->veth_cfg[i].namespace,
207 SYS(fail, "ip -n %s link set dev %s up", net_config->veth_cfg[i].namespace,
225 SYS_NOFAIL("ip netns del %s", net_config->veth_cfg[i].namespace);
308 net_config.veth_cfg[0].namespace, IP_DST), "ping");
400 net_config.veth_cfg[i].namespace, IP_NEIGH, net_config.veth_cfg[i].remote_veth);
410 net_config.veth_cfg[0].namespace, IP_NEIGH);
509 net_config.veth_cfg[i].namespace, IP_NEIGH, net_config.veth_cfg[i].remote_veth);
526 net_config.veth_cfg[0].namespace, IP_NEIGH);