summaryrefslogtreecommitdiff
path: root/source4/librpc/rpc
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-01-31 21:44:39 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:09:28 -0500
commitc4f115aa1b0029f716d495fa8fa3052d1a833439 (patch)
tree736b562118b7d9143afee01de37eb1a112106f74 /source4/librpc/rpc
parent1545d6ecf436b4d01af429f9a024718e9b7dc026 (diff)
downloadsamba-c4f115aa1b0029f716d495fa8fa3052d1a833439.tar.gz
samba-c4f115aa1b0029f716d495fa8fa3052d1a833439.tar.bz2
samba-c4f115aa1b0029f716d495fa8fa3052d1a833439.zip
r5148: use ipv4_addr also in epmapper idl
metze (This used to be commit cbc1f172822363e1fc4495d27248464403748cae)
Diffstat (limited to 'source4/librpc/rpc')
-rw-r--r--source4/librpc/rpc/dcerpc_util.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/librpc/rpc/dcerpc_util.c b/source4/librpc/rpc/dcerpc_util.c
index a05ad7c897..7639ca3fdd 100644
--- a/source4/librpc/rpc/dcerpc_util.c
+++ b/source4/librpc/rpc/dcerpc_util.c
@@ -386,13 +386,13 @@ const char *dcerpc_floor_get_rhs_data(TALLOC_CTX *mem_ctx, struct epm_floor *flo
return talloc_asprintf(mem_ctx, "%d", floor->rhs.http.port);
case EPM_PROTOCOL_IP:
- if (floor->rhs.ip.address == 0) {
+ if (floor->rhs.ip.ipaddr.addr == 0) {
return NULL;
}
{
struct ipv4_addr in;
- in.addr = htonl(floor->rhs.ip.address);
+ in.addr = htonl(floor->rhs.ip.ipaddr.addr);
return talloc_strdup(mem_ctx, sys_inet_ntoa(in));
}
@@ -458,9 +458,9 @@ static NTSTATUS dcerpc_floor_set_rhs_data(TALLOC_CTX *mem_ctx, struct epm_floor
case EPM_PROTOCOL_IP:
if (strlen(data) > 0) {
- floor->rhs.ip.address = ntohl(interpret_addr(data));
+ floor->rhs.ip.ipaddr.addr = ntohl(interpret_addr(data));
} else {
- floor->rhs.ip.address = 0;
+ floor->rhs.ip.ipaddr.addr = 0;
}
return NT_STATUS_OK;