-Change Observer::Observer to take arg char *interface

o remove interface arg from startCapture()


git-svn-id: file:///Users/braun/svn/vermont/trunk/vermont@78 aef3b71b-58ee-0310-9ba9-8811b9f0742f
master
freequaos 2005-04-11 15:11:10 +00:00
parent aa1722ddbc
commit f4ad59fa45
1 changed files with 4 additions and 4 deletions

View File

@ -31,7 +31,7 @@ class Observer
{
public:
// ObserverThread constructor
Observer() : thread(Observer::observerThread), exitFlag(false), capturelen(CAPTURE_LENGTH)
Observer(char *interface) : thread(Observer::observerThread), exitFlag(false), capturelen(CAPTURE_LENGTH)
{
// query all available capture devices
LOG("Observer: Finding devices\n");
@ -45,7 +45,8 @@ public:
LOG(" Name=%s, DESC=%s\n", dev->name, dev->description);
}
LOG("Observer: Setting pcap snaplen to %d\n", capturelen);
LOG("Observer: Setting default pcap snaplen to %d\n", capturelen);
captureInterface=interface;
};
@ -59,9 +60,8 @@ public:
pcap_freealldevs(allDevices);
};
void startCapture(char *ifdesc)
void startCapture()
{
captureInterface = ifdesc;
thread.run(this);
};