From owner-freebsd-questions@FreeBSD.ORG Wed May 31 11:43:45 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4F91C16A42C for ; Wed, 31 May 2006 11:43:45 +0000 (UTC) (envelope-from stapleton.41@gmail.com) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id D3A9B43D48 for ; Wed, 31 May 2006 11:43:44 +0000 (GMT) (envelope-from stapleton.41@gmail.com) Received: by nz-out-0102.google.com with SMTP id 16so10071nzp for ; Wed, 31 May 2006 04:43:44 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=unZQKp93+dCaA3vdI5I7I6IRTZJuvVCYB3tMMiwqXXWCaL9v3opsjbjb8piXHEcpQhkSXOUmBTeUedgfqtQprFz8s2qkOufcDOC8msFlzW8mGo2onVhqxDaR8w8RnO2BRTip2mL8OIaGkJU96gEdyimng3woo2cQchznGSAF9V8= Received: by 10.36.250.35 with SMTP id x35mr84757nzh; Wed, 31 May 2006 04:43:44 -0700 (PDT) Received: by 10.36.224.79 with HTTP; Wed, 31 May 2006 04:43:44 -0700 (PDT) Message-ID: <80f4f2b20605310443l2889c7a8nb4b8162ae283b893@mail.gmail.com> Date: Wed, 31 May 2006 07:43:44 -0400 From: "Jim Stapleton" To: freebsd-questions@freebsd.org In-Reply-To: <20060531030351.39871.qmail@web53804.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20060531030351.39871.qmail@web53804.mail.yahoo.com> Subject: Re: How to get MAC address using C program X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 May 2006 11:43:45 -0000 Could you exec() ifconfig? On 5/30/06, girish girishlc wrote: > Pls any body tell me how to find out a MAC address in a program, > > > Because I want to generate pseudo random number of IP address of some range for that MAC address and IP range will be the input and it should give IP address according to MAC address as a seed , but if I use difft MAC address (i,e for difft host ) it should give difft IP address, > > > But if I give first MAC address it should give the same old IP address, > > > So pls send me answer as soon as possible code in C and also if possible ALGORITHMS pls its very urgent > > > Thank you, > Regards > Girish.L.C > lc_girish@yahoo.com > > > --------------------------------- > Do you Yahoo!? > Get on board. You're invited to try the new Yahoo! Mail Beta. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >