diff options
author | Anton Ivanov <anton.ivanov@cambridgegreys.com> | 2018-03-05 16:29:05 +0300 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2018-03-29 23:18:02 +0300 |
commit | e40238dedb484c8a19f8257e4ef5d77d038f9ad8 (patch) | |
tree | 8bef9aea1db074cf8406f0c6da1d627da35e9449 /arch/um/drivers/vector_kern.h | |
parent | ce471fdbc6173eed5af52df3dca179a509f483d9 (diff) | |
download | linux-e40238dedb484c8a19f8257e4ef5d77d038f9ad8.tar.xz |
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_kern.h')
-rw-r--r-- | arch/um/drivers/vector_kern.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/um/drivers/vector_kern.h b/arch/um/drivers/vector_kern.h index 699696deb396..0b0a767b9076 100644 --- a/arch/um/drivers/vector_kern.h +++ b/arch/um/drivers/vector_kern.h @@ -28,6 +28,7 @@ #define VECTOR_RX 1 #define VECTOR_TX (1 << 1) #define VECTOR_BPF (1 << 2) +#define VECTOR_QDISC_BYPASS (1 << 3) #define ETH_MAX_PACKET 1500 #define ETH_HEADER_OTHER 32 /* just in case someone decides to go mad on QnQ */ |