diff options
| author | Yen-Ming Lee <leeym@FreeBSD.org> | 2009-05-05 00:00:28 +0000 |
|---|---|---|
| committer | Yen-Ming Lee <leeym@FreeBSD.org> | 2009-05-05 00:00:28 +0000 |
| commit | ac711d0446e19109f37e02ad1c91c784bd236afe (patch) | |
| tree | 09e15aa8cc8170ac3fe41a73bf2d266f564fc8aa /net/p5-Net-ARP/files | |
| parent | - Fix all MASTER_SITES entries. Now it will compile without problems (diff) | |
- update to 1.0.4
Diffstat (limited to 'net/p5-Net-ARP/files')
| -rw-r--r-- | net/p5-Net-ARP/files/patch-ARP.xs | 10 | ||||
| -rw-r--r-- | net/p5-Net-ARP/files/patch-send_packet_bsd.c | 17 |
2 files changed, 27 insertions, 0 deletions
diff --git a/net/p5-Net-ARP/files/patch-ARP.xs b/net/p5-Net-ARP/files/patch-ARP.xs new file mode 100644 index 000000000000..38100d6a5c9d --- /dev/null +++ b/net/p5-Net-ARP/files/patch-ARP.xs @@ -0,0 +1,10 @@ +--- ARP.xs.orig 2009-05-04 16:08:52.000000000 -0700 ++++ ARP.xs 2009-05-04 16:08:58.000000000 -0700 +@@ -27,7 +27,6 @@ + #include <string.h> + #include <errno.h> + #include <net/ethernet.h> +-#include <netinet/ether.h> + #include <net/if.h> + #include <arpa/inet.h> + #include "arp.h" diff --git a/net/p5-Net-ARP/files/patch-send_packet_bsd.c b/net/p5-Net-ARP/files/patch-send_packet_bsd.c new file mode 100644 index 000000000000..88313c1a1624 --- /dev/null +++ b/net/p5-Net-ARP/files/patch-send_packet_bsd.c @@ -0,0 +1,17 @@ +--- send_packet_bsd.c.orig 2009-05-04 16:27:55.000000000 -0700 ++++ send_packet_bsd.c 2009-05-04 16:28:43.000000000 -0700 +@@ -56,7 +56,13 @@ + flock(bpffd,LOCK_EX); + + // Bind it to a device +- ioctl(bpffd,BIOCSETIF,dev); ++ if (ioctl(bpffd,BIOCSETIF,dev) == -1) ++ { ++ flock(bpffd,LOCK_UN); ++ close(bpffd); ++ perror("open bpf"); ++ return 0; ++ } + + // Send the packet and unlock + write(bpffd,packet,packetsize); |
