summaryrefslogtreecommitdiffstats
path: root/sys/ofed
diff options
context:
space:
mode:
authorhselasky <hselasky@FreeBSD.org>2015-01-13 16:57:02 +0000
committerhselasky <hselasky@FreeBSD.org>2015-01-13 16:57:02 +0000
commitca95da9368ea3ead4c53f70a6a8a812b7f38ffde (patch)
tree064d4f1b362959aefa42d9278dc95e4302f26dc8 /sys/ofed
parent8307a66f60424fd67b56eb7c50a4401c7884311a (diff)
downloadFreeBSD-src-ca95da9368ea3ead4c53f70a6a8a812b7f38ffde.zip
FreeBSD-src-ca95da9368ea3ead4c53f70a6a8a812b7f38ffde.tar.gz
MFC r276879:
Don't mask the IP-address when doing multicast IP over infiniband. PR: 196631 Sponsored by: Mellanox Technologies
Diffstat (limited to 'sys/ofed')
-rw-r--r--sys/ofed/include/net/ip.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ofed/include/net/ip.h b/sys/ofed/include/net/ip.h
index 32cc186..0566ad4 100644
--- a/sys/ofed/include/net/ip.h
+++ b/sys/ofed/include/net/ip.h
@@ -74,7 +74,7 @@ ip_ib_mc_map(uint32_t addr, const unsigned char *bcast, char *buf)
buf[13] = 0;
buf[14] = 0;
buf[15] = 0;
- buf[16] = (addr >> 24) & 0x0f;
+ buf[16] = (addr >> 24) & 0xff;
buf[17] = (addr >> 16) & 0xff;
buf[18] = (addr >> 8) & 0xff;
buf[19] = addr & 0xff;
OpenPOWER on IntegriCloud