Searched refs:need_mac (Results 1 – 3 of 3) sorted by relevance
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | lwt_redirect.c | 62 #define INGRESS_SEC(need_mac) ((need_mac) ? "redir_ingress" : "redir_ingress_nomac") argument 63 #define EGRESS_SEC(need_mac) ((need_mac) ? "redir_egress" : "redir_egress_nomac") argument 160 const char *target_dev, bool need_mac) in send_and_capture_test_packets() argument 169 filter_t filter = need_mac ? expect_icmp : expect_icmp_nomac; in send_and_capture_test_packets() 193 static int setup_redirect_target(const char *target_dev, bool need_mac) in setup_redirect_target() argument 198 tap_fd = open_tuntap(target_dev, need_mac); in setup_redirect_target() 214 CIDR_TO_INGRESS, BPF_OBJECT, INGRESS_SEC(need_mac)); in setup_redirect_target() 217 CIDR_TO_EGRESS, BPF_OBJECT, EGRESS_SEC(need_mac)); in setup_redirect_target() 231 bool need_mac = true; in test_lwt_redirect_normal() local 233 tap_fd = setup_redirect_target(target_dev, need_mac); in test_lwt_redirect_normal() [all …]
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | network_helpers.h | 90 int open_tuntap(const char *dev_name, bool need_mac);
|
| H A D | network_helpers.c | 574 int open_tuntap(const char *dev_name, bool need_mac) in open_tuntap() argument 583 ifr.ifr_flags = IFF_NO_PI | (need_mac ? IFF_TAP : IFF_TUN); in open_tuntap()
|