diff options
Diffstat (limited to 'sys/netinet/tcp_input.c')
-rw-r--r-- | sys/netinet/tcp_input.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index 95ce552..c42d1ad 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -605,17 +605,12 @@ findpcb: } switch (log_in_vain) { case 1: - if (thflags & TH_SYN) - log(LOG_INFO, - "Connection attempt to TCP %s:%d " - "from %s:%d\n", - dbuf, ntohs(th->th_dport), sbuf, - ntohs(th->th_sport)); - break; + if ((thflags & TH_SYN) == 0) + break; case 2: log(LOG_INFO, "Connection attempt to TCP %s:%d " - "from %s:%d flags:0x%x\n", + "from %s:%d flags:0x%02x\n", dbuf, ntohs(th->th_dport), sbuf, ntohs(th->th_sport), thflags); break; |