Lines Matching refs:hex
355 static u_int hexdigit(netdissect_options *ndo, char hex) in hexdigit() argument
357 if (hex >= '0' && hex <= '9') in hexdigit()
358 return (hex - '0'); in hexdigit()
359 else if (hex >= 'A' && hex <= 'F') in hexdigit()
360 return (hex - 'A' + 10); in hexdigit()
361 else if (hex >= 'a' && hex <= 'f') in hexdigit()
362 return (hex - 'a' + 10); in hexdigit()
365 "invalid hex digit %c in espsecret\n", hex); in hexdigit()
382 u_char *binbuf, unsigned int binbuf_len, char *hex) in espprint_decode_hex() argument
387 len = strlen(hex) / 2; in espprint_decode_hex()
395 while (hex[0] != '\0' && hex[1]!='\0') { in espprint_decode_hex()
396 binbuf[i] = hex2byte(ndo, hex); in espprint_decode_hex()
397 hex += 2; in espprint_decode_hex()