mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-22 20:41:26 +00:00
Make udp networking more firewall friendly. Bump PORTREVISION.
This commit is contained in:
parent
cf9046834a
commit
96e4b71a25
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=41439
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= bzflag
|
||||
PORTVERSION= 1.7e.1
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= games
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= bzflag
|
||||
|
19
games/bzflag/files/patch-udpnetwork.cxx
Normal file
19
games/bzflag/files/patch-udpnetwork.cxx
Normal 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");
|
Loading…
Reference in New Issue
Block a user