18 lines
264 B
C
18 lines
264 B
C
#ifndef BRIDGE_XDP_H
|
|
#define BRIDGE_XDP_H
|
|
|
|
#ifndef XDP_LOADER
|
|
#include <linux/bpf.h>
|
|
#include <bpf/bpf_helpers.h>
|
|
#include <linux/if_ether.h>
|
|
#include <linux/ip.h>
|
|
#include <linux/tcp.h>
|
|
|
|
struct packet_stats {
|
|
__u64 packets;
|
|
__u64 bytes;
|
|
};
|
|
|
|
#endif
|
|
#endif
|