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
Alibek Omarov
0efc5e82ec
engine: fix some const qualifier lose and pointer-to-int casts
3 years ago
Gleb Mazovetskiy
5e0a0765ce
Trim all trailing whitespace
...
The `.editorconfig` file in this repo is configured to trim all trailing
whitespace regardless of whether the line is modified.
Trims all trailing whitespace in the repository to make the codebase easier
to work with in editors that respect `.editorconfig`.
`git blame` becomes less useful on these lines but it already isn't very useful.
Commands:
```
find . -type f -name '*.h' -exec sed --in-place 's/[[:space:]]\+$//' {} \+
find . -type f -name '*.c' -exec sed --in-place 's/[[:space:]]\+$//' {} \+
```
4 years ago
Andrey Akhmichin
abd9778ef3
engine: common: simplified strings operations.
4 years ago
Andrey Akhmichin
e3b547c8a9
public: rename mathlib to xash3d_mathlib.
5 years ago
mittorn
7d0e45b507
network: restore WSAsize_t define for win32
5 years ago
mittorn
2b90790071
network: add stub for systems without BSD sockets, WATTCP support
5 years ago
Alibek Omarov
e11a08064d
engine: fix implicit-fallthrough, uninitialized, enum-conversation compiler diagnostics
5 years ago
Alibek Omarov
c07109e69c
engine: fix -Wincompatible-pointer-types, add it to Werror list
5 years ago
Alibek Omarov
9421457b3a
engine: big refactoring commit, instead of using platform-specific platform-specific macros, use appropriate macros set by public/build.h
5 years ago
Alibek Omarov
edf3fcd398
engine: common: explicitly cast literals to floats, include tgmath when needed
5 years ago
Alibek Omarov
d2a8cfe614
Revert "engine: client: implement connectionprogress partially"
...
This reverts commit cb417a3d51
.
This commit breaks demo playback. Figure out why, then revert it back.
5 years ago
mittorn
cb0791c915
http: do not continue after HTTP_Free, fix potential buffer overflow
5 years ago
Alibek Omarov
8bb6aa2c51
engine: don't include windows headers, as they globally included by port.h already
5 years ago
Alibek Omarov
ee2c1ad8fa
engine: net_ws: include engine headers first
5 years ago
Alibek Omarov
7771356e66
engine: net_ws: fix dedicated build
5 years ago
Alibek Omarov
cb417a3d51
engine: client: implement connectionprogress partially
5 years ago
Alibek Omarov
386a68e334
engine: fix wrong function called on closing socket on Win32
5 years ago
Alibek Omarov
90e0c070ac
engine: network: refactor net_ws.c since winsock2 is linked directly to engine DLL, correct some signness
6 years ago
Alibek Omarov
a378379ac5
engine: network: link to Winsock2 directly
6 years ago
Jonathan Poncelet
60a1c4f0cc
Prevented net send errors from triggering an entire host error
6 years ago
Alibek Omarov
b09242e41c
engine: fix dedicated check
6 years ago
Alibek Omarov
743c5ca8d5
engine: make dedicated work again
6 years ago
Alibek Omarov
7aa7f4dbbd
engine: fix broken win32 types after moving more definitions to xash3d_types.h
6 years ago
mittorn
b1e3fa5f4d
http: fix uninitialized progress value
6 years ago