/* Input an Ethernet address and convert to binary.  */
int iw_ether_aton(const char *orig, struct ether_addr *eth)
/* Input an Ethernet address and convert to binary.  */
int iw_ether_aton(const char *orig, struct ether_addr *eth)
{
  int	maclen;
  maclen = iw_mac_aton(orig, (unsigned char *) eth, ETH_ALEN);
  if((maclen > 0) && (maclen < ETH_ALEN))
    {
      errno = EINVAL;
      maclen = 0;
    }
  return(maclen);
}