diff options
author | nsayer <nsayer@FreeBSD.org> | 2001-04-16 04:34:44 +0800 |
---|---|---|
committer | nsayer <nsayer@FreeBSD.org> | 2001-04-16 04:34:44 +0800 |
commit | 9345da6ad8715ff7abd3e8034b4c81c15c71ee90 (patch) | |
tree | 0aff9540823766aa7682585f5ee3516f328f04cf /games/bzflag/files | |
parent | e153565605293f3c8fea6f48c20f8827dd0fd115 (diff) | |
download | freebsd-ports-gnome-9345da6ad8715ff7abd3e8034b4c81c15c71ee90.tar.gz freebsd-ports-gnome-9345da6ad8715ff7abd3e8034b4c81c15c71ee90.tar.zst freebsd-ports-gnome-9345da6ad8715ff7abd3e8034b4c81c15c71ee90.zip |
Pointy hat time. The previous patch didn't accomplish the goal. This
will, though it does not use the IP_PORTRANGE option.
Diffstat (limited to 'games/bzflag/files')
-rw-r--r-- | games/bzflag/files/patch-ServerLink.cxx | 11 | ||||
-rw-r--r-- | games/bzflag/files/patch-udpnetwork.cxx | 19 |
2 files changed, 11 insertions, 19 deletions
diff --git a/games/bzflag/files/patch-ServerLink.cxx b/games/bzflag/files/patch-ServerLink.cxx new file mode 100644 index 000000000000..880aa5508ec2 --- /dev/null +++ b/games/bzflag/files/patch-ServerLink.cxx @@ -0,0 +1,11 @@ +--- src/bzflag/ServerLink.cxx.orig Sun Apr 15 13:32:03 2001 ++++ src/bzflag/ServerLink.cxx Sun Apr 15 13:32:20 2001 +@@ -761,7 +761,7 @@ + if ((urecvfd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) { + return; // we cannot comply + } +- for (int portno=17200; portno < 65000; portno++) { ++ for (int portno=49152; portno < 65535; portno++) { + bzero((unsigned char *)&serv_addr, sizeof(serv_addr)); + serv_addr.sin_family = AF_INET; + serv_addr.sin_addr.s_addr = htonl(INADDR_ANY); diff --git a/games/bzflag/files/patch-udpnetwork.cxx b/games/bzflag/files/patch-udpnetwork.cxx deleted file mode 100644 index e58a14ee9b91..000000000000 --- a/games/bzflag/files/patch-udpnetwork.cxx +++ /dev/null @@ -1,19 +0,0 @@ ---- 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"); |