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

Reply via email to