Vsevolod Stakhov
14c13854d3
[Rework] Further types conversion (no functional changes)
il y a 3 mois
Vsevolod Stakhov
537a7180a0
[Rework] Use clang-format to unify formatting in all sources
No meaningful changes.
il y a 11 mois
Vsevolod Stakhov
9117058f15
[Minor] Allow to specify mempool when copying an IP address structure
il y a 2 ans
Josh Soref
2b8e6958f4
Spelling (#4086)
[Rework] Massive spelling fix from @jsoref
il y a 2 ans
Vsevolod Stakhov
6784ed26d1
[Minor] Replace in6_addr_t with struct in6_addr as defined by POSIX
il y a 4 ans
Vsevolod Stakhov
903111c6cc
[Project] Do not listen sockets in the main process
il y a 4 ans
Vsevolod Stakhov
488f72bad4
[Minor] Add flags to listen socket creation
il y a 4 ans
Vsevolod Stakhov
80bb5413db
[Fix] Fix listen socket parsing
Issue: #3254
il y a 4 ans
Vsevolod Stakhov
1485bf2c42
[Rework] Move local IPs check
il y a 4 ans
Vsevolod Stakhov
04127efeba
[Fix] Distinguish remote and local addrs parsing
il y a 4 ans
Vsevolod Stakhov
437cef075c
[Minor] Rework rspamd_parse_host_port_priority function result
il y a 4 ans
Vsevolod Stakhov
c271eb3665
[Rework] Add C++ guards to all headers
il y a 5 ans
Vsevolod Stakhov
71e0dbf960
[Project] Remove libfann, gd and other unsupported stuff
il y a 5 ans
Vsevolod Stakhov
5836e02b95
[Project] Allow to hash and compare inet addresses considering port
il y a 5 ans
Vsevolod Stakhov
ed7ecf0d80
[Minor] Core: Allow inet addresses to be parsed using memory pool
il y a 5 ans
Vsevolod Stakhov
4f885f95f9
[Minor] Core: Add sockaddr access utility
il y a 5 ans
Vsevolod Stakhov
60403ad3ba
[Project] Adopt code
il y a 6 ans
Alexander Moisseev
bb5a9f8e45
[Minor] Massive spelling correction
by a bot https://github.com/ka7/misspell_fixer
il y a 7 ans
Vsevolod Stakhov
8fbd198065
[Minor] Refactor destroy -> free
il y a 7 ans
Vsevolod Stakhov
087dcad963
[Fix] Do not use local_addrs in proxy
il y a 7 ans
Vsevolod Stakhov
e47d8db1f1
[Minor] Allow to parse and create stack based inet_addr_t
il y a 7 ans
Vsevolod Stakhov
7238b9cfe4
[Fix] Some fixes to libmagic initialization
il y a 8 ans
Vsevolod Stakhov
9919068fcd
[Feature] Use new ip parsing API
il y a 8 ans
Vsevolod Stakhov
0988e1b1b1
[Feature] Add protection against open files limit and accepting sockets
il y a 8 ans
Vsevolod Stakhov
0c01103c02
[Feature] Add function for pretty printing of inet addresses
il y a 8 ans
Vsevolod Stakhov
947bd90138
Add routine to create inet address from the rdns reply
il y a 8 ans
Vsevolod Stakhov
8766fba694
Switch the rest to apache 2
il y a 8 ans
Vsevolod Stakhov
d100debaa3
Rework parsing of IP addresses
il y a 8 ans
Vsevolod Stakhov
f4b315188e
Add local addrs extension available in the conviguration
il y a 8 ans
Vsevolod Stakhov
32dda672d0
Add method to check if IP is local
il y a 8 ans
Vsevolod Stakhov
61330ef453
Add routines to use rspamd_inet_addr_t in hash tables
il y a 8 ans
Vsevolod Stakhov
9370ea45e1
Fix parsing of fixed length IP addresses.
il y a 8 ans
Vsevolod Stakhov
eb737947eb
Reorganize includes to reduce namespace pollution.
il y a 8 ans
Vsevolod Stakhov
7fcf40d888
Use port when calculating listen socket hash.
il y a 9 ans
Vsevolod Stakhov
074d28ebc2
Fix sorting order and unit test for upstreams.
il y a 9 ans
Vsevolod Stakhov
c4141a343c
Add more utility functions required.
il y a 9 ans
Vsevolod Stakhov
a943f89d45
Rework inet_address structure.
- Now addresses are opaque.
- Save memory by splitting unix and inet sockaddrs.
- Rework all functions related to inet addrs.
- Use ptr arrays instead of home-made static arrays.
il y a 9 ans
Vsevolod Stakhov
91f49b9ceb
Allow customizations for unix sockets.
Issue: #182
Reported by: @AlexeySa
il y a 9 ans
Vsevolod Stakhov
8c9cf87f25
Rework and simplify listen sockets creation.
il y a 9 ans
Vsevolod Stakhov
f58fb61175
Allow addresses to be allocated in rspamd_mempool.
il y a 9 ans
Vsevolod Stakhov
cbde625fb2
Allow multiple addresses per upstream.
il y a 9 ans
Vsevolod Stakhov
f046f61e40
Add some basic logic for upstreams.
il y a 9 ans
Vsevolod Stakhov
4a4ff2f073
Rework host/port/priority parsing.
il y a 9 ans
Vsevolod Stakhov
b4ce748572
Split addr definition from the utils code.
il y a 9 ans