Hi Holger,

> this error check is not complete. sendmsg returns the number of bytes sent.

Whoops!

> Do you have time to extend this check?

Sure.  I've fixed this in the attached v2 of the patch.  It was tested by 
running the following to make sure that code path was reached and passed (which 
was also verified with a temporary printf):

./sgsnemu --contexts=4 -l 127.0.0.1 -r 127.0.0.2 -d --createif  --net 0.0.0.0

Kind Regards,

Mike

Attachment: Check-and-fix-tun-setup-error-paths-v2.patch
Description: Check-and-fix-tun-setup-error-paths-v2.patch

Reply via email to