Lines Matching refs:tcpinfo
105 parse_tcp_flags(struct xt_tcp *tcpinfo, in parse_tcp_flags() argument
110 tcpinfo->flg_mask = parse_tcp_flag(mask); in parse_tcp_flags()
111 tcpinfo->flg_cmp = parse_tcp_flag(cmp); in parse_tcp_flags()
114 tcpinfo->invflags |= XT_TCP_INV_FLAGS; in parse_tcp_flags()
130 struct xt_tcp *tcpinfo = (struct xt_tcp *)m->data; in tcp_init() local
132 tcpinfo->spts[1] = tcpinfo->dpts[1] = 0xFFFF; in tcp_init()
144 struct xt_tcp *tcpinfo = (struct xt_tcp *)(*match)->data; in tcp_parse() local
152 parse_tcp_ports(optarg, tcpinfo->spts); in tcp_parse()
154 tcpinfo->invflags |= XT_TCP_INV_SRCPT; in tcp_parse()
163 parse_tcp_ports(optarg, tcpinfo->dpts); in tcp_parse()
165 tcpinfo->invflags |= XT_TCP_INV_DSTPT; in tcp_parse()
174 parse_tcp_flags(tcpinfo, "SYN,RST,ACK,FIN", "SYN", invert); in tcp_parse()
190 parse_tcp_flags(tcpinfo, optarg, argv[optind], in tcp_parse()
201 parse_tcp_option(optarg, &tcpinfo->option); in tcp_parse()
203 tcpinfo->invflags |= XT_TCP_INV_OPTION; in tcp_parse()
323 const struct xt_tcp *tcpinfo = (struct xt_tcp *)match->data; in tcp_save() local
325 if (tcpinfo->spts[0] != 0 in tcp_save()
326 || tcpinfo->spts[1] != 0xFFFF) { in tcp_save()
327 if (tcpinfo->invflags & XT_TCP_INV_SRCPT) in tcp_save()
329 if (tcpinfo->spts[0] in tcp_save()
330 != tcpinfo->spts[1]) in tcp_save()
332 tcpinfo->spts[0], in tcp_save()
333 tcpinfo->spts[1]); in tcp_save()
336 tcpinfo->spts[0]); in tcp_save()
339 if (tcpinfo->dpts[0] != 0 in tcp_save()
340 || tcpinfo->dpts[1] != 0xFFFF) { in tcp_save()
341 if (tcpinfo->invflags & XT_TCP_INV_DSTPT) in tcp_save()
343 if (tcpinfo->dpts[0] in tcp_save()
344 != tcpinfo->dpts[1]) in tcp_save()
346 tcpinfo->dpts[0], in tcp_save()
347 tcpinfo->dpts[1]); in tcp_save()
350 tcpinfo->dpts[0]); in tcp_save()
353 if (tcpinfo->option in tcp_save()
354 || (tcpinfo->invflags & XT_TCP_INV_OPTION)) { in tcp_save()
355 if (tcpinfo->invflags & XT_TCP_INV_OPTION) in tcp_save()
357 printf(" --tcp-option %u", tcpinfo->option); in tcp_save()
360 if (tcpinfo->flg_mask in tcp_save()
361 || (tcpinfo->invflags & XT_TCP_INV_FLAGS)) { in tcp_save()
362 if (tcpinfo->invflags & XT_TCP_INV_FLAGS) in tcp_save()
365 if (tcpinfo->flg_mask != 0xFF) { in tcp_save()
366 print_tcpf(tcpinfo->flg_mask); in tcp_save()
369 print_tcpf(tcpinfo->flg_cmp); in tcp_save()