diff options
author | Tobias Heider <tobhe@cvs.openbsd.org> | 2021-09-01 15:30:07 +0000 |
---|---|---|
committer | Tobias Heider <tobhe@cvs.openbsd.org> | 2021-09-01 15:30:07 +0000 |
commit | 6f1cf91bc43eb666cda40d8b10a29ad5593b6420 (patch) | |
tree | 1cf3abef881111744388754718ef067264c98dfb /sbin/iked/config.c | |
parent | 1c09d776bff82d707544477525b40f900a258c6d (diff) |
Add client side support for DNS configuration. Use RTM_PROPOSAL_STATIC
route messages to propose the name server to resolvd(8).
For now, iked will only propose a single name server from the first
established connection.
Automatic name server configuration is enabled by default for policies using
the 'iface' option.
discussed with deraadt@
ok for the DNS parts florian@
ok for the rest patrick@
Diffstat (limited to 'sbin/iked/config.c')
-rw-r--r-- | sbin/iked/config.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/iked/config.c b/sbin/iked/config.c index 60f6443d3e2..029ee2b5813 100644 --- a/sbin/iked/config.c +++ b/sbin/iked/config.c @@ -1,4 +1,4 @@ -/* $OpenBSD: config.c,v 1.79 2021/05/13 15:20:48 tobhe Exp $ */ +/* $OpenBSD: config.c,v 1.80 2021/09/01 15:30:06 tobhe Exp $ */ /* * Copyright (c) 2019 Tobias Heider <tobias.heider@stusta.de> @@ -174,6 +174,7 @@ config_free_sa(struct iked *env, struct iked_sa *sa) free(sa->sa_cp_addr); free(sa->sa_cp_addr6); + free(sa->sa_cp_dns); free(sa->sa_tag); free(sa); |