blob: 2167b9934c4a1f2f02eaa58ab41147911c7b6292 (
plain) (
tree)
|
|
ELF � P @ @
� a a � -# q q
g O2 �� U q
g q O2 q g O2 q g O2 q g O2 q g ( O {*�� �� ���� � � � � � GPL �� � @ 2 8 G L @ X � \
� b
t { � � @ � ` � � � � � �
� � � � � � int __ARRAY_SIZE_TYPE__ __u64 unsigned long long __u16 unsigned short type max_entries key value mac_blacklist_map xdp_md data data_end data_meta ingress_ifindex rx_queue_index egress_ifindex __u32 unsigned int ctx mac_filter xdp ./bpf.c int mac_filter(struct xdp_md *ctx) void *data_end = (void *)(long)ctx->data_end; struct ethhdr *eth = (void *)(long)ctx->data; if ((void *) (eth + 1) > data_end) if (eth->h_proto != bpf_htons(ETH_P_IP) &&
|