[ovs-dev] [PATCH] Add VLAN splinters unit test.

Ben Pfaff blp at nicira.com
Mon Jun 24 19:22:16 UTC 2013


On Mon, Jun 24, 2013 at 10:40:11AM -0700, Alex Wang wrote:
> I saw the AF_INET is used when creating the socket (to be used in
> "ioctl(sock, SIOCSIFVLAN, via)"). Seems to me that we cannot use netlink
> socket here, right? And, generally speaking, is that true that we can only
> use AF_INET, to talk to any network device driver in kernel?

It looks to me, from kernel source, that any socket, regardless of its
protocol, works with this ioctl.  I think that I use an AF_INET socket
here because one is readily available.



More information about the dev mailing list