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/patch-send_packet_bsd.c | |
| 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/patch-send_packet_bsd.c')
| -rw-r--r-- | net/p5-Net-ARP/files/patch-send_packet_bsd.c | 17 |
1 files changed, 17 insertions, 0 deletions
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); |
