From 83b706f76b791a315fbc3760f9b9c204fef44031 Mon Sep 17 00:00:00 2001 From: "Alfred E. Heggestad" Date: Mon, 6 Jun 2016 11:52:30 +0200 Subject: config: store dns nameservers in a string --- include/baresip.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/baresip.h b/include/baresip.h index f7f3c70..54eee5e 100644 --- a/include/baresip.h +++ b/include/baresip.h @@ -16,6 +16,11 @@ extern "C" { #define BARESIP_VERSION "0.4.19" +#ifndef NET_MAX_NS +#define NET_MAX_NS (4) +#endif + + /* forward declarations */ struct sa; struct sdp_media; @@ -200,7 +205,9 @@ struct config_avt { /* Network */ struct config_net { char ifname[16]; /**< Bind to interface (optional) */ - struct sa nsv[4]; /**< DNS nameservers */ + struct { + char addr[64]; + } nsv[NET_MAX_NS]; /**< Configured DNS nameservers */ size_t nsc; /**< Number of DNS nameservers */ }; -- cgit v1.2.3