netns_obj
struct netns_obj *netns = NULL;
struct netns_obj *ns;
static struct netns_obj *prepare_netns(struct test_btf_skc_cls_ingress *skel)
struct netns_obj *ns = NULL;
struct netns_obj *ns;
struct netns_obj *ns;
struct netns_obj *ns;
struct netns_obj *netns = NULL;
struct netns_obj *netns = NULL;
struct netns_obj *netns;
struct netns_obj *netns;
struct netns_obj *ns;
struct netns_obj *netns;
struct netns_obj *ns;
struct netns_obj **ns_obj = netns_objs;
static struct netns_obj *netns_objs[3];
struct netns_obj **ns_obj = netns_objs;
static struct netns_obj *test_netns;
struct netns_obj *rx_ns = NULL, *tx_ns = NULL;
struct netns_obj *ns = NULL;
struct netns_obj *ns = NULL;
struct netns_obj *ns[NS_NB];
struct netns_obj *ns = NULL;
struct netns_obj *netns_new(const char *nsname, bool open)
struct netns_obj *netns_obj = malloc(sizeof(*netns_obj));
if (!netns_obj)
memset(netns_obj, 0, sizeof(*netns_obj));
netns_obj->nsname = strdup(nsname);
if (!netns_obj->nsname)
netns_obj->tmon = traffic_monitor_start(nsname, test_name, subtest_name);
if (!netns_obj->tmon) {
netns_obj->tmon = NULL;
netns_obj->nstoken = open_netns(nsname);
if (!netns_obj->nstoken)
return netns_obj;
traffic_monitor_stop(netns_obj->tmon);
free(netns_obj->nsname);
free(netns_obj);
void netns_free(struct netns_obj *netns_obj)
if (!netns_obj)
traffic_monitor_stop(netns_obj->tmon);
close_netns(netns_obj->nstoken);
remove_netns(netns_obj->nsname);
free(netns_obj->nsname);
free(netns_obj);
struct netns_obj;
struct netns_obj *netns_new(const char *name, bool open);
void netns_free(struct netns_obj *netns);