From 9b9c23b19be5a90821e1075a76f8b94fdb2424e2 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 1 Feb 2005 04:12:44 +0000 Subject: 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) --- source4/librpc/idl/epmapper.idl | 2 +- source4/librpc/idl/misc.idl | 4 ---- source4/librpc/idl/nbt.idl | 2 +- 3 files changed, 2 insertions(+), 6 deletions(-) (limited to 'source4/librpc/idl') diff --git a/source4/librpc/idl/epmapper.idl b/source4/librpc/idl/epmapper.idl index ba5770b305..89c4e246f9 100644 --- a/source4/librpc/idl/epmapper.idl +++ b/source4/librpc/idl/epmapper.idl @@ -99,7 +99,7 @@ interface epmapper } epm_rhs_tcp; typedef struct { - ipv4_addr ipaddr; + ipv4address ipaddr; } epm_rhs_ip; typedef struct { diff --git a/source4/librpc/idl/misc.idl b/source4/librpc/idl/misc.idl index 4b69d1089b..13306b6876 100644 --- a/source4/librpc/idl/misc.idl +++ b/source4/librpc/idl/misc.idl @@ -6,10 +6,6 @@ interface misc { - typedef [public,noprint] struct { - uint32 addr; - } ipv4_addr; - typedef [public,noprint,gensize] struct { uint32 time_low; uint16 time_mid; diff --git a/source4/librpc/idl/nbt.idl b/source4/librpc/idl/nbt.idl index 9dc42fccba..08dde1f018 100644 --- a/source4/librpc/idl/nbt.idl +++ b/source4/librpc/idl/nbt.idl @@ -102,7 +102,7 @@ interface nbt typedef struct { nb_flags nb_flags; - ipv4_addr ipaddr; + ipv4address ipaddr; } nbt_rdata_address; typedef struct { -- cgit