Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Feb 1998 17:48:34 +0500
From:      Konstantin Chuguev <joy@urc.ac.ru>
To:        Mike Smith <mike@smith.net.au>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: Some problems with raw IP programming
Message-ID:  <34EC2A22.F542F2E6@urc.ac.ru>
References:  <199802190045.QAA05105@dingo.cdrom.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?34EC2A22.F542F2E6>