Questions on Netlink sockets

Rami Rosen roszenrami at gmail.com
Wed Aug 19 06:28:05 EDT 2015


Hi, Bhaskar,

Thanks for posting the code.

>PS: I am humbled to see a reply from you. I read Chapter 2 from your
>book to understand netlink sockets.

I hope you enjoyed it and find it useful!

>+ My code is not creating VLAN interface as executed by the 'ip link
>...' command.

Can you elaborate a bit about this: which difference do you see between creating
a VLAN with
ip link add name eth2.200  link eth2 type vlan id 200

And running your program (let's call your executable "vlan_nl")
in this way:
./vlan_nl eth1.100 eth1 100



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



More information about the Kernelnewbies mailing list