static void pkttype_parse(struct xt_option_call *cb) { struct xt_pkttype_info *info = cb->data; xtables_option_parse(cb); parse_pkttype(cb->arg, info); if (cb->invert) info->invert = 1; }
static int pkttype_parse(int c, char **argv, int invert, unsigned int *flags, const void *entry, struct xt_entry_match **match) { struct xt_pkttype_info *info = (struct xt_pkttype_info *)(*match)->data; switch(c) { case '1': xtables_check_inverse(optarg, &invert, &optind, 0, argv); parse_pkttype(optarg, info); if(invert) info->invert=1; *flags=1; break; } return 1; }