Skip to contentSkip to conversation

Bug in documentation for --syn?

DISCUSSION Steve Snodgrass 2 participants 2 messages Oct 23, 2002 – Oct 30, 2002 netfilter

lore
Share & tools
lore
#0 lore raw

I was looking at the documentation and code for --syn in 1.2.7a (and earlier versions) and the man page appears to be a little confused on this point. It states:

"Only match TCP packets with the SYN bit set and the ACK and FIN bits cleared."

but then goes on to say...

"It is equivalent to --tcp-flags SYN,RST,ACK SYN."

Shouldn't that first part read like this?

"Only match TCP packets with the SYN bit set and the ACK and RST bits cleared."

                                                             ^^^

The code backs this up as well (from libipt_tcp.c):

        case '3':
                if (*flags & TCP_FLAGS)
                        exit_error(PARAMETER_PROBLEM,
                                   "Only one of `--syn' or `--tcp-flags' "
                                   " allowed");
                parse_tcp_flags(tcpinfo, "SYN,RST,ACK", "SYN", invert);

Or am I just missing something here? Thanks!

Signature · 3 lines
Steve Snodgrass * [email protected] * Network and Unix Guru(?) at Large
Geek Code: GCS d? s: a C++ US++++$ P+++ L+ w PS+ 5++ b++ DI+ D++ e++ r+++ y+*
"If you want to be somebody else, change your mind."  -Sister Hazel
#1 lore raw
Quoted 4 lines · Steve Snodgrass

Shouldn't that first part read like this?

"Only match TCP packets with the SYN bit set and the ACK and RST bits cleared." ^^^

yes, at least then everything is in consistency.

Signature · 5 lines
Live long and prosper
- Harald Welte / [email protected]               http://www.gnumonks.org/
============================================================================
"If this were a dictatorship, it'd be a heck of a lot easier, just so long
 as I'm the dictator."  --  George W. Bush Dec 18, 2000