4 Convert an ASCII string with an ethernet address into a struct ether_addr.
6 Created: Nov 17, 1992 by Philip Homburg
11 #include <net/netlib.h>
12 #include <net/gen/ether.h>
13 #include <net/gen/if_ether.h>
15 struct ether_addr
*ether_aton(s
)
18 static struct ether_addr ea
;
29 v
= strtol(s
, &check
, 16);
32 if ((i
<5 && check
[0] != ':') || (i
== 5 && check
[0] != '\0'))
41 * $PchId: ethera2n.c,v 1.3 1996/02/22 21:10:01 philip Exp $