Searched refs:need_mac (Results 1 – 2 of 2) sorted by relevance
62 #define INGRESS_SEC(need_mac) ((need_mac) ? "redir_ingress" : "redir_ingress_nomac") argument63 #define EGRESS_SEC(need_mac) ((need_mac) ? "redir_egress" : "redir_egress_nomac") argument160 const char *target_dev, bool need_mac) in send_and_capture_test_packets() argument169 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() argument198 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() local233 tap_fd = setup_redirect_target(target_dev, need_mac); in test_lwt_redirect_normal()[all …]
40 static int open_tuntap(const char *dev_name, bool need_mac) in open_tuntap() argument49 ifr.ifr_flags = IFF_NO_PI | (need_mac ? IFF_TAP : IFF_TUN); in open_tuntap()