AIX makes a define of ip_len in netinet/ip.h (sic!)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13731
Signed-off-by: Bjoern Jacke <bj@sernet.de>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Fri Jan 4 16:29:50 CET 2019 on sn-devel-144
struct shutdown_state {
const char *ip;
struct shutdown_state {
const char *ip;
struct messaging_context *msg_ctx;
};
struct messaging_context *msg_ctx;
};
}
addr_len = port_colon - addr;
}
addr_len = port_colon - addr;
- if ((addr_len != state->ip_len) ||
- (strncmp(addr, state->ip, state->ip_len) != 0)) {
+ if ((addr_len != state->ip_length) ||
+ (strncmp(addr, state->ip, state->ip_length) != 0)) {
DEBUG(10, ("%s (%zu) does not match %s (%zu)\n",
DEBUG(10, ("%s (%zu) does not match %s (%zu)\n",
- state->ip, state->ip_len, addr, addr_len));
+ state->ip, state->ip_length, addr, addr_len));
if (port_colon == NULL) {
return;
}
if (port_colon == NULL) {
return;
}
- state.ip_len = port_colon - addr;
+ state.ip_length = port_colon - addr;
state.msg_ctx = sconn->msg_ctx;
smbXsrv_session_global_traverse(shutdown_other_smbds, &state);
TALLOC_FREE(addr);
state.msg_ctx = sconn->msg_ctx;
smbXsrv_session_global_traverse(shutdown_other_smbds, &state);
TALLOC_FREE(addr);