aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorYağmur Oymak <yagmur.oymak@gmail.com>2019-07-24 18:41:24 +0300
committerYağmur Oymak <yagmur.oymak@gmail.com>2019-07-24 18:51:29 +0300
commit9a899c54c927bb6012ed39e42c9be9cd9c4c7151 (patch)
treec16ee457fe320673100cdc629f3d43580b63f194 /src/include
parenta0d8ce41596498653aed21af02ffac0728a1eb6e (diff)
Harden WireGuard detection
Exploit the fixed size handshake messages and sender/receiver indices.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/ndpi_typedefs.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/include/ndpi_typedefs.h b/src/include/ndpi_typedefs.h
index 135d97574..f576834cc 100644
--- a/src/include/ndpi_typedefs.h
+++ b/src/include/ndpi_typedefs.h
@@ -662,6 +662,10 @@ struct ndpi_flow_udp_struct {
/* NDPI_PROTOCOL_MEMCACHED */
u_int8_t memcached_matches;
+
+ /* NDPI_PROTOCOL_WIREGUARD */
+ u_int8_t wireguard_stage;
+ u_int32_t wireguard_peer_index[2];
}
#ifndef WIN32
__attribute__ ((__packed__))