aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authornsayer <nsayer@FreeBSD.org>2001-04-16 04:23:42 +0800
committernsayer <nsayer@FreeBSD.org>2001-04-16 04:23:42 +0800
commite153565605293f3c8fea6f48c20f8827dd0fd115 (patch)
tree2b92517375937ffc289a494d3664bab46e37a4a8 /games
parent291e97eceac2c5b6d0fa3bc9bf12cf5194c3f2fa (diff)
downloadfreebsd-ports-gnome-e153565605293f3c8fea6f48c20f8827dd0fd115.tar.gz
freebsd-ports-gnome-e153565605293f3c8fea6f48c20f8827dd0fd115.tar.zst
freebsd-ports-gnome-e153565605293f3c8fea6f48c20f8827dd0fd115.zip
Make udp networking more firewall friendly. Bump PORTREVISION.
Diffstat (limited to 'games')
-rw-r--r--games/bzflag/Makefile1
-rw-r--r--games/bzflag/files/patch-udpnetwork.cxx19
2 files changed, 20 insertions, 0 deletions
diff --git a/games/bzflag/Makefile b/games/bzflag/Makefile
index 23e19e74b92c..730fdf1af3f6 100644
--- a/games/bzflag/Makefile
+++ b/games/bzflag/Makefile
@@ -7,6 +7,7 @@
PORTNAME= bzflag
PORTVERSION= 1.7e.1
+PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= bzflag
diff --git a/games/bzflag/files/patch-udpnetwork.cxx b/games/bzflag/files/patch-udpnetwork.cxx
new file mode 100644
index 000000000000..e58a14ee9b91
--- /dev/null
+++ b/games/bzflag/files/patch-udpnetwork.cxx
@@ -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");