We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
when I add bpf_trace_printk in example below, it compiles fine, when run the program, it result in error below:
[root@centos-dev basic_firewall]# ./main -drop 10.169.72.0/24 -iface ens192 LoadElf() failed: loadPrograms() failed: map '' doesn't exist
the diff
diff --git a/examples/xdp/basic_firewall/ebpf_prog/xdp_fw.c b/examples/xdp/basic_firewall/ebpf_prog/xdp_fw.c index 6d399fb..b9aa66c 100644 --- a/examples/xdp/basic_firewall/ebpf_prog/xdp_fw.c b/examples/xdp/basic_firewall/ebpf_prog/xdp_fw.c @@ -80,6 80,8 @@ int firewall(struct xdp_md *ctx) { key.prefixlen = 32; key.saddr = ip->saddr; bpf_trace_printk("Matched with protocol %d and sAddr %lu.\n", ip->protocol, ip->saddr); // Lookup SRC IP in blacklisted IPs __u64 *rule_idx = bpf_map_lookup_elem(&blacklist, &key); if (rule_idx) {
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi,
when I add bpf_trace_printk in example below, it compiles fine, when run the program, it result in error below:
[root@centos-dev basic_firewall]# ./main -drop 10.169.72.0/24 -iface ens192
LoadElf() failed: loadPrograms() failed: map '' doesn't exist
the diff
The text was updated successfully, but these errors were encountered: