1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-21 20:38:45 +00:00

Make udp networking more firewall friendly. Bump PORTREVISION.

This commit is contained in:
Nick Sayer 2001-04-15 20:23:42 +00:00
parent cf9046834a
commit 96e4b71a25
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=41439
2 changed files with 20 additions and 0 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= bzflag
PORTVERSION= 1.7e.1
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= bzflag

View File

@ -0,0 +1,19 @@
--- src/net/udpnetwork.cxx.orig Sun Apr 15 13:20:04 2001
+++ src/net/udpnetwork.cxx Sun Apr 15 13:21:01 2001
@@ -67,6 +67,16 @@
}
#endif
+#ifdef IP_PORTRANGE
+ opt = IP_PORTRANGE_HIGH;
+ if (setsockopt(fd, SOL_SOCKET, IP_PORTRANGE,
+ (SSOType)&opt, sizeof(opt)) < 0) {
+ nerror("openUDPnetwork: setsockopt IP_PORTRANGE");
+ close(fd);
+ return -1;
+ }
+#endif
+
/* bind address */
if (bind(fd, (const struct sockaddr*)addr, sizeof(*addr)) < 0) {
nerror("openUDPnetwork: bind");