Subject: kern/8254: net.inet.tcp.log_refused logs wrong remote IP addr
To: None <gnats-bugs@gnats.netbsd.org>
From: Wolfgang Rupprecht <wolfgang@wsrcc.com>
List: netbsd-bugs
Date: 08/23/1999 07:58:53
>Number:         8254
>Category:       kern
>Synopsis:       net.inet.tcp.log_refused logs wrong remote IP addr
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Aug 23 07:05:01 1999
>Last-Modified:
>Originator:     Wolfgang Rupprecht
>Organization:
W S Rupprecht Computer Consulting, Fremont CA
>Release:        19990818
>Environment:

System: NetBSD capsicum.wsrcc.com 1.4K NetBSD 1.4K (WSRCC) #0: Wed Aug 18 12:04:24 PDT 1999 root@capsicum.wsrcc.com:/v/src/netbsd/NetBSD-current/usr/src/sys/arch/i386/compile/WSRCC i386


>Description:
	net.inet.tcp.log_refused logs wrong remote IP addr
	the local host's address is always duplicated in the feild that 
	should indicate the remote address.

>How-To-Repeat:
	
	from remote host:
	$ telnet 10.174.88.1 4242

	on local host:
	Aug 23 06:49:51 capsicum /netbsd: Connection attempt to TCP
	10.174.88.1:4242 from 10.174.88.1:1568

>Fix:
	WAG: look for two calls to inet_ntoa() in one kprintf/syslog;

>Audit-Trail:
>Unformatted: