31c31
< __FBSDID("$FreeBSD: head/sbin/hastd/proto.c 218194 2011-02-02 15:53:09Z pjd $");
---
> __FBSDID("$FreeBSD: head/sbin/hastd/proto.c 219818 2011-03-21 08:54:59Z pjd $");
108c108,109
< proto_common_setup(const char *addr, struct proto_conn **connp, int side)
---
> proto_common_setup(const char *srcaddr, const char *dstaddr,
> struct proto_conn **connp, int side)
123c124
< ret = proto->hp_client(addr, &ctx);
---
> ret = proto->hp_client(srcaddr, dstaddr, &ctx);
128c129
< ret = proto->hp_server(addr, &ctx);
---
> ret = proto->hp_server(dstaddr, &ctx);
132c133
< * ret == -1 - addr is not for this protocol
---
> * ret == -1 - dstaddr is not for this protocol
162c163,164
< proto_client(const char *addr, struct proto_conn **connp)
---
> proto_client(const char *srcaddr, const char *dstaddr,
> struct proto_conn **connp)
165c167
< return (proto_common_setup(addr, connp, PROTO_SIDE_CLIENT));
---
> return (proto_common_setup(srcaddr, dstaddr, connp, PROTO_SIDE_CLIENT));
214c216
< return (proto_common_setup(addr, connp, PROTO_SIDE_SERVER_LISTEN));
---
> return (proto_common_setup(NULL, addr, connp, PROTO_SIDE_SERVER_LISTEN));
< __FBSDID("$FreeBSD: head/sbin/hastd/proto.c 218194 2011-02-02 15:53:09Z pjd $");
---
> __FBSDID("$FreeBSD: head/sbin/hastd/proto.c 219818 2011-03-21 08:54:59Z pjd $");
108c108,109
< proto_common_setup(const char *addr, struct proto_conn **connp, int side)
---
> proto_common_setup(const char *srcaddr, const char *dstaddr,
> struct proto_conn **connp, int side)
123c124
< ret = proto->hp_client(addr, &ctx);
---
> ret = proto->hp_client(srcaddr, dstaddr, &ctx);
128c129
< ret = proto->hp_server(addr, &ctx);
---
> ret = proto->hp_server(dstaddr, &ctx);
132c133
< * ret == -1 - addr is not for this protocol
---
> * ret == -1 - dstaddr is not for this protocol
162c163,164
< proto_client(const char *addr, struct proto_conn **connp)
---
> proto_client(const char *srcaddr, const char *dstaddr,
> struct proto_conn **connp)
165c167
< return (proto_common_setup(addr, connp, PROTO_SIDE_CLIENT));
---
> return (proto_common_setup(srcaddr, dstaddr, connp, PROTO_SIDE_CLIENT));
214c216
< return (proto_common_setup(addr, connp, PROTO_SIDE_SERVER_LISTEN));
---
> return (proto_common_setup(NULL, addr, connp, PROTO_SIDE_SERVER_LISTEN));