Home | History | Annotate | Download | only in 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;
152 parse_tcp_ports(optarg, tcpinfo->spts);
154 tcpinfo->invflags |= XT_TCP_INV_SRCPT;
163 parse_tcp_ports(optarg, tcpinfo->dpts);
165 tcpinfo->invflags |= XT_TCP_INV_DSTPT;
174 parse_tcp_flags(tcpinfo, "SYN,RST,ACK,FIN", "SYN", invert);
190 parse_tcp_flags(tcpinfo, optarg, argv[optind],
201 parse_tcp_option(optarg, &tcpinfo->option);
203 tcpinfo->invflags |= XT_TCP_INV_OPTION;
323 const struct xt_tcp *tcpinfo = (struct xt_tcp *)match->data;
325 if (tcpinfo->spts[0] != 0
326 || tcpinfo->spts[1] != 0xFFFF) {
327 if (tcpinfo->invflags & XT_TCP_INV_SRCPT)
329 if (tcpinfo->spts[0]
330 != tcpinfo->spts[1])
332 tcpinfo->spts[0],
333 tcpinfo->spts[1]);
336 tcpinfo->spts[0]);
339 if (tcpinfo->dpts[0] != 0
340 || tcpinfo->dpts[1] != 0xFFFF) {
341 if (tcpinfo->invflags & XT_TCP_INV_DSTPT)
343 if (tcpinfo->dpts[0]
344 != tcpinfo->dpts[1])
346 tcpinfo->dpts[0],
347 tcpinfo->dpts[1]);
350 tcpinfo->dpts[0]);
353 if (tcpinfo->option
354 || (tcpinfo->invflags & XT_TCP_INV_OPTION)) {
355 if (tcpinfo->invflags & XT_TCP_INV_OPTION)
357 printf(" --tcp-option %u", tcpinfo->option);
360 if (tcpinfo->flg_mask
361 || (tcpinfo->invflags & XT_TCP_INV_FLAGS)) {
362 if (tcpinfo->invflags & XT_TCP_INV_FLAGS)
365 if (tcpinfo->flg_mask != 0xFF) {
366 print_tcpf(tcpinfo->flg_mask);
369 print_tcpf(tcpinfo->flg_cmp);