On 11/27/2014 06:48 PM, Ola Liljedahl wrote:
This is simple and should in practice cover all situations. MAC
addresses are not of extremely variable size. In practice, only 48-bit
and 64-bit MAC addresses (EUI - Extended Unique Identifier) are used
AFAIK.

Can linux on ioctl(sockfd, SIOCSIFHWADDR, ..) use both 48 and 64 bit macs?

However I would rather return -1 on error (and use ssize_t as the
return type). As a general convention I think we should use negative
values for error and positive values for success. See e.g. POSIX
read() call.

-- Ola

but size_t is unsigned. so that or it int or it's 0 on error, like Perti wrote.

Maxim.



_______________________________________________
lng-odp mailing list
[email protected]
http://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to