Cleanup: detecting the link type is done automatically per handle

This commit is contained in:
Arnout Engelen
2016-03-20 19:20:51 +01:00
parent 82924a97e1
commit cc675ce776
2 changed files with 14 additions and 29 deletions

View File

@@ -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();
}

View File

@@ -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;
};