Questions on Netlink sockets

Rami Rosen roszenrami at gmail.com
Tue Aug 18 00:18:03 EDT 2015


Hi, Bhaskar,

Indeed the netdev mailing list is too advanced for this.

Do you get any error as a result of sending this netlink message ?
(I mean error in userspace or in kernel; if there is an error message
in the kernel it can be viewed by looking at the end of dmesg output)

Further more, I suggest that you will post the code here. The concept
itself is right, It should work, you either build the netlink message
incorrectly or send it incorrectly, so it seems.

Regards,
Rami Rosen
http://ramirose.wix.com/ramirosen


On 18 August 2015 at 01:55, Bhaskar Upadhyayula <bu.kernel at gmail.com> wrote:
> Hello,
>
> I want to check with the group if this is right mailing list to post
> my question.
>
> Here is what I am doing.
>
> + From a user-space program, mimicking the behavior of creating a VLAN
> interface when we execute the following ip command:
>     $ ip link add name <vlan-intf-name> link <parent-intf-name> type
> vlan id <id>
>
> Example: $ ip link add name dummy.110 link dummy type vlan id 110
>
> + My program open's a netlink socket and sends information to kernel
> (interface names, vlan tags etc). My code more or less follows the
> code in iproute2/ip/iplink.c
>
> + My code is not creating VLAN interface as executed by the 'ip link
> ...' command.
>
> I have a few questions around this and can post my code, if required.
>
> But please let me know if this is right mailing list or should I post
> on netdev list (which I feel is for advanced network questions).
>
> Thx.
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



More information about the Kernelnewbies mailing list