diff options
author | Max Khon <fjoe@FreeBSD.org> | 2006-11-13 18:40:40 +0000 |
---|---|---|
committer | Max Khon <fjoe@FreeBSD.org> | 2006-11-13 18:40:40 +0000 |
commit | abb3bb636aa39bddcbd630a28b1abac8a40d5dfb (patch) | |
tree | 002519377e5a83b9e644be401e44779c47c46b02 /emulators/dynamips | |
parent | 17baac639a3ca0019a347ded50afe330f6eefe0c (diff) | |
download | ports-abb3bb636aa39bddcbd630a28b1abac8a40d5dfb.tar.gz ports-abb3bb636aa39bddcbd630a28b1abac8a40d5dfb.zip |
Notes
Diffstat (limited to 'emulators/dynamips')
-rw-r--r-- | emulators/dynamips/files/patch-gen_eth.c | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/emulators/dynamips/files/patch-gen_eth.c b/emulators/dynamips/files/patch-gen_eth.c index 20f469d03d59..f27a0f8f709c 100644 --- a/emulators/dynamips/files/patch-gen_eth.c +++ b/emulators/dynamips/files/patch-gen_eth.c @@ -1,11 +1,16 @@ ---- gen_eth.c.orig Wed Oct 18 22:39:46 2006 -+++ gen_eth.c Wed Oct 18 22:39:55 2006 -@@ -46,7 +46,7 @@ - goto pcap_error; +--- gen_eth.c.orig Thu Sep 14 17:59:13 2006 ++++ gen_eth.c Tue Nov 14 00:28:18 2006 +@@ -25,6 +25,13 @@ + #include <netinet/in.h> + #include <arpa/inet.h> + #include <pthread.h> ++#ifdef __FreeBSD__ ++#include <osreldate.h> ++ ++#if __FreeBSD_version < 602100 || __FreeBSD_version < 700021 ++#define PCAP_D_IN D_IN ++#endif ++#endif - /* Accept only incoming packets */ -- pcap_setdirection(p,PCAP_D_IN); -+ pcap_setdirection(p,D_IN); - #else - p = pcap_open(device,2048, - PCAP_OPENFLAG_PROMISCUOUS | + #ifdef CYGWIN + /* Needed for pcap_open() flags */ |