From 38d195389fb123bd58afdbdb839a807fd76a5ded Mon Sep 17 00:00:00 2001 From: cjc Date: Sun, 2 Feb 2003 22:06:56 +0000 Subject: Add the TCP flags to the log message whenever log_in_vain is 1, not just when set to 2. PR: kern/43348 MFC after: 5 days --- sys/netinet/tcp_reass.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'sys/netinet/tcp_reass.c') diff --git a/sys/netinet/tcp_reass.c b/sys/netinet/tcp_reass.c index 95ce552..c42d1ad 100644 --- a/sys/netinet/tcp_reass.c +++ b/sys/netinet/tcp_reass.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; -- cgit v1.1