From owner-freebsd-audit Sun May 20 15:15:40 2001 Delivered-To: freebsd-audit@freebsd.org Received: from mailb.telia.com (mailb.telia.com [194.22.194.6]) by hub.freebsd.org (Postfix) with ESMTP id EF63337B422 for ; Sun, 20 May 2001 15:15:35 -0700 (PDT) (envelope-from watchman@ludd.luth.se) Received: from d1o907.telia.com (d1o907.telia.com [195.252.38.241]) by mailb.telia.com (8.9.3/8.9.3) with ESMTP id AAA06516 for ; Mon, 21 May 2001 00:15:34 +0200 (CEST) Received: from ludd.luth.se (h55n1fls21o907.telia.com [212.181.140.55]) by d1o907.telia.com (8.8.8/8.8.8) with ESMTP id AAA10645 for ; Mon, 21 May 2001 00:15:33 +0200 (CEST) Message-ID: <3B0841FB.188D5933@ludd.luth.se> Date: Mon, 21 May 2001 00:15:23 +0200 From: Joachim =?iso-8859-1?Q?Str=F6mbergson?= Organization: Acne X-Mailer: Mozilla 4.76 [en] (X11; U; FreeBSD 4.3-STABLE i386) X-Accept-Language: en-US MIME-Version: 1.0 To: FreeBSD-Audit Subject: Patch to add nic-se to whois Content-Type: multipart/mixed; boundary="------------E55DE6CBF8C63374DF5E313E" Sender: owner-freebsd-audit@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG This is a multi-part message in MIME format. --------------E55DE6CBF8C63374DF5E313E Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Aloha! Trying my hands at contributing and hacking FreeBSD again. This is an adaption of a patch from OpenBSD that adds nic-se as one of the databases whois knows about. Could someone look at the patch and see if it's an ok patch? Also is this something we should add to the system? Thanks! -- Med vänlig hälsning, Cheers! Joachim Strömbergson ============================================================================ Joachim Strömbergson - ASIC designer, nice to *cute* animals. snail: phone: mail & web: Sävenäsgatan 5A +46 31 - 27 98 47 watchman@ludd.luth.se 416 72 Göteborg +46 733 75 97 02 www.ludd.luth.se/~watchman ============================================================================ --------------E55DE6CBF8C63374DF5E313E Content-Type: text/plain; charset=us-ascii; name="whois_patch.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="whois_patch.diff" --- whois.c.old Sun May 20 22:44:19 2001 +++ whois.c Mon May 21 00:04:43 2001 @@ -67,6 +67,7 @@ #define RUNICHOST "whois.ripn.net" #define MNICHOST "whois.ra.net" #define QNICHOST_TAIL ".whois-servers.net" +#define SENICHOST "whois.nic-se.se" #define SNICHOST "whois.6bone.net" #define WHOIS_PORT 43 @@ -96,7 +97,7 @@ qnichost = NULL; flags = 0; use_qnichost = 0; - while ((ch = getopt(argc, argv, "adgh:impQrR6")) != -1) { + while ((ch = getopt(argc, argv, "adghsi:mpQrR6")) != -1) { switch((char)ch) { case 'a': host = ANICHOST; @@ -128,6 +129,9 @@ case 'R': host = RUNICHOST; break; + case 's': + host = SENICHOST; + break; case '6': host = SNICHOST; break; @@ -292,6 +296,6 @@ usage() { (void)fprintf(stderr, - "usage: whois [-adgimpQrR6] [-h hostname] name ...\n"); + "usage: whois [-adgsimpQrR6] [-h hostname] name ...\n"); exit(EX_USAGE); } --------------E55DE6CBF8C63374DF5E313E-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message