summaryrefslogtreecommitdiff
path: root/sbin/iked/iked.c
diff options
context:
space:
mode:
authortobhe <tobhe@cvs.openbsd.org>2020-08-23 15:14:26 +0000
committertobhe <tobhe@cvs.openbsd.org>2020-08-23 15:14:26 +0000
commit7ad9ddcf38e9b843d59d73358948040c399b32a1 (patch)
tree832f4cfc9aa2053440a46e8ef06d1d304df75590 /sbin/iked/iked.c
parent2bd7da65d639b22e87ae5dc8778b10bff537ac80 (diff)
Rename natt_mode to sc_nattmode for consistency.
Diffstat (limited to 'sbin/iked/iked.c')
-rw-r--r--sbin/iked/iked.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sbin/iked/iked.c b/sbin/iked/iked.c
index e2ea8fc95c8..127caec6936 100644
--- a/sbin/iked/iked.c
+++ b/sbin/iked/iked.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: iked.c,v 1.44 2020/08/21 14:30:17 tobhe Exp $ */
+/* $OpenBSD: iked.c,v 1.45 2020/08/23 15:14:25 tobhe Exp $ */
/*
* Copyright (c) 2019 Tobias Heider <tobias.heider@stusta.de>
@@ -133,7 +133,7 @@ main(int argc, char *argv[])
fatal("calloc: env");
env->sc_opts = opts;
- env->natt_mode = natt_mode;
+ env->sc_nattmode = natt_mode;
env->sc_nattport = port;
ps = &env->sc_ps;
@@ -232,17 +232,17 @@ parent_configure(struct iked *env)
ss.ss_family = AF_INET;
/* see comment on config_setsocket() */
- if (env->natt_mode != NATT_FORCE)
+ if (env->sc_nattmode != NATT_FORCE)
config_setsocket(env, &ss, htons(IKED_IKE_PORT), PROC_IKEV2);
- if (env->natt_mode != NATT_DISABLE)
+ if (env->sc_nattmode != NATT_DISABLE)
config_setsocket(env, &ss, htons(env->sc_nattport), PROC_IKEV2);
bzero(&ss, sizeof(ss));
ss.ss_family = AF_INET6;
- if (env->natt_mode != NATT_FORCE)
+ if (env->sc_nattmode != NATT_FORCE)
config_setsocket(env, &ss, htons(IKED_IKE_PORT), PROC_IKEV2);
- if (env->natt_mode != NATT_DISABLE)
+ if (env->sc_nattmode != NATT_DISABLE)
config_setsocket(env, &ss, htons(env->sc_nattport), PROC_IKEV2);
/*