Alibek Omarov
75d476f9df
engine: fix -Wmissing-prototypes
11 months ago
Alibek Omarov
46f30e215c
common: replace netadr.h with compatible definition from GPL Quake-2 sources
12 months ago
Alibek Omarov
4c3c3529e9
engine: network: rename length variable to something that makes sense. Add usage line to http_addcustomserver
1 year ago
Alibek Omarov
7051b844ff
engine: network: set HTTP buffer to 8kb on all systems, without depending on random constant like BUFSIZ
1 year ago
Alibek Omarov
9e107e900c
engine: network: fix async NS resolve
...
If we're currently running NS resolving thread, any request would block.
Co-Authored-by: mittorn <mittorn@sibmail.com>
1 year ago
Alibek Omarov
b9ca0d4563
engine: common: network: more simple IP address copying from sockaddr to netadr_t and back
1 year ago
mittorn
b949da291e
engine: fix strict aliasing issues found by an old armv7hf compiler
1 year ago
Alibek Omarov
34fa1b5ec8
engine: remove PORT_CLIENT, we should randomize client port by default, thus allowing easier connections from same IP address
1 year ago
Alibek Omarov
e4ae386964
engine: network: fix incorrect usage of qboolean, when it should be net_gai_state_t
1 year ago
Alibek Omarov
c1c27c5f18
engine: net_ws: fix printing multicast IPv6 address
1 year ago
Alibek Omarov
b39378a6da
engine: common: fix warning about read-only cvar. In fact, we should force set them.
1 year ago
Alibek Omarov
4ce2475602
engine: common: move network cvars to static allocation
2 years ago
Alibek Omarov
8f207362a5
public: remove Q_sprintf, and patch all code that used it to use Q_snprintf instead
2 years ago
Alibek Omarov
2e7306e96a
engine: network: fix missing newline in IP port allocation error message
2 years ago
Alibek Omarov
12efcf1c44
engine: network: remove some totally ununsed functions
2 years ago
Alibek Omarov
93a7ccd14f
engine: network: add net_gai_state_t enum for NET_StringToAdrNB result value
2 years ago
Alibek Omarov
c2992afb4a
engine: network: make all HTTP commands and cvars restricted, except http_addcustomserver. Also zero http_useragent by default (it's autogenerated now)
2 years ago
Alibek Omarov
b99e7a6304
engine: network: include build info to default HTTP useragent
2 years ago
Alibek Omarov
116a605248
engine: common: replace some obvious va uses by temp buffer and Q_snprintf or equivalent code
2 years ago
Alibek Omarov
6b62f9c1b9
engine: convert Cvar_Get with va to Cvar_Getf
2 years ago
fgsfds
7424b29e56
engine: initial psvita build support
2 years ago
Alibek Omarov
b5b6b8b785
engine: network: fix some unitialized sockaddr_storage's
2 years ago
fgsfds
b73c16c216
engine: net_ws: pass correct sockaddr lengths where needed
2 years ago
fgsfds
0ba4ef678c
engine: net_ws: pass correct sockaddr lengths where needed
2 years ago
Alibek Omarov
eaf9a9283a
Revert "engine: network: do not read from uninitialized sockaddr storage"
...
This reverts commit 4f78ec01cf
.
2 years ago
Alibek Omarov
4f78ec01cf
engine: network: do not read from uninitialized sockaddr storage
2 years ago
Alibek Omarov
1119a9ac22
engine: network: reenable DNS resolving in separate thread for Windows
2 years ago
Alibek Omarov
e621c98602
engine: network: do not crash if one of v4 or v6 socket opening failed but crash if both. Fix hostport/clientport cvars usage
2 years ago
Alibek Omarov
f3400c983e
engine: network: fix address comparator
2 years ago
Alibek Omarov
18c94b6ec4
engine: common: add network address comparator function
2 years ago
Andrey Akhmichin
177ed2c603
engine: common: simplify strings operations.
2 years ago
Alibek Omarov
e97310c441
engine: common: net_ws: fix uninitialized family in IPSocket
2 years ago
Alibek Omarov
8b6f12418e
engine: common: make few network cvars privileged
2 years ago
Alibek Omarov
ac05acf6dc
engine: network: I'm fucking blind
2 years ago
Alibek Omarov
3e1db432df
engine: network: fix IPv4 private address checks according to RFC1918
...
Thanks to @Mr0maks for the fix
2 years ago
SNMetamorph
d8724f0be4
engine: common: net_ws: disabled read-only flag for ip cvar
2 years ago
SNMetamorph
36b0d47f5f
engine: common: net_ws: fixed sockets reinitialization in NET_OpenIP
2 years ago
SNMetamorph
6891ed8064
engine: common: net_ws: backported NAT bypass feature
2 years ago
SNMetamorph
8f91830997
engine: added changeport parameter for NET_Config
2 years ago
Tim Schumacher
a1ce5faac2
Engine: Keep HTTP from endlessly formatting NaN values
...
For whatever reason, our progress count for HTTP downloads stays at 0.
This results in the engine calculating a NaN progress value many times
each frame, which results in a significant performance hit.
3 years ago
Alibek Omarov
2b8b3e1993
engine: server: new IP filter, rewritten with IPv6 in mind
3 years ago
Alibek Omarov
b0a889d1a1
engine: bring back simple netadr_t, as we don't care about IPv4-to-IPv6 mapped addresses anymore
3 years ago
Alibek Omarov
bd1bfea695
engine: second iteration of IPv6 support
...
Made code smaller
Fixed problem where v6 and v4 socket can't use same port
Added support for v4-to-v6 mapped addresses, although it's kept unused
Probably final version
3 years ago
Alibek Omarov
b072b627a2
engine: enable getaddrinfo on Windows, fix build
3 years ago
Alibek Omarov
59fba30a52
engine: IPv6 support
...
* v6 equivalent cvars
* hostname resolving for v6
* fix for nonblocking hostname resolve (inverted check)
* enabled by default, probably should be disabled for dedicated servers
3 years ago
Alibek Omarov
f67d0ffa5a
engine: common: fix broken function name and strings after find&replace in socket code
3 years ago
Alibek Omarov
36702aafe7
engine: rename FCVAR_LOCALONLY and CMD_LOCALONLY into FCVAR_PRIVILEGED and CMD_PRIVILEGED
3 years ago
Alibek Omarov
8a9231628e
engine: restrict potentially harmful or related to user settings engine cvars
3 years ago
Alibek Omarov
94dc74a37f
engine: restrict potentially harmful engine commands
3 years ago
Alibek Omarov
29a8bfb1dc
engine: common: fix ParseFile calls
3 years ago