some 'const' specifications, putting the code to determine the default device

in its own file
This commit is contained in:
Arnout Engelen
2011-07-12 21:53:54 +00:00
parent a50b249438
commit ff8151fe96
9 changed files with 37 additions and 24 deletions

View File

@@ -55,7 +55,7 @@ struct dp_handle * dp_open_offline(char * fname, char * ebuf)
return dp_fillhandle(temp);
}
struct dp_handle * dp_open_live(char * device, int snaplen, int promisc, int to_ms, char * ebuf)
struct dp_handle * dp_open_live(const char * device, int snaplen, int promisc, int to_ms, const char * ebuf)
{
pcap_t * temp = pcap_open_live(device, snaplen, promisc, to_ms, ebuf);