Logo
Explore Help
Sign In
mirror/xdp-project-bpf-examples
1
0
Fork 0
You've already forked xdp-project-bpf-examples
mirror of https://github.com/xdp-project/bpf-examples.git synced 2024-05-06 15:54:53 +00:00
Code Issues Projects Releases Wiki Activity
Files
master
xdp-project-bpf-examples/headers/vmlinux/vmlinux_common.h

34 lines
467 B
C
Raw Permalink Normal View History

headers/vmlinux: Add header files to shadow vmlinux.h Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
2021-06-01 15:50:39 +02:00
#ifndef __VMLINUX_COMMON_H__
#define __VMLINUX_COMMON_H__
Add xdp-synproxy to bpf-examples this code is from kernel bpf selftests xdp synproxy, removed the tc part for simplicity, shows an exmaple of using libxdp to attach xdp synproxy program on network interface. if port is not in allowed ports, the packet will be dropped by xdp synproxy by default, this would break tcp connections to ports that user does not want to do synproxy, change the default to allow connection pass through. Signed-off-by: Vincent Li <vincent.mc.li@gmail.com>
2023-10-04 16:15:00 +00:00
enum {
false = 0,
true = 1,
};
typedef _Bool bool;
headers/vmlinux: Add header files to shadow vmlinux.h Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
2021-06-01 15:50:39 +02:00
struct list_head {
struct list_head *next;
struct list_head *prev;
};
struct rb_node {
long unsigned int __rb_parent_color;
struct rb_node *rb_right;
struct rb_node *rb_left;
};
typedef struct {
int counter;
} atomic_t;
struct refcount_struct {
atomic_t refs;
};
typedef struct refcount_struct refcount_t;
#endif /* __VMLINUX_COMMON_H__ */
Reference in New Issue Copy Permalink
Powered by Gitea Page: 82ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API