hwaddr_aton


Description:


public uint8 hwaddr_aton (string asc, int type, void* buffer)

Parses asc and converts it to binary form in buffer.

See hwaddr_atoba if you'd rather have the result in a ByteArray.

See also hwaddr_aton_len, which takes an output length instead of a type.

Parameters:

asc

the ASCII representation of a hardware address

type

the type of address; either ARPHRD_ETHER or ARPHRD_INFINIBAND

buffer

buffer to store the result into

Returns:

buffer, or null if asc couldn't be parsed


Namespace: NM.Utils
Package: libnm-util