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 /socket.c | |
| parent | a1613b91fd34b5cb904a3f8b278c7b9b2fff2f87 (diff) | |
| download | dhcpcd-343c1ae64197ffe81aed083514b930c65af7931a.tar.xz | |
Prettify code a little.
Diffstat (limited to 'socket.c')
| -rw-r--r-- | socket.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -116,10 +116,10 @@ open_socket(struct interface *iface, int protocol) memset(&pf, 0, sizeof(pf)); if (protocol == ETHERTYPE_ARP) { pf.filter = arp_bpf_filter; - pf.len = sizeof(arp_bpf_filter) / sizeof(arp_bpf_filter[0]); + pf.len = arp_bpf_filter_len; } else { pf.filter = dhcp_bpf_filter; - pf.len = sizeof(dhcp_bpf_filter) / sizeof(dhcp_bpf_filter[0]); + pf.len = dhcp_bpf_filter_len; } if (setsockopt(s, SOL_SOCKET, SO_ATTACH_FILTER, &pf, sizeof(pf)) != 0) goto eexit; |
