From owner-freebsd-questions@FreeBSD.ORG Wed May 31 03:03:52 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 9F9F616A49A for ; Wed, 31 May 2006 03:03:52 +0000 (UTC) (envelope-from lc_girish@yahoo.com) Received: from web53804.mail.yahoo.com (web53804.mail.yahoo.com [206.190.36.199]) by mx1.FreeBSD.org (Postfix) with SMTP id B62BB43D48 for ; Wed, 31 May 2006 03:03:51 +0000 (GMT) (envelope-from lc_girish@yahoo.com) Received: (qmail 39873 invoked by uid 60001); 31 May 2006 03:03:51 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=VVRQ0PA398SevphTgqt3gxpjHK6irxXTspqLgeLSMi5a8ua6ezSEtMel6SPDC4W/8y9shvfgftE7XxQxmlh7PNoUuHnpTdxgDS36I8cXwSIORZZSUngALRlPIQ5beLWiGyWrAzmR05I+vitr/iSY6t6xKSz4Vx534D4wB9isT5Y= ; Message-ID: <20060531030351.39871.qmail@web53804.mail.yahoo.com> Received: from [203.126.245.198] by web53804.mail.yahoo.com via HTTP; Tue, 30 May 2006 20:03:51 PDT Date: Tue, 30 May 2006 20:03:51 -0700 (PDT) From: girish girishlc To: freebsd-questions@freebsd.org MIME-Version: 1.0 X-Mailman-Approved-At: Wed, 31 May 2006 04:05:04 +0000 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: 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 03:03:53 -0000 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.