Re: Generic Netlink Sockets
From: Hagen Paul Pfeifer
Date: Tue Apr 10 2007 - 09:26:53 EST
On 2007.04.10 NP, Simha (STSD) pressed the following keys:
> I wanted to add a new family under NETLINK_GENERIC.
>I have registered the family and the operations in the kernel code. I
>wonder how I will get to know the family id in the user space.
1) netdev is a better place for thinks like that.
2) If I understand you correctly, you didn't use the generic netlink interface
- you add your own family (after NETLINK_SCSITRANSPORT )!?
If that is true, than you can't utilize an library - you must include
netlink.h in your source code.
On the other side: if you utilize NETLINK_GENERIC, than libnl is your
PS: often the generic netlink interface is a better choice!
"Fragmentation is like classful addressing -- an interesting early
architectural error that shows how much experimentation was going
on while IP was being designed." -- Paul Vixie
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html