ports/net/ngrep/patches/patch-ngrep_c

22 lines
414 B
Text

Index: ngrep.c
--- ngrep.c.orig
+++ ngrep.c
@@ -16,6 +16,7 @@
#include <arpa/inet.h>
#include <sys/tty.h>
#include <pwd.h>
+#include <stdint.h>
#endif
#if defined(OSF1)
@@ -494,6 +495,10 @@ int setup_pcap_source(void) {
case DLT_PPP:
link_offset = PPPHDR_SIZE;
+ break;
+
+ case DLT_PPP_ETHER:
+ link_offset = 8;
break;
#if HAVE_DLT_LOOP