Skip to content

Commit

Permalink
dhcp: added nds settings to leaseinfo dumps
Browse files Browse the repository at this point in the history
  • Loading branch information
kmroz authored and mtomaschewski committed Feb 5, 2014
1 parent 7b58b4e commit b661d3b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/leaseinfo.c
Expand Up @@ -584,6 +584,18 @@ __ni_leaseinfo_dump(FILE *out, const ni_addrconf_lease_t *lease,
__ni_leaseinfo_print_string_array(out, prefix, "NTPSERVERS",
&lease->ntp_servers, " ");

/* NDS Servers */
__ni_leaseinfo_print_string_array(out, prefix, "NDSSERVERS",
&lease->nds_servers, " ");

/* NDS Context */
__ni_leaseinfo_print_string_array(out, prefix, "NDSCONTEXT",
&lease->nds_context, " ");

/* NDS Tree */
__ni_leaseinfo_print_string(out, prefix, "NDSTREE", lease->nds_tree,
NULL, 0);

/* Only applicable for ipv4. */
if (lease->family == AF_INET)
__ni_leaseinfo_print_netbios(out, prefix, lease);
Expand Down

0 comments on commit b661d3b

Please sign in to comment.