hwaddr_len


Description:


public int hwaddr_len (int type)

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

Parameters:

type

the type of address; either ARPHRD_ETHER or ARPHRD_INFINIBAND

Returns:

the positive length, or -1 if the type is unknown/unsupported.


Namespace: NM.Utils
Package: libnm-util