Date: Mon, 21 May 2001 00:15:23 +0200 From: Joachim =?iso-8859-1?Q?Str=F6mbergson?= <watchman@ludd.luth.se> To: FreeBSD-Audit <audit@FreeBSD.ORG> Subject: Patch to add nic-se to whois Message-ID: <3B0841FB.188D5933@ludd.luth.se>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3B0841FB.188D5933>