How to bundle requests?

Tilman Baumann tilman.baumann at grandeye.com
Fri Oct 28 06:34:42 EDT 2011


On 28/10/11 11:29, Thomas Graf wrote:
> On Wed, Oct 26, 2011 at 05:46:09PM +0100, Tilman Baumann wrote:
>> Is that the same as calling recv() twice on the socket?
>
> You have to continue calling recvmsg() until you receive either an
> error/ack, a complete message without NLM_F_MULTI or a NLMSG_DONE
> message. This sequence has to be repeated for each request sent.
>
> I am not sure if anybody ever used the message bundling feature. There
> may be bugs involved in the kernel. If you use the libnl API for
> receiving, feel free to set the environment variable NLCB=debug and
> send me the output and I will be more likely to help.

Yea, I'm beginning to understand that libnl has some helper functions 
around the socket handling wich are perhaps easier to deal with.
I think I will take the time to rebuild my code to use those instead of 
send() and recv() directly.

Thanks for your help.

-- 
Tilman Baumann
Grandeye Limited
6 Huxley Road, Surrey Research Park
Guildford, GU2 7RE, United Kingdom



More information about the libnl mailing list