aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorRoland Dreier <roland@topspin.com>2004-12-27 06:18:50 -0800
committerDavid S. Miller <davem@nuts.davemloft.net>2004-12-27 06:18:50 -0800
commit93f178381849e4fc519d1d26b76d4483500ad369 (patch)
tree8c85cbae25be5fcbb01d6e22a464c419af714614 /net
parent7156b3e75334ad0e5ed292094daac481e1dcdfc7 (diff)
downloadhistory-93f178381849e4fc519d1d26b76d4483500ad369.tar.gz
[INFINIBAND]: IPoIB IPv4 multicast
Add ip_ib_mc_map() to convert IPv4 multicast addresses to IPoIB hardware addresses. Also add <linux/if_infiniband.h> so INFINIBAND_ALEN has a home. The mapping for multicast addresses is described in http://www.ietf.org/internet-drafts/draft-ietf-ipoib-ip-over-infiniband-08.txt Signed-off-by: Roland Dreier <roland@topspin.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/ipv4/arp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ipv4/arp.c b/net/ipv4/arp.c
index 9b5d1e8136525b..734cc2f30e94e1 100644
--- a/net/ipv4/arp.c
+++ b/net/ipv4/arp.c
@@ -213,6 +213,9 @@ int arp_mc_map(u32 addr, u8 *haddr, struct net_device *dev, int dir)
case ARPHRD_IEEE802_TR:
ip_tr_mc_map(addr, haddr);
return 0;
+ case ARPHRD_INFINIBAND:
+ ip_ib_mc_map(addr, haddr);
+ return 0;
default:
if (dir) {
memcpy(haddr, dev->broadcast, dev->addr_len);