2c2
< /* $FreeBSD: head/usr.sbin/rpcbind/check_bound.c 258564 2013-11-25 16:44:02Z hrs $ */
---
> /* $FreeBSD: head/usr.sbin/rpcbind/check_bound.c 293229 2016-01-06 00:00:11Z asomers $ */
52a53
> #include <rpc/svc_dg.h>
161a163
> struct svc_dg_data *dg_data;
172a175,179
> * Try to determine the local address on which the client contacted us,
> * so we can send a reply from the same address. If it's unknown, then
> * try to determine which address the client used, and pick a nearby
> * local address.
> *
177c184,188
< if (saddr != NULL) {
---
> dg_data = (struct svc_dg_data*)xprt->xp_p2;
> if (dg_data != NULL && dg_data->su_srcaddr.buf != NULL) {
> c_uaddr = taddr2uaddr(fdl->nconf, &dg_data->su_srcaddr);
> }
> else if (saddr != NULL) {
220c231
< rpcbind_get_conf(char *netid)
---
> rpcbind_get_conf(const char *netid)
< /* $FreeBSD: head/usr.sbin/rpcbind/check_bound.c 258564 2013-11-25 16:44:02Z hrs $ */
---
> /* $FreeBSD: head/usr.sbin/rpcbind/check_bound.c 293229 2016-01-06 00:00:11Z asomers $ */
52a53
> #include <rpc/svc_dg.h>
161a163
> struct svc_dg_data *dg_data;
172a175,179
> * Try to determine the local address on which the client contacted us,
> * so we can send a reply from the same address. If it's unknown, then
> * try to determine which address the client used, and pick a nearby
> * local address.
> *
177c184,188
< if (saddr != NULL) {
---
> dg_data = (struct svc_dg_data*)xprt->xp_p2;
> if (dg_data != NULL && dg_data->su_srcaddr.buf != NULL) {
> c_uaddr = taddr2uaddr(fdl->nconf, &dg_data->su_srcaddr);
> }
> else if (saddr != NULL) {
220c231
< rpcbind_get_conf(char *netid)
---
> rpcbind_get_conf(const char *netid)