ipv6: Add checks for 6LOWPAN ARP type
authorJukka Rissanen <[email protected]>
Wed, 11 Dec 2013 15:05:36 +0000 (17:05 +0200)
committerMarcel Holtmann <[email protected]>
Wed, 11 Dec 2013 20:57:55 +0000 (12:57 -0800)
Signed-off-by: Jukka Rissanen <[email protected]>
Acked-by: David S. Miller <[email protected]>
Signed-off-by: Marcel Holtmann <[email protected]>
net/ipv6/addrconf.c

index 12c97d8aa6bbb31ff1519459b89b7b9fb33817f5..d125fcdefb74097b5f6eed867d8ff60428a1d63a 100644 (file)
@@ -1816,6 +1816,7 @@ static int ipv6_generate_eui64(u8 *eui, struct net_device *dev)
                return addrconf_ifid_sit(eui, dev);
        case ARPHRD_IPGRE:
                return addrconf_ifid_gre(eui, dev);
+       case ARPHRD_6LOWPAN:
        case ARPHRD_IEEE802154:
                return addrconf_ifid_eui64(eui, dev);
        case ARPHRD_IEEE1394:
@@ -2658,7 +2659,8 @@ static void addrconf_dev_config(struct net_device *dev)
            (dev->type != ARPHRD_INFINIBAND) &&
            (dev->type != ARPHRD_IEEE802154) &&
            (dev->type != ARPHRD_IEEE1394) &&
-           (dev->type != ARPHRD_TUNNEL6)) {
+           (dev->type != ARPHRD_TUNNEL6) &&
+           (dev->type != ARPHRD_6LOWPAN)) {
                /* Alas, we support only Ethernet autoconfiguration. */
                return;
        }