Lines Matching defs:tcpinfo

105 parse_tcp_flags(struct xt_tcp *tcpinfo,
110 tcpinfo->flg_mask = parse_tcp_flag(mask);
111 tcpinfo->flg_cmp = parse_tcp_flag(cmp);
114 tcpinfo->invflags |= XT_TCP_INV_FLAGS;
130 struct xt_tcp *tcpinfo = (struct xt_tcp *)m->data;
132 tcpinfo->spts[1] = tcpinfo->dpts[1] = 0xFFFF;
144 struct xt_tcp *tcpinfo = (struct xt_tcp *)(*match)->data;
151 parse_tcp_ports(optarg, tcpinfo->spts);
153 tcpinfo->invflags |= XT_TCP_INV_SRCPT;
161 parse_tcp_ports(optarg, tcpinfo->dpts);
163 tcpinfo->invflags |= XT_TCP_INV_DSTPT;
172 parse_tcp_flags(tcpinfo, "SYN,RST,ACK,FIN", "SYN", invert);
186 parse_tcp_flags(tcpinfo, optarg, argv[optind],
196 parse_tcp_option(optarg, &tcpinfo->option);
198 tcpinfo->invflags |= XT_TCP_INV_OPTION;
317 const struct xt_tcp *tcpinfo = (struct xt_tcp *)match->data;
319 if (tcpinfo->spts[0] != 0
320 || tcpinfo->spts[1] != 0xFFFF) {
321 if (tcpinfo->invflags & XT_TCP_INV_SRCPT)
323 if (tcpinfo->spts[0]
324 != tcpinfo->spts[1])
326 tcpinfo->spts[0],
327 tcpinfo->spts[1]);
330 tcpinfo->spts[0]);
333 if (tcpinfo->dpts[0] != 0
334 || tcpinfo->dpts[1] != 0xFFFF) {
335 if (tcpinfo->invflags & XT_TCP_INV_DSTPT)
337 if (tcpinfo->dpts[0]
338 != tcpinfo->dpts[1])
340 tcpinfo->dpts[0],
341 tcpinfo->dpts[1]);
344 tcpinfo->dpts[0]);
347 if (tcpinfo->option
348 || (tcpinfo->invflags & XT_TCP_INV_OPTION)) {
349 if (tcpinfo->invflags & XT_TCP_INV_OPTION)
351 printf(" --tcp-option %u", tcpinfo->option);
354 if (tcpinfo->flg_mask
355 || (tcpinfo->invflags & XT_TCP_INV_FLAGS)) {
356 if (tcpinfo->invflags & XT_TCP_INV_FLAGS)
359 print_tcpf(tcpinfo->flg_mask);
361 print_tcpf(tcpinfo->flg_cmp);