diff options
| author | Roy Marples <roy@marples.name> | 2017-03-11 14:49:21 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2017-03-11 14:49:21 +0000 |
| commit | 6c486f2c9ec2f8213dad9b8fd0bb991b0a8309b5 (patch) | |
| tree | 2e4f81fe28bb3c69511f1c6513f6b84de3ef95ee | |
| parent | 5c22c26610ff3202898c8de1d87a93fdb7856984 (diff) | |
| download | parpd-6c486f2c9ec2f8213dad9b8fd0bb991b0a8309b5.tar.xz | |
Filter out ARP replies, we only want requests.
| -rw-r--r-- | bpf-filter.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/bpf-filter.h b/bpf-filter.h index c92177d..50f9438 100644 --- a/bpf-filter.h +++ b/bpf-filter.h @@ -63,9 +63,6 @@ static const struct bpf_insn arp_bpf_filter [] = { /* Make sure this is an ARP REQUEST. */ BPF_STMT(BPF_LD + BPF_H + BPF_IND, offsetof(struct arphdr, ar_op)), BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_K, ARPOP_REQUEST, 2, 0), - /* or ARP REPLY. */ - BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_K, ARPOP_REPLY, 1, 1), - BPF_STMT(BPF_RET + BPF_K, 0), /* Make sure the protocol length matches. */ BPF_STMT(BPF_LD + BPF_B + BPF_IND, offsetof(struct arphdr, ar_pln)), |
