arp-util: shorten BPF code a bit
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 19 Oct 2021 11:05:11 +0000 (20:05 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 21 Oct 2021 13:39:25 +0000 (22:39 +0900)
commite2c7c38b74bd1b2899fd482e78da88a0e0c34e46
tree4179146c28bba71e231d04b6c58b8bee7d5eb1f1
parent21f2b19cc234c4539ffcac2886f9c8cf0d34ca24
arp-util: shorten BPF code a bit

- replace `A = k` and `X = A` with `X = k`,
- replace `A ^= X` and `A == 0` with `A == X`.
- use UINT32_MAX when accept a packet
src/libsystemd-network/arp-util.c
src/libsystemd-network/arp-util.h