Cleanup: detecting the link type is done automatically per handle
This commit is contained in:
12
main.cpp
12
main.cpp
@@ -138,7 +138,6 @@ int main (int argc, char** argv)
|
||||
process_init();
|
||||
|
||||
device * devices = NULL;
|
||||
//dp_link_type linktype = dp_link_ethernet;
|
||||
int promisc = 0;
|
||||
|
||||
int opt;
|
||||
@@ -172,16 +171,6 @@ int main (int argc, char** argv)
|
||||
case 'c':
|
||||
refreshlimit = atoi(optarg);
|
||||
break;
|
||||
/*
|
||||
case 'f':
|
||||
argv++;
|
||||
if (strcmp (optarg, "ppp") == 0)
|
||||
linktype = dp_link_ppp;
|
||||
else if (strcmp (optarg, "eth") == 0)
|
||||
linktype = dp_link_ethernet;
|
||||
}
|
||||
break;
|
||||
*/
|
||||
default:
|
||||
help(true);
|
||||
exit(EXIT_FAILURE);
|
||||
@@ -332,4 +321,3 @@ int main (int argc, char** argv)
|
||||
//clean up
|
||||
clean_up();
|
||||
}
|
||||
|
||||
|
||||
@@ -60,8 +60,6 @@ bool bughuntmode = false;
|
||||
bool sortRecv = true;
|
||||
// viewMode: kb/s or total
|
||||
int viewMode = VIEWMODE_KBPS;
|
||||
//packet_type packettype = packet_ethernet;
|
||||
//dp_link_type linktype = dp_link_ethernet;
|
||||
const char version[] = " version " VERSION "." SUBVERSION "." MINORVERSION;
|
||||
|
||||
timeval curtime;
|
||||
@@ -235,4 +233,3 @@ public:
|
||||
const char * devicename;
|
||||
handle * next;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user