wireguard: update ESTABLISHED flag 00/38000/5
authorArtem Glazychev <artem.glazychev@xored.com>
Tue, 24 Jan 2023 08:34:00 +0000 (15:34 +0700)
committerFan Zhang <fanzhang.oss@gmail.com>
Wed, 1 Feb 2023 11:33:46 +0000 (11:33 +0000)
commit4d290c3aa74c7bd346b311940e5feb399464057e
tree94673a68e05e5409e94d901a0a05552997a37928
parent8430c402fc5118b4bcb221030779cf4e6c11d462
wireguard: update ESTABLISHED flag

We cannot confidently say that if we have received and processed
the handshake_initiation message, then the connection has been established.
Because we also send a response.
The fact that the connection is established can only be considered if a keepalive packet was received.

Type: fix

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>
Change-Id: I61731916071990f28cdebcd1d0e4d302fa1dee15
src/plugins/wireguard/wireguard_input.c
test/test_wireguard.py