aboutsummaryrefslogtreecommitdiff
path: root/arch/um/drivers/vector_user.h
diff options
context:
space:
mode:
authorAnton Ivanov2018-03-05 13:29:05 +0000
committerRichard Weinberger2018-03-29 22:18:02 +0200
commite40238dedb484c8a19f8257e4ef5d77d038f9ad8 (patch)
tree8bef9aea1db074cf8406f0c6da1d627da35e9449 /arch/um/drivers/vector_user.h
parentce471fdbc6173eed5af52df3dca179a509f483d9 (diff)
Fix vector raw inintialization logic
Vector RAW in UML needs to BPF filter its own MAC only if QDISC_BYPASS has failed. If QDISC_BYPASS is successful, the frames originated locally are not visible to readers on the raw socket. Signed-off-by: Anton Ivanov <anton.ivanov@cambridgegreys.com> Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/um/drivers/vector_user.h')
-rw-r--r--arch/um/drivers/vector_user.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/um/drivers/vector_user.h b/arch/um/drivers/vector_user.h
index 421092c57bb7..d7cbff73b7ff 100644
--- a/arch/um/drivers/vector_user.h
+++ b/arch/um/drivers/vector_user.h
@@ -92,6 +92,7 @@ extern int uml_vector_recvmmsg(
);
extern void *uml_vector_default_bpf(int fd, void *mac);
extern int uml_vector_attach_bpf(int fd, void *bpf, int bpf_len);
+extern bool uml_raw_enable_qdisc_bypass(int fd);
extern bool uml_raw_enable_vnet_headers(int fd);
extern bool uml_tap_enable_vnet_headers(int fd);