dhcp: shorten BPF code a bit
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 19 Oct 2021 11:28:57 +0000 (20:28 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 21 Oct 2021 13:39:53 +0000 (22:39 +0900)
commitea51deb188e5d986f0039cca424aca075b4423ff
tree6c211a2a8c870459a063291ea526b6a1005e791f
parent155943b25988bcd898722f678015b7197990e23c
dhcp: 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/dhcp-network.c