diff options
| author | Hans Petter Selasky <hselasky@FreeBSD.org> | 2016-04-21 16:04:58 +0000 |
|---|---|---|
| committer | Hans Petter Selasky <hselasky@FreeBSD.org> | 2016-04-21 16:04:58 +0000 |
| commit | a296502fe017ce4f7d7f165e11914cf1d4fd1b2b (patch) | |
| tree | e80d5c26c736bc6d2fec4fc1b0f141a2fd8bc25f /sys/ofed | |
| parent | 8dfea46460a0befc49458e87d2078a5ca100e0eb (diff) | |
Notes
Diffstat (limited to 'sys/ofed')
| -rw-r--r-- | sys/ofed/drivers/infiniband/core/addr.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/ofed/drivers/infiniband/core/addr.c b/sys/ofed/drivers/infiniband/core/addr.c index 27ad05e9c5cf..7992baeb911f 100644 --- a/sys/ofed/drivers/infiniband/core/addr.c +++ b/sys/ofed/drivers/infiniband/core/addr.c @@ -333,17 +333,18 @@ mcast: switch (dst_in->sa_family) { #ifdef INET case AF_INET: - error = arpresolve(ifp, is_gw, NULL, dst_in, edst, NULL); + error = arpresolve(ifp, is_gw, NULL, + is_gw ? rte->rt_gateway : dst_in, edst, NULL); break; #endif #ifdef INET6 case AF_INET6: - error = nd6_resolve(ifp, is_gw, NULL, dst_in, edst, NULL); + error = nd6_resolve(ifp, is_gw, NULL, + is_gw ? rte->rt_gateway : dst_in, edst, NULL); break; #endif default: - /* XXX: Shouldn't happen. */ - error = -EINVAL; + break; } RTFREE(rte); if (error == 0) { |
