Vsevolod Stakhov
14c13854d3
[Rework] Further types conversion (no functional changes)
2 months ago
Vsevolod Stakhov
6b2b416718
[Rework] Remove some of the GLib types in lieu of standard ones
This types have constant conflicts with the system ones especially on OSX.
2 months ago
Vsevolod Stakhov
b9dd5123ec
[Rework] Some final fixes
9 months ago
Vsevolod Stakhov
537a7180a0
[Rework] Use clang-format to unify formatting in all sources
No meaningful changes.
10 months ago
Timo Rothenpieler
e648f720d3
[Fix] Fix copying of sockaddr_un addresses
They can be very tiny (hence the adjustment of the size assert)
and the path can contain intermittent null bytes, so the only choice
is to trust the input slen and copy the whole struct.
An autobound unix socket uses an abstract address, which starts with a
null byte, hence this change is neccesary for such an address getting
copied properly.
1 year ago
Timo Rothenpieler
0eaa19a09a
[Fix] Bind AF_UNIX DGRAM client connection to annonymous address
Fixes #4278
1 year ago
Vsevolod Stakhov
5134ceb341
[Minor] Oops, remove experiment
1 year ago
Vsevolod Stakhov
43de82c161
[Minor] Some neats when working with Unix sockets
1 year ago
Vsevolod Stakhov
9117058f15
[Minor] Allow to specify mempool when copying an IP address structure
2 years ago
Vsevolod Stakhov
cf071c74aa
[Minor] Fix some more issues
Found by: coverity scan
2 years ago
Vsevolod Stakhov
1b6b3012ea
[Minor] Add hack to reuse rspamd_inet_address_to_string*
3 years ago
Vsevolod Stakhov
feed3c6824
[Minor] Fix format string
3 years ago
Vsevolod Stakhov
5dac1cff96
[Minor] REUSEPORT is broken everywhere but Linux
4 years ago
Vsevolod Stakhov
903111c6cc
[Project] Do not listen sockets in the main process
4 years ago
Vsevolod Stakhov
488f72bad4
[Minor] Add flags to listen socket creation
4 years ago
Vsevolod Stakhov
80bb5413db
[Fix] Fix listen socket parsing
Issue: #3254
4 years ago
Vsevolod Stakhov
a0b5db928f
[Fix] Do not trust stat(2) it lies
Issue: #3254
4 years ago
Vsevolod Stakhov
1485bf2c42
[Rework] Move local IPs check
4 years ago
Vsevolod Stakhov
41e28d1148
[Rework] Further project structure reorganisation
4 years ago
Vsevolod Stakhov
4fe834a29f
[Minor] Disable ipv6 check via bind to a random port
Issue: #3221
4 years ago
Vsevolod Stakhov
54e835fc35
[Minor] Save port number in upstream name
4 years ago
Vsevolod Stakhov
08e517da1b
[Minor] Copy ipv6 address in full on accept
4 years ago
Vsevolod Stakhov
916a45c6f9
[Minor] Oops, fix parsing of the Unix addresses
4 years ago
Vsevolod Stakhov
04127efeba
[Fix] Distinguish remote and local addrs parsing
4 years ago
Vsevolod Stakhov
66d8b6e434
[Fix] Do not call implicit strlen to avoid issues
4 years ago
Vsevolod Stakhov
8612942fd4
[Minor] Reduce log severity
4 years ago
Vsevolod Stakhov
437cef075c
[Minor] Rework rspamd_parse_host_port_priority function result
4 years ago
Vsevolod Stakhov
71e0dbf960
[Project] Remove libfann, gd and other unsupported stuff
5 years ago
Vsevolod Stakhov
98897c1797
[Project] First refactoring step libevent->libev
5 years ago
Vsevolod Stakhov
bf2280a995
[Minor] Allow braced and prefixed IPv6 addresses
5 years ago
Martin Mares
e68ea4ea38
libutil: Fix parsing of address "IPv6:::1"
Dropping of leading colon must be performed after the "IPv6:" prefix
is stripped.
Also fixed a couple of wrong comments.
5 years ago
Vsevolod Stakhov
5836e02b95
[Project] Allow to hash and compare inet addresses considering port
5 years ago
Vsevolod Stakhov
1e0caa55d3
[Minor] Another try to fix 'IPv6:' prefix
5 years ago
Vsevolod Stakhov
d26d21a669
[Minor] Allow to process IPv6 addresses started with `IPv6:`
5 years ago
Vsevolod Stakhov
ed7ecf0d80
[Minor] Core: Allow inet addresses to be parsed using memory pool
5 years ago
Vsevolod Stakhov
4f885f95f9
[Minor] Core: Add sockaddr access utility
5 years ago
Vsevolod Stakhov
ccc9d0065d
[Minor] Convert some enums to static macros
5 years ago
Vsevolod Stakhov
1333bbcf81
[Feature] Implement parsing of scoped IPv6 addresses
5 years ago
Vsevolod Stakhov
7718fb1460
[Minor] Fix leak in unix sockets parsing
6 years ago
Vsevolod Stakhov
d168084c5a
[Minor] Fix more init/deinit leaks
6 years ago
Vsevolod Stakhov
48a9730461
[Fix] Fix parsing of unix sockets
Issue: #2241
6 years ago
Vsevolod Stakhov
60403ad3ba
[Project] Adopt code
6 years ago
Vsevolod Stakhov
37754bf7e3
[Minor] Parse IPv6 addresses even if IPv6 is disabled
6 years ago
Vsevolod Stakhov
429a880380
[Fix] Do not override unix socket group when group comes before owner
6 years ago
Vsevolod Stakhov
1b81ea8b85
[Minor] Allow commas when parsing unix socket params
6 years ago
Vsevolod Stakhov
b2b9cfa616
[Minor] Further portion of g_slice elimination
6 years ago
Vsevolod Stakhov
2576635a55
[CritFix] Zero fill sockaddr_un
7 years ago
Vsevolod Stakhov
af3af1f70c
[CritFix] Fix accepting on IPv6 sockets
7 years ago
Vsevolod Stakhov
c94329b9d2
[Fix] Fix memory leak when accepting from unix sockets
7 years ago
Vsevolod Stakhov
748f6c6966
[Fix] Try to deal with v4 mapped to v6 addresses on accept
7 years ago