aboutsummaryrefslogtreecommitdiff
path: root/net/udpcast/files/patch-socklib.c
diff options
context:
space:
mode:
authorcvs2svn <cvs2svn@FreeBSD.org>2011-02-11 03:06:03 +0000
committercvs2svn <cvs2svn@FreeBSD.org>2011-02-11 03:06:03 +0000
commitb36e665e56175a7588102bec06e2ac62ffff3b5e (patch)
treed8c04c2dd9d515238e6ff20e97948fc22f7f82be /net/udpcast/files/patch-socklib.c
parent9a9990fce5c321d0ddf8afab886e1a0b61cbee55 (diff)
downloadports-release/8.2.0.tar.gz
ports-release/8.2.0.zip
This commit was manufactured by cvs2svn to create tag 'RELEASE_8_2_0'.release/8.2.0
Diffstat (limited to 'net/udpcast/files/patch-socklib.c')
-rw-r--r--net/udpcast/files/patch-socklib.c46
1 files changed, 0 insertions, 46 deletions
diff --git a/net/udpcast/files/patch-socklib.c b/net/udpcast/files/patch-socklib.c
deleted file mode 100644
index 974921257f31..000000000000
--- a/net/udpcast/files/patch-socklib.c
+++ /dev/null
@@ -1,46 +0,0 @@
---- socklib.c.orig 2008-09-18 22:43:15.000000000 +0200
-+++ socklib.c 2009-02-10 10:01:40.000000000 +0100
-@@ -18,6 +18,7 @@
- #endif
-
- #ifdef HAVE_NET_IF_H
-+# include <sys/socket.h>
- # include <net/if.h>
- #endif
-
-@@ -66,6 +67,8 @@
- # define DEBUG 0
- #endif
-
-+#undef SIOCGIFINDEX
-+
- #ifdef LOSSTEST
- /**
- * Packet loss/swap testing...
-@@ -353,7 +356,7 @@
-
- int setTtl(int sock, int ttl) {
- /* set the socket to broadcast */
-- return setsockopt(sock, SOL_IP, IP_MULTICAST_TTL, (char*)&ttl, sizeof(int));
-+ return setsockopt(sock, IPPROTO_IP, IP_MULTICAST_TTL, (char*)&ttl, sizeof(int));
- }
-
- #ifdef HAVE_STRUCT_IP_MREQN_IMR_IFINDEX
-@@ -422,7 +425,7 @@
-
-
- int setMcastDestination(int sock, net_if_t *net_if, struct sockaddr_in *addr) {
--#ifdef WINDOWS
-+#if defined(WINDOWS) || defined(__FreeBSD__)
- int r;
- struct sockaddr_in interface_addr;
- struct in_addr if_addr;
-@@ -720,7 +723,7 @@
-
- net_if->name = strdup(chosen->ifr_name);
-
--#ifdef HAVE_STRUCT_IP_MREQN_IMR_IFINDEX
-+#ifdef HAVE_STRUCT_IP_MREQN_IMR_IFINDEX__TODO
- /* Index for multicast subscriptions */
- if(ioctl(s, SIOCGIFINDEX, chosen) < 0)
- udpc_fatal(-1, "Error getting index for %s: %s", net_if->name,