Lines Matching refs:mondevice

198 	char	*mondevice;	/* mac80211 monitor device we created */  member
536 const char *device, const char *mondevice);
540 const char *device, const char *mondevice) in add_mon_if() argument
562 NLA_PUT_STRING(msg, NL80211_ATTR_IFNAME, mondevice); in add_mon_if()
585 device, mondevice, nl_geterror(-err)); in add_mon_if()
609 device, mondevice, nl_geterror(-err)); in add_mon_if()
623 handlep->mondevice = strdup(mondevice); in add_mon_if()
624 if (handlep->mondevice == NULL) { in add_mon_if()
630 del_mon_if(handle, sock_fd, state, device, mondevice); in add_mon_if()
638 device, mondevice); in add_mon_if()
645 const char *device, const char *mondevice) in del_mon_if() argument
651 ifindex = iface_get_id(sock_fd, mondevice, handle->errbuf); in del_mon_if()
670 device, mondevice, nl_geterror(-err)); in del_mon_if()
678 device, mondevice, nl_geterror(-err)); in del_mon_if()
692 device, mondevice); in del_mon_if()
808 handlep->device, handlep->mondevice); in pcap_cleanup_linux()
815 handlep->mondevice, handle->errbuf); in pcap_cleanup_linux()
840 if (handlep->mondevice != NULL) { in pcap_cleanup_linux()
841 free(handlep->mondevice); in pcap_cleanup_linux()
842 handlep->mondevice = NULL; in pcap_cleanup_linux()
2440 if (handlep->mondevice != NULL) in setup_socket()
2441 device = handlep->mondevice; in setup_socket()
4829 char mondevice[3+10+1]; /* mon{UINT_MAX}\0 */ in enter_rfmon_mode() local
4831 snprintf(mondevice, sizeof mondevice, "mon%u", n); in enter_rfmon_mode()
4832 ret = add_mon_if(handle, sock_fd, &nlstate, device, mondevice); in enter_rfmon_mode()
4876 handlep->mondevice); in enter_rfmon_mode()
4885 pcapint_strlcpy(ifr.ifr_name, handlep->mondevice, sizeof(ifr.ifr_name)); in enter_rfmon_mode()
4889 handlep->mondevice); in enter_rfmon_mode()
4891 handlep->mondevice); in enter_rfmon_mode()
4899 handlep->mondevice); in enter_rfmon_mode()
4901 handlep->mondevice); in enter_rfmon_mode()