Lines Matching defs:mac_type
72 static int parse_hex(char *in, unsigned char *out, int maxlen, int *mac_type)
77 if (mac_type)
78 *mac_type = 0;
88 if (*r == '-' && i == 0 && mac_type)
91 *mac_type = strtol(in, NULL, 16);
92 mac_type = NULL;
109 int mac_type;
143 packet.hlen = parse_hex(argv[3], packet.chaddr, DHCP_CHADDR_MAX, &mac_type);
144 if (mac_type == 0)
147 packet.htype = mac_type;