• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/src/router/iptables-1.4.12/src/extensions/

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;
318 const struct xt_tcp *tcpinfo = (struct xt_tcp *)match->data;
320 if (tcpinfo->spts[0] != 0
321 || tcpinfo->spts[1] != 0xFFFF) {
322 if (tcpinfo->invflags & XT_TCP_INV_SRCPT)
324 if (tcpinfo->spts[0]
325 != tcpinfo->spts[1])
327 tcpinfo->spts[0],
328 tcpinfo->spts[1]);
331 tcpinfo->spts[0]);
334 if (tcpinfo->dpts[0] != 0
335 || tcpinfo->dpts[1] != 0xFFFF) {
336 if (tcpinfo->invflags & XT_TCP_INV_DSTPT)
338 if (tcpinfo->dpts[0]
339 != tcpinfo->dpts[1])
341 tcpinfo->dpts[0],
342 tcpinfo->dpts[1]);
345 tcpinfo->dpts[0]);
348 if (tcpinfo->option
349 || (tcpinfo->invflags & XT_TCP_INV_OPTION)) {
350 if (tcpinfo->invflags & XT_TCP_INV_OPTION)
352 printf(" --tcp-option %u", tcpinfo->option);
355 if (tcpinfo->flg_mask
356 || (tcpinfo->invflags & XT_TCP_INV_FLAGS)) {
357 if (tcpinfo->invflags & XT_TCP_INV_FLAGS)
360 print_tcpf(tcpinfo->flg_mask);
362 print_tcpf(tcpinfo->flg_cmp);