mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-03 01:17:45 +03:00
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.)
This commit is contained in:
parent
e5a7570188
commit
b01895bf70
@ -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_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_JUMP(BPF_JMP + BPF_JEQ + BPF_X, 0, 0, 1), /* A == X ? */
|
||||||
BPF_STMT(BPF_RET + BPF_K, UINT32_MAX), /* accept */
|
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_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_JUMP(BPF_JMP + BPF_JEQ + BPF_X, 0, 0, 1), /* A == 0 ? */
|
||||||
BPF_STMT(BPF_RET + BPF_K, UINT32_MAX), /* accept */
|
BPF_STMT(BPF_RET + BPF_K, UINT32_MAX), /* accept */
|
||||||
|
Loading…
Reference in New Issue
Block a user