search for: if_tunnel

Displaying 2 results from an estimated 2 matches for "if_tunnel".

Did you mean: fl_tunnel
2018 Sep 25
2
bpf compilation using clang
...<stddef.h> #include <stdbool.h> #include <sys/types.h> #include <sys/socket.h> #include <asm/types.h> #include <linux/in.h> #include <linux/if.h> #include <linux/if_ether.h> #include <linux/ip.h> #include <linux/ipv6.h> #include <linux/if_tunnel.h> #include <linux/filter.h> #include <linux/bpf.h> #include "tap_rss.h" #include "bpf_api.h" #include "rss_bpf_api.h" /** Create IPv4 address */ #define IPv4(a, b, c, d) ((__u32)(((a) & 0xff) << 24) | \ (((b) & 0xff) <...
2018 Sep 13
4
bpf compilation using clang
Hi all, I am trying to insert instructions into the bpf using the bpf syscall, the instructions were generated using the following command line: clang -I ~/Builds/bpf_rss/iproute2/include -Wall -target bpf -O2 -emit-llvm -c upstream/qemu/hw/net/rss_tap_bpf_program.c -o - | llc -march=bpf -filetype=obj -o tap_bpf_program.o and then were translated to bpf instructions using the BPFCparser tool