Mats Erik Andersson <mats.anders...@gisladisker.se> writes:

> Hello,
>
> in BSD the error returned when the user has insufficient
> privilages to generate a raw socket is EACCES, not EPERM
> as the present coding in
>
>     ping/libping.c  and   ping/ping6.c.
>
> conduct tests for.
>
> In addition, the header file <sys/uio.h> is necessary
> to get access to "struct iovec", which is needed in
> order get a compilable source in "ping/ping6.c"

Reading POSIX, it looks to me as EACCESS is actually the right errno
value, and struct iovec belongs to sys/uio.h, so I have pushed your
patch.

Thanks,
Simon

Reply via email to