diff options
author | 2020-11-21 19:25:08 +0000 | |
---|---|---|
committer | 2020-11-21 19:25:08 +0000 | |
commit | 263a32b41ac090b97a9becf4ae40a85703af1f17 (patch) | |
tree | f989e41636c8ab492d9431e69f4fabbaea752cbd | |
parent | Clean up NATT hack. Pass 'frompeer' as parameter instead of manipulating (diff) | |
download | wireguard-openbsd-263a32b41ac090b97a9becf4ae40a85703af1f17.tar.xz wireguard-openbsd-263a32b41ac090b97a9becf4ae40a85703af1f17.zip |
Fix ikev2_nat_detection().
-rw-r--r-- | regress/sbin/iked/parser/common.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/regress/sbin/iked/parser/common.c b/regress/sbin/iked/parser/common.c index 92f6a578d60..f5775095edb 100644 --- a/regress/sbin/iked/parser/common.c +++ b/regress/sbin/iked/parser/common.c @@ -1,4 +1,4 @@ -/* $OpenBSD: common.c,v 1.7 2020/11/18 22:24:03 tobhe Exp $ */ +/* $OpenBSD: common.c,v 1.8 2020/11/21 19:25:08 tobhe Exp $ */ /* * A bunch of stub functions so we can compile and link ikev2_pld.c * in a standalone program for testing purposes. @@ -39,7 +39,7 @@ void timer_set(struct iked *, struct iked_timer *, void timer_add(struct iked *, struct iked_timer *, int); void timer_del(struct iked *, struct iked_timer *); ssize_t ikev2_nat_detection(struct iked *, struct iked_message *, - void *, size_t, u_int); + void *, size_t, u_int, int); int ca_setreq(struct iked *, struct iked_sa *, struct iked_static_id *, u_int8_t, u_int8_t, u_int8_t *, size_t, enum privsep_procid); int ikev2_print_id(struct iked_id *, char *, size_t); @@ -142,7 +142,7 @@ timer_del(struct iked *env, struct iked_timer *tmr) ssize_t ikev2_nat_detection(struct iked *env, struct iked_message *msg, - void *ptr, size_t len, u_int type) + void *ptr, size_t len, u_int type, int frompeer) { return (0); } |