diff options
author | Nick Sayer <nsayer@FreeBSD.org> | 2001-04-15 20:23:42 +0000 |
---|---|---|
committer | Nick Sayer <nsayer@FreeBSD.org> | 2001-04-15 20:23:42 +0000 |
commit | 96e4b71a25d2ec5e21f846e7e19117c13619d7cf (patch) | |
tree | a235ded82521955b3d59afff0955e8d710149677 /games/bzflag | |
parent | Add p5-Net-Wake 0.01, Send Wake On Lan (WOL) packets to power on computers. (diff) |
Make udp networking more firewall friendly. Bump PORTREVISION.
Notes
Notes:
svn path=/head/; revision=41439
Diffstat (limited to '')
-rw-r--r-- | games/bzflag/Makefile | 1 | ||||
-rw-r--r-- | games/bzflag/files/patch-udpnetwork.cxx | 19 |
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"); |