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() argument198 tap_fd = open_tuntap(target_dev, 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()245 bool need_mac = false; in test_lwt_redirect_normal_nomac() local247 tap_fd = setup_redirect_target(target_dev, need_mac); in test_lwt_redirect_normal_nomac()258 static void __test_lwt_redirect_dev_down(bool need_mac) in __test_lwt_redirect_dev_down() argument[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()