From 6f1cf91bc43eb666cda40d8b10a29ad5593b6420 Mon Sep 17 00:00:00 2001 From: Tobias Heider Date: Wed, 1 Sep 2021 15:30:07 +0000 Subject: 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@ --- sbin/iked/config.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sbin/iked/config.c') 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 @@ -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); -- cgit v1.2.3