Lines Matching full:hex
13 * that contain space chars, and hex strings that
15 * strings in hex mode if any non-printable char
52 "[!] --hex-string string Match a hex string in a packet\n"); in string_help()
65 {.name = "hex-string", .id = O_HEX_STRING, .type = XTTYPE_STRING,
112 "Cannot include literals in hex data"); in parse_hex_string()
139 "Odd number of hex digits"); in parse_hex_string()
143 xtables_error(PARAMETER_PROBLEM, "Invalid hex block"); in parse_hex_string()
145 if (! isxdigit(s[i])) /* check for valid hex char */ in parse_hex_string()
146 xtables_error(PARAMETER_PROBLEM, "Invalid hex char '%c'", s[i]); in parse_hex_string()
147 if (! isxdigit(s[i+1])) /* check for valid hex char */ in parse_hex_string()
148 xtables_error(PARAMETER_PROBLEM, "Invalid hex char '%c'", s[i+1]); in parse_hex_string()
154 "Invalid hex char `%c'", s[i]); in parse_hex_string()
157 i += 3; /* spaces included in the hex block */ in parse_hex_string()
160 } else { /* the char is not part of hex data, so just copy */ in parse_hex_string()
209 "`--hex-string'"); in string_check()
220 /* use hex output if the last char is a "\" */ in is_hex_string()
226 /* Print string with "|" chars included as one would pass to --hex-string */
231 /* start hex block */ in print_hex_string()
235 /* close hex block */ in print_hex_string()
286 printf("%s --hex-string", (invert) ? " !" : ""); in string_save()