File: vmlinux.h

package info (click to toggle)
xdp-tools 1.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 2,360 kB
  • sloc: ansic: 24,678; sh: 2,627; makefile: 422; python: 337; lisp: 53
file content (28 lines) | stat: -rw-r--r-- 454 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef __VMLINUX_H__
#define __VMLINUX_H__

#ifndef BPF_NO_PRESERVE_ACCESS_INDEX
#pragma clang attribute push (__attribute__((preserve_access_index)), apply_to = record)
#endif

struct net_device {
	int ifindex;
};

struct xdp_cpumap_stats {
	unsigned int redirect;
	unsigned int pass;
	unsigned int drop;
};

struct bpf_prog {
};

struct bpf_map {
};

#ifndef BPF_NO_PRESERVE_ACCESS_INDEX
#pragma clang attribute pop
#endif

#endif /* __VMLINUX_H__ */