aboutsummaryrefslogtreecommitdiff
path: root/pcap-linux.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2015-09-02 15:06:40 -0700
committerGuy Harris <guy@alum.mit.edu>2015-09-02 15:06:53 -0700
commit627cdd22530ca362af911bfcbc4c01a64e6321a9 (patch)
tree72e6a1a2ab560e775b39a29e71b1e581206bf3e4 /pcap-linux.c
parentec4c8ee3f7afaa251fe05d82bb4294c14fad8446 (diff)
Fix some compile errors.
Diffstat (limited to 'pcap-linux.c')
-rw-r--r--pcap-linux.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/pcap-linux.c b/pcap-linux.c
index d5735699..8369d6aa 100644
--- a/pcap-linux.c
+++ b/pcap-linux.c
@@ -666,9 +666,14 @@ nl80211_cleanup(struct nl80211_state *state)
}
static int
+del_mon_if(pcap_t *handle, int sock_fd, struct nl80211_state *state,
+ const char *device, const char *mondevice);
+
+static int
add_mon_if(pcap_t *handle, int sock_fd, struct nl80211_state *state,
const char *device, const char *mondevice)
{
+ struct pcap_linux *handlep = handle->priv;
int ifindex;
struct nl_msg *msg;
int err;
@@ -762,7 +767,7 @@ add_mon_if(pcap_t *handle, int sock_fd, struct nl80211_state *state,
/*
* Get rid of the monitor device.
*/
- del_mon_if(handle, sock_fd, state, device, >mondevice);
+ del_mon_if(handle, sock_fd, state, device, handlep->mondevice);
return PCAP_ERROR;
}
return 1;