diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-11-09 10:33:57 +0900 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-11-09 09:32:09 +0100 |
commit | b01895bf707e76be71687f4983a9f81d190175bf (patch) | |
tree | cda6f03b4eed9d5b2700a015e4629745cf897ff6 | |
parent | e5a7570188780dc46a61a9109b72bb17b13701e2 (diff) | |
download | systemd-b01895bf707e76be71687f4983a9f81d190175bf.tar.gz |
arp-util: drop redundant line
The client's IP address is already loaded to X.
(The comment of the dropped line is wrong, X instead of A.)
-rw-r--r-- | src/libsystemd-network/arp-util.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/libsystemd-network/arp-util.c b/src/libsystemd-network/arp-util.c index 7ef96a6ab8..99a5f69b70 100644 --- a/src/libsystemd-network/arp-util.c +++ b/src/libsystemd-network/arp-util.c @@ -48,7 +48,6 @@ int arp_update_filter(int fd, const struct in_addr *a, const struct ether_addr * BPF_STMT(BPF_LD + BPF_W + BPF_ABS, offsetof(struct ether_arp, arp_spa)), /* A <- SPA */ BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_X, 0, 0, 1), /* A == X ? */ BPF_STMT(BPF_RET + BPF_K, UINT32_MAX), /* accept */ - BPF_STMT(BPF_LDX + BPF_IMM, htobe32(a->s_addr)), /* A <- clients IP */ BPF_STMT(BPF_LD + BPF_W + BPF_ABS, offsetof(struct ether_arp, arp_tpa)), /* A <- TPA */ BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_X, 0, 0, 1), /* A == 0 ? */ BPF_STMT(BPF_RET + BPF_K, UINT32_MAX), /* accept */ |