Lines Matching refs:hex
198 static u_int hexdigit(netdissect_options *ndo, char hex) in hexdigit() argument
200 if (hex >= '0' && hex <= '9') in hexdigit()
201 return (hex - '0'); in hexdigit()
202 else if (hex >= 'A' && hex <= 'F') in hexdigit()
203 return (hex - 'A' + 10); in hexdigit()
204 else if (hex >= 'a' && hex <= 'f') in hexdigit()
205 return (hex - 'a' + 10); in hexdigit()
207 (*ndo->ndo_error)(ndo, "invalid hex digit %c in espsecret\n", hex); in hexdigit()
226 char *hex) in espprint_decode_hex() argument
231 len = strlen(hex) / 2; in espprint_decode_hex()
239 while (hex[0] != '\0' && hex[1]!='\0') { in espprint_decode_hex()
240 binbuf[i] = hex2byte(ndo, hex); in espprint_decode_hex()
241 hex += 2; in espprint_decode_hex()