From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Aring Subject: Re: Question about IPv6 neighbor discovery and 6lowpan Date: Fri, 22 Nov 2013 06:30:16 +0100 Message-ID: <20131122053015.GA14675@omega> References: <1385046178.2723.17.camel@jrissane-mobl.ger.corp.intel.com> <20131121153414.GA9960@omega> <1385049135.2723.25.camel@jrissane-mobl.ger.corp.intel.com> <692AEC23-372B-48A9-BEA7-02C2F6C13A47@holtmann.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Cc: Jukka Rissanen , "David S. Miller" , netdev@vger.kernel.org To: Marcel Holtmann Return-path: Received: from mail-wg0-f48.google.com ([74.125.82.48]:39408 "EHLO mail-wg0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750726Ab3KVFa0 (ORCPT ); Fri, 22 Nov 2013 00:30:26 -0500 Received: by mail-wg0-f48.google.com with SMTP id z12so670455wgg.3 for ; Thu, 21 Nov 2013 21:30:24 -0800 (PST) Content-Disposition: inline In-Reply-To: <692AEC23-372B-48A9-BEA7-02C2F6C13A47@holtmann.org> Sender: netdev-owner@vger.kernel.org List-ID: On Fri, Nov 22, 2013 at 10:29:06AM +0700, Marcel Holtmann wrote: > Hi Jukka, > > >>> I am investigating RFC 6775 (Neighbor Discovery Optimization for IPv6 > >>> over Low-Power Wireless Personal Area Networks (6LoWPANs)) > >>> http://tools.ietf.org/html/rfc6775 > >>> > >>> The RFC suggests some changes to neighbor discovery procedure for the > >>> 6LoWPAN networks. I was looking net/ipv6/ndisc.c and it seems that > >>> ARPHRD type (from type field in net_device struct) is the only way to > >>> detect and change the discovery procedure in the ndisc.c code. Am I > >>> right with this assumption here? > >>> > >> I think you are right, there was some patches on linux-zigbee-devel who > >> use exact the same idea to check the ARPHRD type. > > > > Ok. The reason I was interested in about this is that I proposed new > > ARPHRD_RAWIP earlier that I could use in BT LE 6lowpan code. Now I think > > that type might be too generic and perhaps I should have ARPHRD_6LOWPAN > > or even ARPHRD_BT_6LOWPAN. > > if it can be shared between 802.15.4 and Bluetooth, then I would propose to use ARPHRD_6LOWPAN and also convert the 802.15.4 stack to use that one. > Yea, that would be great. :-) - Alex