Lines Matching refs:hex
169 static u_int hexdigit(netdissect_options *ndo, char hex)
171 if (hex >= '0' && hex <= '9')
172 return (hex - '0');
173 else if (hex >= 'A' && hex <= 'F')
174 return (hex - 'A' + 10);
175 else if (hex >= 'a' && hex <= 'f')
176 return (hex - 'a' + 10);
178 (*ndo->ndo_error)(ndo, "invalid hex digit %c in espsecret\n", hex);
197 char *hex)
202 len = strlen(hex) / 2;
210 while (hex[0] != '\0' && hex[1]!='\0') {
211 binbuf[i] = hex2byte(ndo, hex);
212 hex += 2;
268 /* decode some hex! */