diff options
| author | Roy Marples <roy@marples.name> | 2008-05-14 12:19:05 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2008-05-14 12:19:05 +0000 |
| commit | 343c1ae64197ffe81aed083514b930c65af7931a (patch) | |
| tree | e160a12727bbfa8e29d04d9f7bef1314dbc7d69d /bpf-filter.h | |
| parent | a1613b91fd34b5cb904a3f8b278c7b9b2fff2f87 (diff) | |
| download | dhcpcd-343c1ae64197ffe81aed083514b930c65af7931a.tar.xz | |
Prettify code a little.
Diffstat (limited to 'bpf-filter.h')
| -rw-r--r-- | bpf-filter.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bpf-filter.h b/bpf-filter.h index 17ba8453..59118039 100644 --- a/bpf-filter.h +++ b/bpf-filter.h @@ -52,6 +52,9 @@ static struct bpf_insn dhcp_bpf_filter [] = { /* Otherwise, drop it. */ BPF_STMT (BPF_RET + BPF_K, 0), }; +static const size_t dhcp_bpf_filter_len = + sizeof(dhcp_bpf_filter) / sizeof(dhcp_bpf_filter[0]); + /* This, however, is mine */ static struct bpf_insn arp_bpf_filter [] = { @@ -69,3 +72,5 @@ static struct bpf_insn arp_bpf_filter [] = { /* Otherwise, drop it. */ BPF_STMT (BPF_RET + BPF_K, 0), }; +static const size_t arp_bpf_filter_len = + sizeof(arp_bpf_filter) / sizeof(arp_bpf_filter[0]); |
