Home
last modified time | relevance | path

Searched refs:need_mac (Results 1 – 2 of 2) sorted by relevance

/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/
Dlwt_redirect.c62 #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 …]
Dlwt_helpers.h40 static int open_tuntap(const char *dev_name, bool need_mac) in open_tuntap() argument
49 ifr.ifr_flags = IFF_NO_PI | (need_mac ? IFF_TAP : IFF_TUN); in open_tuntap()