diff options
author | Neale Ranns <nranns@cisco.com> | 2020-09-10 08:49:10 +0000 |
---|---|---|
committer | Andrew Yourtchenko <ayourtch@gmail.com> | 2020-09-16 11:03:59 +0000 |
commit | 6efd393965317d7c27fbd0a7f0046a7b29d37a9e (patch) | |
tree | 0503316c602505126a03ebc49b85b9ffc2377018 /src/plugins/wireguard/wireguard_cookie.c | |
parent | 21cbdc75f21cde6ea83382e647c9da081d7d5f5b (diff) |
wireguard: Fix for tunnel encap
Type: fix
add UT for sneding handshale init and transport packets
Signed-off-by: Neale Ranns <nranns@cisco.com>
Change-Id: Iab1ed8864c666d5a0ae0b2364a9ca4de3c8770dc
(cherry picked from commit d75a2d12c431fcffba2a2b4d59f18c9cec483ed9)
Diffstat (limited to 'src/plugins/wireguard/wireguard_cookie.c')
-rwxr-xr-x | src/plugins/wireguard/wireguard_cookie.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/wireguard/wireguard_cookie.c b/src/plugins/wireguard/wireguard_cookie.c index aa476f792a1..f54ce715906 100755 --- a/src/plugins/wireguard/wireguard_cookie.c +++ b/src/plugins/wireguard/wireguard_cookie.c @@ -86,7 +86,7 @@ cookie_checker_validate_macs (vlib_main_t * vm, cookie_checker_t * cc, len = len - sizeof (message_macs_t); cookie_macs_mac1 (&our_cm, buf, len, cc->cc_mac1_key); - /* If mac1 is invald, we want to drop the packet */ + /* If mac1 is invalid, we want to drop the packet */ if (clib_memcmp (our_cm.mac1, cm->mac1, COOKIE_MAC_SIZE) != 0) return INVALID_MAC; |