Home | History | Annotate | Download | only in tcpdump

Lines Matching refs:hex

103 static u_int hexdigit(netdissect_options *ndo, char hex)
105 if (hex >= '0' && hex <= '9')
106 return (hex - '0');
107 else if (hex >= 'A' && hex <= 'F')
108 return (hex - 'A' + 10);
109 else if (hex >= 'a' && hex <= 'f')
110 return (hex - 'a' + 10);
112 (*ndo->ndo_error)(ndo, "invalid hex digit %c in espsecret\n", hex);
267 /* decode some hex! */