aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pcap-linux.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/pcap-linux.c b/pcap-linux.c
index 5d63e849..8561c97e 100644
--- a/pcap-linux.c
+++ b/pcap-linux.c
@@ -3016,7 +3016,8 @@ activate_new(pcap_t *handle)
int err = 0;
struct packet_mreq mr;
#ifdef SO_BPF_EXTENSIONS
- int bpf_extensions, len;
+ int bpf_extensions;
+ socklen_t len;
#endif
/*
@@ -3355,7 +3356,7 @@ activate_new(pcap_t *handle)
* by the OS? Is that possible?)
*/
if (getsockopt(sock_fd, SOL_SOCKET, SO_BPF_EXTENSIONS,
- &bpf_extensions, &len == 0) {
+ &bpf_extensions, &len) == 0) {
if (bpf_extensions >= SKF_AD_VLAN_TAG_PRESENT) {
/*
* Yes, we can. Request that we do so.