summaryrefslogtreecommitdiff
path: root/ctdb/utils
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronniesahlberg@gmail.com>2008-08-19 14:58:29 +1000
committerRonnie Sahlberg <ronniesahlberg@gmail.com>2008-08-19 14:58:29 +1000
commitef997d344f189891ec201a71e8f57bc1ca88992c (patch)
tree7cb621dae29c1ee04331914c39947ae3f9502f66 /ctdb/utils
parented6ca6a84dbc99ffcb7978dd1e98b2b41a2904af (diff)
downloadsamba-ef997d344f189891ec201a71e8f57bc1ca88992c.tar.gz
initial ipv6 patch
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com> (This used to be ctdb commit 1f131f21386f428bbbbb29098d56c2f64596583b)
Diffstat (limited to 'ctdb/utils')
-rw-r--r--ctdb/utils/ipmux/ipmux.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ctdb/utils/ipmux/ipmux.c b/ctdb/utils/ipmux/ipmux.c
index 539490e674d..598e9dcb6f2 100644
--- a/ctdb/utils/ipmux/ipmux.c
+++ b/ctdb/utils/ipmux/ipmux.c
@@ -34,7 +34,7 @@
struct ipmux_node {
uint32_t pnn;
- struct sockaddr_in sin;
+ ctdb_sock_addr addr;
};
struct ipmux_node *ipmux_nodes;
@@ -188,8 +188,8 @@ int main(int argc, const char *argv[])
if (nodemap->nodes[i].flags & NODE_FLAGS_DISCONNECTED) {
continue;
}
- ipmux_nodes[num_nodes].pnn = i;
- ipmux_nodes[num_nodes].sin = nodemap->nodes[i].sin;
+ ipmux_nodes[num_nodes].pnn = i;
+ ipmux_nodes[num_nodes].addr = nodemap->nodes[i].addr;
num_nodes++;
}
@@ -251,7 +251,7 @@ int main(int argc, const char *argv[])
send the packet off and tell the kernel to not worry
about this packet any more
*/
- ret = sendto(s, &ipqp->payload[0], ipqp->data_len, 0, &ipmux_nodes[hash].sin, sizeof(struct sockaddr_in));
+ ret = sendto(s, &ipqp->payload[0], ipqp->data_len, 0, (struct sockaddr_in *)&ipmux_nodes[hash].addr, sizeof(ctdb_sock_addr));
ipq_set_verdict(ipqh, ipqp->packet_id, NF_DROP, 0, pktbuf);
}