diff options
author | Nick Sayer <nsayer@FreeBSD.org> | 2001-04-15 20:34:44 +0000 |
---|---|---|
committer | Nick Sayer <nsayer@FreeBSD.org> | 2001-04-15 20:34:44 +0000 |
commit | 880fb00be3189c8f8671485a113a55c26dbe737c (patch) | |
tree | a54ea04ed0751f2cf86297f70cc73b191e3ee9a7 /games/bzflag/files/patch-udpnetwork.cxx | |
parent | Make udp networking more firewall friendly. Bump PORTREVISION. (diff) |
Pointy hat time. The previous patch didn't accomplish the goal. This
will, though it does not use the IP_PORTRANGE option.
Notes
Notes:
svn path=/head/; revision=41440
Diffstat (limited to '')
-rw-r--r-- | games/bzflag/files/patch-udpnetwork.cxx | 19 |
1 files changed, 0 insertions, 19 deletions
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"); |