From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from minnie.tuhs.org (minnie.tuhs.org [45.79.103.53]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 5bae8d28 for ; Fri, 19 Apr 2019 12:02:45 +0000 (UTC) Received: by minnie.tuhs.org (Postfix, from userid 112) id 831049B485; Fri, 19 Apr 2019 22:02:44 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 8615494EB5; Fri, 19 Apr 2019 22:02:27 +1000 (AEST) Received: by minnie.tuhs.org (Postfix, from userid 112) id 8D85294EB5; Fri, 19 Apr 2019 22:02:25 +1000 (AEST) X-Greylist: delayed 319 seconds by postgrey-1.36 at minnie.tuhs.org; Fri, 19 Apr 2019 22:02:25 AEST Received: from fbo-2.mxes.net (fbo-2.mxes.net [205.237.194.111]) by minnie.tuhs.org (Postfix) with ESMTPS id 2B23F94BFD for ; Fri, 19 Apr 2019 22:02:25 +1000 (AEST) Received: from smtp-out-1.mxes.net (smtp-out-1.mxes.net [205.237.194.119]) by fbi-2.mxes.lan (Postfix) with ESMTP id E8811275A1 for ; Fri, 19 Apr 2019 07:57:06 -0400 (EDT) Received: from Customer-MUA (mua.mxes.net [10.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 366A22754B; Fri, 19 Apr 2019 07:57:05 -0400 (EDT) From: To: "'Lars Brinkhoff'" , References: <7wa7gmk5fj.fsf@junk.nocrew.org> In-Reply-To: <7wa7gmk5fj.fsf@junk.nocrew.org> Date: Fri, 19 Apr 2019 07:57:03 -0400 Message-ID: <444601d4f6a7$01d00b90$057022b0$@ronnatalie.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQFfW38OXjncs0zOKcu9zYkE0IfM0gF2+bgSpyLcxMA= Content-Language: en-us X-Sent-To: X-Sender: ronnatalie.com Subject: Re: [TUHS] looking for HOSTS.TXT parsers and how is /dev/net/HOSTNAME enabled? X-BeenThere: tuhs@minnie.tuhs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: The Unix Heritage Society mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: tuhs@minnie.tuhs.org Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" Amusing thing on parsers. I had written a short C subroutine to eat = HOSTS.TXT directly which we used rather than the Berkeley /etc/hosts = format. It presented the same interface to the caller as the Berkeley one. We found out that when we added a host with a type "68000" that we = suddenly broke every straight BSD system. Apparently, they used a YACC = grammar to parse HOSTS.TXT into /etc/hosts and had screwed it up = assuming the machine type field (like the hostname) had to begin with a = letter. It didn't help that the machine we added was named = "BRL-ZAP." There was some discussion that we had done this = intentionally. I pointed out that a YACC grammar was way overkill and = there must be some existing file on UNIX that has fields separated by = colons that there was simpler stuff written to parse =F0=9F=98=8A = Anyhow, for expedience Jake just added an "MC" on to the machine type to = appease the Berkeley toadies. There was a protocol defined to download the host file which we ran = nighly .