Skip to content

Commit 002180a

Browse files
committed
examples: update netfilter_blocklist for newer vmlinux.h
Signed-off-by: Ihor Solodrai <[email protected]>
1 parent 8d916ce commit 002180a

File tree

3 files changed

+16
-17
lines changed

3 files changed

+16
-17
lines changed

Cargo.lock

Lines changed: 15 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/netfilter_blocklist/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ license = "LGPL-2.1-only OR BSD-2-Clause"
66

77
[build-dependencies]
88
libbpf-cargo = { path = "../../libbpf-cargo" }
9-
vmlinux = { git = "https://github.com/libbpf/vmlinux.h.git", rev = "83a228cf37fc65f2d14e4896a04922b5ee531a94" }
9+
vmlinux = { git = "https://github.com/libbpf/vmlinux.h.git", rev = "8f91e9fd5b488ff57074e589e3960940f3387830" }
1010

1111
[[bin]]
1212
name = "netfilter_blocklist"

examples/netfilter_blocklist/src/bpf/netfilter_blocklist.bpf.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,6 @@
55
#define NF_DROP 0
66
#define NF_ACCEPT 1
77

8-
int bpf_dynptr_from_skb(struct sk_buff *skb,
9-
__u64 flags, struct bpf_dynptr *ptr__uninit) __ksym;
10-
void *bpf_dynptr_slice(const struct bpf_dynptr *ptr,
11-
uint32_t offset, void *buffer, uint32_t buffer__sz) __ksym;
12-
13-
148
struct lpm_key {
159
__u32 prefixlen;
1610
__be32 addr;

0 commit comments

Comments
 (0)