Skip to main content

macaddr_in

Function macaddr_in 

Source
pub fn macaddr_in(s: &str) -> Result<u64, TypeError>
Expand description

macaddr_in: six numbers in hex with one of the formats of sscanf in mac.c, such as 08:00:2b:01:02:03, 08002b-010203 or 0800.2b01.0203.

ยงErrors

22P02 for text in no format, and 22003 for a number that is not in the range 0 to 255.