From 952059fc692eab955bdd16563221525a9e1ab2a4 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Mon, 7 May 2018 10:52:16 +0000 Subject: [PATCH] xlat: provide fallback definitions for SKF_*_OFF constants * xlat/skf_off.in: New file. * bpf_sock_filter.c: Include "xlat/skf_off.h". --- bpf_sock_filter.c | 1 + xlat/skf_off.in | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 xlat/skf_off.in diff --git a/bpf_sock_filter.c b/bpf_sock_filter.c index 599141e2..f4c77f31 100644 --- a/bpf_sock_filter.c +++ b/bpf_sock_filter.c @@ -33,6 +33,7 @@ #include #include "xlat/skf_ad.h" +#include "xlat/skf_off.h" static bool print_sock_filter_k(const struct bpf_filter_block *const fp) diff --git a/xlat/skf_off.in b/xlat/skf_off.in new file mode 100644 index 00000000..6db30a9a --- /dev/null +++ b/xlat/skf_off.in @@ -0,0 +1,4 @@ +SKF_AD_OFF -0x1000 +SKF_NET_OFF -0x100000 +SKF_LL_OFF -0x200000 +#stop -- 2.40.0