Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Jun 1997 03:42:05 -0700 (PDT)
From:      zorac@4000do.co.jp
To:        freebsd-gnats-submit@FreeBSD.ORG
Subject:   bin/3801: 'timed' don't work with option '-n'
Message-ID:  <199706061042.DAA12567@hub.freebsd.org>
Resent-Message-ID: <199706061050.DAA12810@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         3801
>Category:       bin
>Synopsis:       'timed' don't work with option '-n'
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun  6 03:50:00 PDT 1997
>Last-Modified:
>Originator:     Hiroya Tsubakimoto
>Organization:
4000Do Co.,LTD.
>Release:        2.1-STABLE
>Environment:
FreeBSD s2.dev.4000do.co.jp 2.1-STABLE FreeBSD 2.1-STABLE #0: Tue May 20 07:16:48 JST 1997     zorac
@s2.c4000do.co.kyoto-inet.or.jp:/usr/src/sys/compile/HOME  i386
>Description:
The 'timed' daemon don't work with option '-n' or '-i'.
network argument (in /etc/networks) was not accepted.

>How-To-Repeat:
# timed -n mynet         <--- 'mynet' is network name in /etc/networks
timed: unknown net mynet

>Fix:
following patch:
*** timed.c     Fri Jun  6 17:56:05 1997
--- timed.c.patch       Thu Jun  5 12:17:30 1997
***************
*** 452,458 ****
                ntp->dest_addr.sin_port = port;

                for (nt = nets; nt; nt = nt->next) {
!                       if (ntp->net.s_addr == nt->net)
                                break;
                }
                if (nflag && !nt || iflag && nt)
--- 452,458 ----
                ntp->dest_addr.sin_port = port;

                for (nt = nets; nt; nt = nt->next) {
!                       if (ntohl(ntp->net.s_addr) == nt->net)
                                break;
                }
                if (nflag && !nt || iflag && nt)

>Audit-Trail:
>Unformatted:



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