Go to file
Fabian Bläse 8597f49aad tc: Use correct mask for u32 matcher
Previously, the mac address was inserted into both the VALUE
and MASK arguemnt of the u32 matcher. This is of course incorrect,
because then only 1-bits of the mac address are actually matched by
the kernel.

Therefore the correct mask is used instead. The second u32 matcher
only uses a 16 bit mask, because the other 16 bits of the 32-bit field contain
the ethertype.

Fixes: #1

Signed-off-by: Fabian Bläse <fabian@blaese.de>
2021-01-08 17:27:12 +01:00
CMakeLists.txt Revise logging and add tracing support 2018-04-03 19:37:16 +02:00
LICENSE Init 2018-04-02 13:43:51 +02:00
log.h Revise logging and add tracing support 2018-04-03 19:37:16 +02:00
macnockclient.c Use log_trace to log non-running interfaces 2020-04-26 12:19:16 +02:00
macnockclient.h rewrite in C 2018-04-02 18:14:15 +02:00
macnockserver.c server: bind to device, too 2018-04-03 19:37:27 +02:00
macnockserver.h rewrite in C 2018-04-02 18:14:15 +02:00
macstorage.c work around long stop time 2018-04-03 19:37:44 +02:00
macstorage.h rewrite in C 2018-04-02 18:14:15 +02:00
main.c Revise logging and add tracing support 2018-04-03 19:37:16 +02:00
nockpackage.h rewrite in C 2018-04-02 18:14:15 +02:00
tc.c tc: Use correct mask for u32 matcher 2021-01-08 17:27:12 +01:00
tc.h set the prio 2018-04-02 22:11:07 +02:00
tc.txt Init 2018-04-02 13:43:51 +02:00