User: Password:
Subscribe / Log in / New account

Has anyone got recvmmsg to work

Has anyone got recvmmsg to work

Posted Mar 8, 2010 17:47 UTC (Mon) by 4utomat (guest, #61249)
In reply to: In brief by butlerm
Parent article: In brief

Has anyone got recvmmsg to work?
On 2.6.33, the example above fails with errno=14 (Bad Address)

(Log in to post comments)

Has anyone got recvmmsg to work

Posted Mar 21, 2012 23:29 UTC (Wed) by gutschke (subscriber, #27910) [Link]

Looking at the kernel sources, it appears that the final version of this system call includes a timeout parameter. If you don't pass this parameter, chances are that it gets set to a random value pointing to invalid memory. That probably explains why you get an EFAULT no matter what you pass in the other parameters.

If you don't want to specify a timeout, just pass NULL as an additional parameter. That should fix your program.

Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds