etherAton

fnubyte * etherAton(string s)

Converts an ASCII Ethernet address to its numeric form.

Note

The returned pointer is owned by libpcap's internal state.

Callers must copy the data if it needs to survive across other libpcap calls.

Parameters

sThe ASCII Ethernet address (e.g. "00:11:22:33:44:55").

Returns

A pointer to a 6-byte Ethernet address, or null on error.