summaryrefslogtreecommitdiff
path: root/source4/librpc/ndr/ndr_misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/librpc/ndr/ndr_misc.c')
-rw-r--r--source4/librpc/ndr/ndr_misc.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/source4/librpc/ndr/ndr_misc.c b/source4/librpc/ndr/ndr_misc.c
index a538dd3033..b9edc0ae9c 100644
--- a/source4/librpc/ndr/ndr_misc.c
+++ b/source4/librpc/ndr/ndr_misc.c
@@ -24,6 +24,16 @@
*/
#include "includes.h"
+#include "system/network.h"
+
+void ndr_print_ipv4_addr(struct ndr_print *ndr, const char *name, const struct ipv4_addr *_ip)
+{
+ struct ipv4_addr ip;
+
+ ip.addr = htonl(_ip->addr);
+
+ ndr->print(ndr, "%-25s: %s", name, sys_inet_ntoa(ip));
+}
/*
build a GUID from a string