Permalink
Browse files

Remove wireless support

Older versions of libpcap can't compile with rfmon
  • Loading branch information...
1 parent 7533ad0 commit 4452d85cc51accc443f8a9369476439948dd1d00 @mattsta committed Jun 30, 2011
Showing with 0 additions and 9 deletions.
  1. +0 −8 c_src/epcap.c
  2. +0 −1 c_src/epcap.h
View
@@ -71,9 +71,6 @@ main(int argc, char *argv[])
case 'i':
IS_NULL(ep->dev = strdup(optarg));
break;
- case 'M':
- ep->rfmon = 1;
- break;
case 'P':
ep->promisc = 1;
break;
@@ -154,10 +151,6 @@ epcap_open(EPCAP_STATE *ep)
PCAP_ERRBUF(ep->dev = pcap_lookupdev(errbuf));
PCAP_ERRBUF(ep->p = pcap_open_live(ep->dev, ep->snaplen, ep->promisc, ep->timeout, errbuf));
-
- /* monitor mode */
- if (pcap_can_set_rfmon(ep->p) == 1)
- (void)pcap_set_rfmon(ep->p, ep->rfmon);
}
return (0);
@@ -296,7 +289,6 @@ usage(EPCAP_STATE *ep)
" -d <directory> chroot directory\n"
" -i <interface> interface to snoop\n"
" -f <filename> read from file instead of live capture\n"
- " -M wireless monitor (rfmon) mode\n"
" -P promiscuous mode\n"
" -g <group> unprivileged group\n"
" -u <user> unprivileged user\n"
View
@@ -85,7 +85,6 @@ extern char *__progname;
typedef struct {
pcap_t *p; /* pcap handle */
int promisc; /* promiscuous mode */
- int rfmon; /* monitor mode */
int verbose; /* debugging messages */
int runasuser; /* if setuid, run as the calling user */
size_t snaplen; /* packet capture length */

0 comments on commit 4452d85

Please sign in to comment.