Searched refs:need_mac (Results 1 - 2 of 2) sorted by relevance
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | lwt_redirect.c | 63 #define INGRESS_SEC(need_mac) ((need_mac) ? "redir_ingress" : "redir_ingress_nomac") 64 #define EGRESS_SEC(need_mac) ((need_mac) ? "redir_egress" : "redir_egress_nomac") 161 const char *target_dev, bool need_mac) 170 filter_t filter = need_mac ? expect_icmp : expect_icmp_nomac; 194 static int setup_redirect_target(const char *target_dev, bool need_mac) argument 199 tap_fd = open_tuntap(target_dev, need_mac); 215 CIDR_TO_INGRESS, BPF_OBJECT, INGRESS_SEC(need_mac)); 218 CIDR_TO_EGRESS, BPF_OBJECT, EGRESS_SEC(need_mac)); 160 send_and_capture_test_packets(const char *test_name, int tap_fd, const char *target_dev, bool need_mac) argument 232 bool need_mac = true; local 246 bool need_mac = false; local 259 __test_lwt_redirect_dev_down(bool need_mac) argument [all...] |
H A D | lwt_helpers.h | 40 static int open_tuntap(const char *dev_name, bool need_mac) argument 49 ifr.ifr_flags = IFF_NO_PI | (need_mac ? IFF_TAP : IFF_TUN);
|
Completed in 123 milliseconds