Nikos Mavrogiannopoulos
6f70ec1464
proc_table_update_ip: corrected DTLS address comparison
...
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org >
2018-04-14 14:22:59 +02:00
Nikos Mavrogiannopoulos
d6332cd428
proc_table_update_ip: do not update IP if the previous IP is not found
...
That adds a safety net in case there is a mismatch of IPs, to prevent
adding two entries in the hashtable for the same IP.
Resolves #146
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org >
2018-04-02 23:04:39 +02:00
Nikos Mavrogiannopoulos
8eda81e033
proc-search: indentation fixes
...
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org >
2018-04-01 13:30:47 +02:00
Nikos Mavrogiannopoulos
53a166500f
Hash the peer's DTLS IP separately from its CSTP IP
...
This allows keeping track of clients which have their DTLS
stream come from a different IP location than their CSTP
stream.
Relates ocserv/ocserv#61
2018-02-22 08:25:18 -08:00
Nikos Mavrogiannopoulos
22d285949c
update the IP and the proc table hashes when updating the proxy protocol IP
...
This prevents stray pointers to the replaced IP being present in the
proc hash table.
2016-08-01 12:01:42 +02:00
Nikos Mavrogiannopoulos
96796fc6e2
Renamed proc_search_ip() to proc_search_single_ip()
...
This better reflects the purpose of the function and will
prevent misuse.
2016-02-21 13:25:02 +01:00
Nikos Mavrogiannopoulos
0d999f5424
Added failure codes for proc_table_add()
2015-02-10 18:36:40 +01:00
Nikos Mavrogiannopoulos
85483e98e8
added hash table to search via 'real' SID
2015-02-10 18:33:02 +01:00
Nikos Mavrogiannopoulos
820de6a979
correctly renamed DTLS ID search functions
2015-02-10 18:14:34 +01:00
Nikos Mavrogiannopoulos
53005a2cfd
use hash tables to locate proc entries
...
That would avoid a walk on all connected clients, when a
new UDP session starts.
2014-10-27 15:01:05 +01:00