1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

make buildable on 4-current. now this port supports IPv6.

Reviewed by:	maintainer
This commit is contained in:
Munechika SUMIKAWA 2000-02-08 15:53:00 +00:00
parent 7de9beaed9
commit 0d462002d9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=25588
3 changed files with 23 additions and 1 deletions

View File

@ -8,7 +8,7 @@
DISTNAME= unpv12e
PKGNAME= libunp-1.0
CATEGORIES= net
CATEGORIES= net ipv6
MASTER_SITES= ftp://ftp.kohala.com/pub/rstevens/ \
http://www.cs.columbia.edu/networks98/stevens/

11
net/libunp/files/patch-ar Normal file
View File

@ -0,0 +1,11 @@
--- lib/mcast_leave.c- Tue Feb 8 15:10:50 2000
+++ lib/mcast_leave.c Tue Feb 8 15:05:53 2000
@@ -23,7 +23,7 @@
&((struct sockaddr_in6 *) sa)->sin6_addr,
sizeof(struct in6_addr));
mreq6.ipv6mr_interface = 0;
- return(setsockopt(sockfd, IPPROTO_IPV6, IPV6_DROP_MEMBERSHIP,
+ return(setsockopt(sockfd, IPPROTO_IPV6, IPV6_LEAVE_GROUP,
&mreq6, sizeof(mreq6)));
}
#endif

11
net/libunp/files/patch-as Normal file
View File

@ -0,0 +1,11 @@
--- lib/mcast_join.c- Tue Feb 8 15:12:14 2000
+++ lib/mcast_join.c Tue Feb 8 15:12:37 2000
@@ -56,7 +56,7 @@
else
mreq6.ipv6mr_interface = 0;
- return(setsockopt(sockfd, IPPROTO_IPV6, IPV6_ADD_MEMBERSHIP,
+ return(setsockopt(sockfd, IPPROTO_IPV6, IPV6_JOIN_GROUP,
&mreq6, sizeof(mreq6)));
}
#endif