summaryrefslogtreecommitdiffstats
path: root/bpf.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-05-22 18:16:22 +0000
committerRoy Marples <roy@marples.name>2008-05-22 18:16:22 +0000
commit29cdf2857e12686d5f0d6991bf88706a03bd3b1d (patch)
tree1f88dd1b9b2067378f5d60d14cac5b6be07a7454 /bpf.c
parent90479007bdd4af214664b3e2acfd0a7660a98cd8 (diff)
downloaddhcpcd-29cdf2857e12686d5f0d6991bf88706a03bd3b1d.tar.xz
Put my code at the top and UNCONST filters in bpf.c
Diffstat (limited to 'bpf.c')
-rw-r--r--bpf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bpf.c b/bpf.c
index f22a6d11..37a92f3d 100644
--- a/bpf.c
+++ b/bpf.c
@@ -107,10 +107,10 @@ open_socket(struct interface *iface, int protocol)
/* Install the DHCP filter */
if (protocol == ETHERTYPE_ARP) {
- pf.bf_insns = arp_bpf_filter;
+ pf.bf_insns = UNCONST(arp_bpf_filter);
pf.bf_len = arp_bpf_filter_len;
} else {
- pf.bf_insns = dhcp_bpf_filter;
+ pf.bf_insns = UNCONST(dhcp_bpf_filter);
pf.bf_len = dhcp_bpf_filter_len;
}
if (ioctl(fd, BIOCSETF, &pf) == -1)