summaryrefslogtreecommitdiff
path: root/include/baresip.h
diff options
context:
space:
mode:
authorAlfred E. Heggestad <aeh@db.org>2016-06-06 11:52:30 +0200
committerAlfred E. Heggestad <aeh@db.org>2016-06-06 11:52:30 +0200
commit83b706f76b791a315fbc3760f9b9c204fef44031 (patch)
tree5bf3555a7b26be7edb0ac3cced36af5fc1aa206d /include/baresip.h
parent8089ac9d10e0db60d3bc4cf52a9c0576fb01f421 (diff)
config: store dns nameservers in a string
Diffstat (limited to 'include/baresip.h')
-rw-r--r--include/baresip.h9
1 files changed, 8 insertions, 1 deletions
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 */
};