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