From owner-freebsd-hackers Thu Feb 26 18:54:13 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA03019 for freebsd-hackers-outgoing; Thu, 26 Feb 1998 18:54:13 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA02996 for ; Thu, 26 Feb 1998 18:54:04 -0800 (PST) (envelope-from ambrisko@whistle.com) Received: (from daemon@localhost) by alpo.whistle.com (8.8.5/8.8.5) id SAA20440; Thu, 26 Feb 1998 18:52:35 -0800 (PST) Received: from UNKNOWN(), claiming to be "crab.whistle.com" via SMTP by alpo.whistle.com, id smtpd020436; Thu Feb 26 18:52:29 1998 Received: (from ambrisko@localhost) by crab.whistle.com (8.8.8/8.6.12) id SAA20060; Thu, 26 Feb 1998 18:49:42 -0800 (PST) From: Doug Ambrisko Message-Id: <199802270249.SAA20060@crab.whistle.com> Subject: Re: a chicken-egg problem with bootp and nfs_mountroot In-Reply-To: <19980226183143.51935@hydrogen.nike.efn.org> from John-Mark Gurney at "Feb 26, 98 06:31:43 pm" To: gurney_j@resnet.uoregon.edu Date: Thu, 26 Feb 1998 18:49:41 -0800 (PST) Cc: ambrisko@whistle.com, hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL29 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG John-Mark Gurney writes: | Doug Ambrisko scribbled this message on Feb 26: | > BTW anyone know how to pass a string in via a #define in config? | | in your config file: | options "DEFINENAME=string value" | | should do it... Don't think so for example: options "BOOTP_WIRED_TO=fxp0" Then in a c-snippet: strcmp(string,BOOTP_WIRED_TO) Will change into strcmp(string,fxp0) which will fail to compile want strcmp(string,"fxp0") so for now I stick in a #define BOOTP_WIRED_TO "fxp0" in the code. I need the quotes passed through or made to happen someway. Doug A. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message