Re: [OpenWrt-Devel] help with netifd 802.1ad development

2014-05-12 Thread Gioacchino Mazzurco
On Monday 12 May 2014 07:46:31 Steven Barth wrote:
 Hi Gioacchino,
 
 it seems the kernel expects a big-endian value as vlan protocol, so you
 should probably try wrapping cfg-proto in htons when passing it to
 nla_put_u16.

It worked like a charm :)
Many thanks!
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] help with netifd 802.1ad development

2014-05-11 Thread Gioacchino Mazzurco
Hi all!

I am working on adding 802.1ad vlan support to netifd, it is almost working 
but interfaces are not created anymore since i have added this line that is 
necessary (without this line interfaces are created but they are 802.1q)

https://gitorious.org/netifd/gsoc2014-netifd/source/6c7d308ee9497de5f7ae4463fb1fe98e7b4ae03b:system-linux.c#L845

cfg-proto contains ethertype of 802.1ad or ethertype of 802.1q

many thanks for help!
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] help with netifd 802.1ad development

2014-05-11 Thread Steven Barth

Hi Gioacchino,

it seems the kernel expects a big-endian value as vlan protocol, so you 
should probably try wrapping cfg-proto in htons when passing it to 
nla_put_u16.



Cheers,

Steven
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel