fixes
This commit is contained in:
@@ -1,6 +1,11 @@
|
|||||||
Changelog
|
Changelog
|
||||||
|
|
||||||
17/09/04 (Arnou)
|
18/09/04 (Arnout)
|
||||||
|
- also compile with gcc-3.4
|
||||||
|
|
||||||
|
-------------------------------------------------
|
||||||
|
|
||||||
|
17/09/04 (Arnout)
|
||||||
-Wrapped pcap stuff in nicer 'decpcap' module
|
-Wrapped pcap stuff in nicer 'decpcap' module
|
||||||
-Support for IPv6 and PPP
|
-Support for IPv6 and PPP
|
||||||
-using standard C++ maps instead of custom structures
|
-using standard C++ maps instead of custom structures
|
||||||
|
|||||||
2
Makefile
2
Makefile
@@ -1,6 +1,6 @@
|
|||||||
VERSION := 0
|
VERSION := 0
|
||||||
SUBVERSION := 6
|
SUBVERSION := 6
|
||||||
MINORVERSION := pre
|
MINORVERSION := 1pre2
|
||||||
|
|
||||||
bin := $(DESTDIR)/usr/bin
|
bin := $(DESTDIR)/usr/bin
|
||||||
man8 := $(DESTDIR)/usr/share/man/man8/
|
man8 := $(DESTDIR)/usr/share/man/man8/
|
||||||
|
|||||||
@@ -32,13 +32,13 @@ struct dp_handle * dp_open_live(char * device, int snaplen, int promisc, int to_
|
|||||||
|
|
||||||
switch (retval->linktype) {
|
switch (retval->linktype) {
|
||||||
case (DLT_EN10MB):
|
case (DLT_EN10MB):
|
||||||
std::cout << 'Ethernet link detected\n";
|
fprintf(stdout, "Ethernet link detected\n");
|
||||||
break;
|
break;
|
||||||
case (DLT_PPP):
|
case (DLT_PPP):
|
||||||
std::cout << 'PPP link detected\n";
|
fprintf(stdout, "PPP link detected\n");
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
std::cout << 'No PPP or Ethernet link: " << retval->linktype << std::endl;
|
fprintf(stdout, "No PPP or Ethernet link: %d\n", retval->linktype);
|
||||||
// TODO maybe error? or 'other' callback?
|
// TODO maybe error? or 'other' callback?
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user