hping/hping-fix-netbpf-header.patch

25 lines
724 B
Diff
Raw Permalink Normal View History

2020-05-14 23:55:11 +08:00
diff -urN hping-master/libpcap_stuff.c hping-master-bak/libpcap_stuff.c
--- hping-master/libpcap_stuff.c 2014-12-26 22:31:29.000000000 +0800
+++ hping-master-bak/libpcap_stuff.c 2020-05-03 18:20:40.272372230 +0800
@@ -16,7 +16,7 @@
#include <string.h>
#include <stdlib.h>
#include <sys/ioctl.h>
-#include <net/bpf.h>
+#include <pcap-bpf.h>
#include <pcap.h>
#include "globals.h"
diff -urN hping-master/script.c hping-master-bak/script.c
--- hping-master/script.c 2014-12-26 22:31:29.000000000 +0800
+++ hping-master-bak/script.c 2020-05-03 18:20:53.661239114 +0800
@@ -23,7 +23,7 @@
#include <sched.h>
#include <sys/ioctl.h>
-#include <net/bpf.h>
+#include <pcap-bpf.h>
#include <pcap.h>
#include "release.h"