From owner-freebsd-hackers Thu Feb 19 04:54:20 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id EAA09807 for freebsd-hackers-outgoing; Thu, 19 Feb 1998 04:54:20 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from newserv.urc.ac.ru (newserv.urc.ac.ru [193.233.85.48]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id EAA09720 for ; Thu, 19 Feb 1998 04:53:41 -0800 (PST) (envelope-from joy@urc.ac.ru) Received: from urc.ac.ru (y.urc.ac.ru [193.233.85.37]) by newserv.urc.ac.ru (8.8.8/8.8.8) with ESMTP id RAA29627; Thu, 19 Feb 1998 17:48:34 +0500 (ES) (envelope-from joy@urc.ac.ru) Message-ID: <34EC2A22.F542F2E6@urc.ac.ru> Date: Thu, 19 Feb 1998 17:48:34 +0500 From: Konstantin Chuguev Organization: South Ural Center of FREEnet X-Mailer: Mozilla 4.04 [en] (X11; I; FreeBSD 3.0-CURRENT i386) MIME-Version: 1.0 To: Mike Smith CC: freebsd-hackers@FreeBSD.ORG Subject: Re: Some problems with raw IP programming References: <199802190045.QAA05105@dingo.cdrom.com> Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Mike Smith wrote: > > ? I wrote a small daemon using tun* devices for IP-in-IP tunnel. > ? --- > ? struct in_addr local_ip, remote_ip ; > ? int raw_ip, tunnel, max_fd ; > ? struct sockaddr_in local_ipaddr, remote_ipaddr ; > ? const int true = 1 ; > ? > ? /* Initialization of local_ip and remote_ip with inet_aton() stripped... */ > > My guess would be that you forgot to bzero() these structures before > you initialised them. > It has helped. Thanks. -- Konstantin V. Chuguev. System administrator of Ural Regional Center of FREEnet, Joy@urc.ac.ru Chelyabinsk, Russia. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message