NetBSD Problem Report #30405

From www@netbsd.org  Thu Jun  2 14:12:22 2005
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
	id 3DF4863B104; Thu,  2 Jun 2005 14:12:22 +0000 (UTC)
Message-Id: <20050602141222.3DF4863B104@narn.netbsd.org>
Date: Thu,  2 Jun 2005 14:12:22 +0000 (UTC)
From: lordjebus@gmail.com
Reply-To: lordjebus@gmail.com
To: gnats-bugs@netbsd.org
Subject: can't make network connect with date set before 1970
X-Send-Pr-Version: www-1.0

>Number:         30405
>Category:       port-cobalt
>Synopsis:       can't make network connect with date set before 1970
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    port-cobalt-maintainer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jun 02 14:13:00 +0000 2005
>Closed-Date:    Sun Oct 08 08:06:20 +0000 2006
>Last-Modified:  Sun Oct 08 08:06:20 +0000 2006
>Originator:     Joe Pribele
>Release:        1.6.1
>Organization:
>Environment:
NetBSD codemonkey 1.6.1 NetBSD 1.6.1 (GENERIC) #0: Thu Jun 26 22:22:53 CEST 2003     cdi@merlin.camelot.net:/misc/home/cdi/src/netbsd/1.6.1/src/sys/arch/cobalt/compile/GENERIC cobalt
>Description:
if you have a date set before 1970 you can't make any network connects to anything. You can still connect to the box and make dns lookups. However you can't even ping 127.0.0.1 it sends no packets
>How-To-Repeat:
set the date to anything before 1970
>Fix:
change the date to any after 1969

>Release-Note:

>Audit-Trail:
From: Manuel Bouyer <bouyer@antioche.eu.org>
To: gnats-bugs@NetBSD.org
Cc: port-cobalt-maintainer@NetBSD.org, gnats-admin@NetBSD.org,
	netbsd-bugs@NetBSD.org
Subject: Re: port-cobalt/30405: can't make network connect with date set before 1970
Date: Thu, 2 Jun 2005 21:05:18 +0200

 On Thu, Jun 02, 2005 at 02:13:00PM +0000, lordjebus@gmail.com wrote:
 > >Number:         30405
 > >Category:       port-cobalt
 > >Synopsis:       can't make network connect with date set before 1970
 > >Confidential:   no
 > >Severity:       non-critical
 > >Priority:       low
 > >Responsible:    port-cobalt-maintainer
 > >State:          open
 > >Class:          sw-bug
 > >Submitter-Id:   net
 > >Arrival-Date:   Thu Jun 02 14:13:00 +0000 2005
 > >Originator:     Joe Pribele
 > >Release:        1.6.1
 > >Organization:
 > >Environment:
 > NetBSD codemonkey 1.6.1 NetBSD 1.6.1 (GENERIC) #0: Thu Jun 26 22:22:53 CEST 2003     cdi@merlin.camelot.net:/misc/home/cdi/src/netbsd/1.6.1/src/sys/arch/cobalt/compile/GENERIC cobalt
 > >Description:
 > if you have a date set before 1970 you can't make any network connects to anything. You can still connect to the box and make dns lookups. However you can't even ping 127.0.0.1 it sends no packets

 I ran into this. It's not an issue with the networking stack, but with ping
 (or, rather, a time-related function in ping). 
 It's probably safe to say that running with a date before 1970 isn't supported
 (and the system should reset the date to Jan, 1 1970 if it finds such a
 date at boot).

 -- 
 Manuel Bouyer <bouyer@antioche.eu.org>
      NetBSD: 26 ans d'experience feront toujours la difference
 --

From: Erik Berls <cyber@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: netbsd-bugs@netbsd.org
Subject: Re: port-cobalt/30405: can't make network connect with date set before 1970
Date: Sun, 8 Oct 2006 08:01:58 +0000

 As of September, 2006, port-cobalt (and just about everybody else)
 was converted to use the new TODR code.  This code has sanity checks
 on initialization to ensure that the time of day is reasonable on
 boot.  Currently it checks for:

 Filesystem time > 5 * SECYR
 Realtime clock > 25 * SECYR

 The code ensures that the date is beyond 1970, which should allow
 ping to function.  Note that many other programs may fail on negative
 date values along with ping, this also helps them.

State-Changed-From-To: open->closed
State-Changed-By: cyber@netbsd.org
State-Changed-When: Sun, 08 Oct 2006 08:06:20 +0000
State-Changed-Why:
Introduction of new MI mechanism fixes the issue.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.