diff options
| author | Roy Marples <roy@marples.name> | 2008-05-22 18:16:22 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2008-05-22 18:16:22 +0000 |
| commit | 29cdf2857e12686d5f0d6991bf88706a03bd3b1d (patch) | |
| tree | 1f88dd1b9b2067378f5d60d14cac5b6be07a7454 /bpf.c | |
| parent | 90479007bdd4af214664b3e2acfd0a7660a98cd8 (diff) | |
| download | dhcpcd-29cdf2857e12686d5f0d6991bf88706a03bd3b1d.tar.xz | |
Put my code at the top and UNCONST filters in bpf.c
Diffstat (limited to 'bpf.c')
| -rw-r--r-- | bpf.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |
