From owner-freebsd-net Fri Jan 11 16:47:56 2002 Delivered-To: freebsd-net@freebsd.org Received: from ns.chatpr.org (ns.chatpr.org [200.50.26.254]) by hub.freebsd.org (Postfix) with SMTP id 4062A37B419 for ; Fri, 11 Jan 2002 16:47:51 -0800 (PST) Received: (qmail 98956 invoked by uid 1000); 12 Jan 2002 00:49:35 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 12 Jan 2002 00:49:35 -0000 Date: Fri, 11 Jan 2002 20:49:35 -0400 (AST) From: Abel Alejandro To: freebsd-net@freebsd.org Cc: elec@chatpr.org Subject: Problems with inet_ntop Message-ID: <20020111204406.N98793-100000@www.chatpr.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hello, a while ago I come with a kqueue example for FreeBSD. The source is at: http://www.monkeys.com/freeware/kqueue-echo.c The problem is after getting used to the code, i wanted to know the IP of the incoming connections, so I used inet_ntop for this. My problem is that on the very first connection kqueue-echo receives, inet_ntop prints a bad address, however after this first connection it starts printing the ip address correctly. The source for the tweaked kqueue-echo.c is at: http://core.friendspr.com/~elec/kqueue-echo.c Thank you, please CC to me since i am not subscribed. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message