hwaddr_len


Description:


public size_t hwaddr_len (int type)

Returns the length in octets of a hardware address of type type.

Before 1.28, it was an error to call this function with any value other than <literal>ARPHRD_ETHER</literal> or <literal> ARPHRD_INFINIBAND</literal>.

Parameters:

type

the type of address; either <literal>ARPHRD_ETHER</literal> or <literal>ARPHRD_INFINIBAND</literal>

Returns:

the length or zero if the type is unrecognized.


Namespace: NM.Utils
Package: libnm