summaryrefslogtreecommitdiff
path: root/source4/include
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-02-01 04:12:44 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:09:28 -0500
commit9b9c23b19be5a90821e1075a76f8b94fdb2424e2 (patch)
treef968db44bf97befaa4d19136e83c508cd3932b35 /source4/include
parentc4f115aa1b0029f716d495fa8fa3052d1a833439 (diff)
downloadsamba-9b9c23b19be5a90821e1075a76f8b94fdb2424e2.tar.gz
samba-9b9c23b19be5a90821e1075a76f8b94fdb2424e2.tar.bz2
samba-9b9c23b19be5a90821e1075a76f8b94fdb2424e2.zip
r5155: define ipv4address as a based IDL type, mapped to a "const char *" in
the header, and defined on the wire as a 4 byte network byte order IP. This means the calling code doesn't have to worry about network byte order conversions. (This used to be commit 72048e37179dd5b9ada0c5280d2f0d8c23d1a17d)
Diffstat (limited to 'source4/include')
-rw-r--r--source4/include/includes.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/source4/include/includes.h b/source4/include/includes.h
index a185669abd..7d1ee5afc7 100644
--- a/source4/include/includes.h
+++ b/source4/include/includes.h
@@ -91,6 +91,14 @@
typedef int BOOL;
+/*
+ we use struct ipv4_addr to avoid having to include all the
+ system networking headers everywhere
+*/
+struct ipv4_addr {
+ uint32_t addr;
+};
+
#ifndef HAVE_STRERROR
extern char *sys_errlist[];
#define strerror(i) sys_errlist[i]