0
0
mirror of https://github.com/OpenVPN/openvpn3.git synced 2024-09-20 12:12:15 +02:00
openvpn3/openvpn
Antonio Quartulli 8d49172321
sitnl: properly assign prefix len of resulting route
When cycling through matching routes, the most specific (i.e. having the
longest prefix) should be selected. To achieve that, we must store the
prefix len of any selected route, so that it can be compared with the
next (if more than one is found).

As result, we return the prefix len of the matching route in the
route_res_t object.

Addresses-Coverity: ("Self assignment")
Signed-off-by: Antonio Quartulli <antonio@openvpn.net>
2021-05-24 18:34:48 +02:00
..
acceptor Update copyrights 2020-03-18 19:37:32 +01:00
addr remove unnecessary const from return type qualifier 2021-05-18 06:13:31 +02:00
apple Update copyrights 2020-03-18 19:37:32 +01:00
applecrypto Update copyrights 2020-03-18 19:37:32 +01:00
asio Update copyrights 2020-03-18 19:37:32 +01:00
auth AuthCreds: added new constructor for unit test 2020-08-19 18:52:43 +02:00
aws awsca.hpp: use proper CA path 2020-07-23 19:09:45 +02:00
buffer remove unnecessary const from return type qualifier 2021-05-18 06:13:31 +02:00
client add API to override IP protocol version 2021-05-05 19:46:58 +02:00
common remove unnecessary const from return type qualifier 2021-05-18 06:13:31 +02:00
compress remove unnecessary addition 2021-05-18 06:13:31 +02:00
crypto remove unnecessary const from return type qualifier 2021-05-18 06:13:31 +02:00
dco support async connect in dco-win 2021-04-14 22:44:51 +02:00
error Implement TLS Keying Material Export data key derivation 2020-08-27 13:00:11 +02:00
frame also initialize Context::align_block_ 2021-05-18 06:13:31 +02:00
http HTTP::HeaderList: minor performance fix 2020-09-02 20:38:10 +02:00
init Refactor InitProcess to use refcounting 2020-09-02 20:37:01 +02:00
io Update copyrights 2020-03-18 19:37:32 +01:00
ip Update copyrights 2020-03-18 19:37:32 +01:00
legal Update copyrights 2020-03-18 19:37:32 +01:00
linux Configure_RPS_XPS, ProcFS: changes for Linux 5.4 2020-09-02 20:38:07 +02:00
log Update copyrights 2020-03-18 19:37:32 +01:00
mbedtls Increase minimum default TLS level to 1.2 2021-05-05 19:44:53 +02:00
netconf win: improve "add bypass route" logic 2020-09-16 18:08:15 +03:00
omi cmake: Clean up duplications 2021-04-22 12:54:26 +02:00
openssl Add missing OpenSSL includes in openssl/compat.hpp 2021-05-23 01:52:10 +02:00
options respect --http-proxy auth-method 2021-04-14 22:40:08 +02:00
ovpnagent/win cmake: Clean up duplications 2021-04-22 12:54:26 +02:00
pki Update copyrights 2020-03-18 19:37:32 +01:00
proxy Update copyrights 2020-03-18 19:37:32 +01:00
random randapi: use #pragma once 2020-08-19 18:52:47 +02:00
reliable Update copyrights 2020-03-18 19:37:32 +01:00
server remove unnecessary const from return type qualifier 2021-05-18 06:13:31 +02:00
ssl init additional ProtoContext members 2021-05-18 06:13:31 +02:00
time Factored out timespec code from epoch.hpp into a new namespace TimeSpec 2020-09-23 20:00:34 +02:00
transport fix handling of --proto option 2021-05-05 19:46:57 +02:00
tun sitnl: properly assign prefix len of resulting route 2021-05-24 18:34:48 +02:00
win win/call.hpp: fix include and linkage error 2020-09-09 12:35:36 +03:00
ws fix signedness of variable 2021-05-19 03:30:25 +02:00