Author: Jan Echternach <echter@xxxxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 15 Aug 2000 17:52:25 +0200
[Cc'ed to netdev] But why? IMHO, NLMSG_* just add an uneccessary wrapper for messages that can't ever have multiple parts. I don't see it as a clean interface in this case. And are netlink(3) and net
It is strongly recommended to use the NLMSG_* macros to avoid alignment problems on other architectures than i386. They are accurate as far as I know (but missing some stuff) Yes. -Andi -- This is li
Author: Jan Echternach <echter@xxxxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 15 Aug 2000 18:25:12 +0200
But there are absolutely no alignement problems with single-part messages. Actually, there are even fewer alignment problems without NLMSG_* in this case because you don't need to use malloc() to all
Author: Jan Echternach <echter@xxxxxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 16 Aug 2000 12:22:31 +0200
I'm sorry that I didn't represent the issue clearly. I understand that user space code should also use NLMSG_* if the kernel uses it. Ipchains in Linux-2.2 uses a simple structure without padding on
nlmsghdr has other uses than just handling multipart messages. For examples it gives you a sequence number so that you can try to detect lost packets and a way to request acks. netlink sockets requir
Author: Jan Echternach <echter@xxxxxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 16 Aug 2000 12:57:38 +0200
NETLINK_NFLOG packets originate in the kernel. Packet loss is signaled by ENOBUFS, and resending of packets is impossible unless the kernel is willing to eat huge amounts of memory before finally sto
Author: Jan Echternach <echter@xxxxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 15 Aug 2000 17:52:25 +0200
[Cc'ed to netdev] But why? IMHO, NLMSG_* just add an uneccessary wrapper for messages that can't ever have multiple parts. I don't see it as a clean interface in this case. And are netlink(3) and net
It is strongly recommended to use the NLMSG_* macros to avoid alignment problems on other architectures than i386. They are accurate as far as I know (but missing some stuff) Yes. -Andi -- This is li
Author: Jan Echternach <echter@xxxxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 15 Aug 2000 18:25:12 +0200
But there are absolutely no alignement problems with single-part messages. Actually, there are even fewer alignment problems without NLMSG_* in this case because you don't need to use malloc() to all
Author: Jan Echternach <echter@xxxxxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 16 Aug 2000 12:22:31 +0200
I'm sorry that I didn't represent the issue clearly. I understand that user space code should also use NLMSG_* if the kernel uses it. Ipchains in Linux-2.2 uses a simple structure without padding on
nlmsghdr has other uses than just handling multipart messages. For examples it gives you a sequence number so that you can try to detect lost packets and a way to request acks. netlink sockets requir
Author: Jan Echternach <echter@xxxxxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 16 Aug 2000 12:57:38 +0200
NETLINK_NFLOG packets originate in the kernel. Packet loss is signaled by ENOBUFS, and resending of packets is impossible unless the kernel is willing to eat huge amounts of memory before finally sto