aboutsummaryrefslogtreecommitdiff
path: root/pcap-linux.c
diff options
context:
space:
mode:
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;