D | flow_dissector_reattach.c | 21 static __u32 query_attached_prog_id(int netns) in query_attached_prog_id() argument 27 err = bpf_prog_query(netns, BPF_FLOW_DISSECTOR, 0, NULL, in query_attached_prog_id() 37 static bool prog_is_attached(int netns) in prog_is_attached() argument 39 return query_attached_prog_id(netns) > 0; in prog_is_attached() 90 static void test_prog_attach_prog_attach(int netns, int prog1, int prog2) in test_prog_attach_prog_attach() argument 99 CHECK_FAIL(query_attached_prog_id(netns) != query_prog_id(prog1)); in test_prog_attach_prog_attach() 107 CHECK_FAIL(query_attached_prog_id(netns) != query_prog_id(prog2)); in test_prog_attach_prog_attach() 113 CHECK_FAIL(query_attached_prog_id(netns) != query_prog_id(prog2)); in test_prog_attach_prog_attach() 119 CHECK_FAIL(prog_is_attached(netns)); in test_prog_attach_prog_attach() 122 static void test_link_create_link_create(int netns, int prog1, int prog2) in test_link_create_link_create() argument [all …]
|