From owner-freebsd-net@FreeBSD.ORG Tue Mar 5 13:54:56 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 512B3616 for ; Tue, 5 Mar 2013 13:54:56 +0000 (UTC) (envelope-from s.khanchi@gmail.com) Received: from mail-we0-x229.google.com (mail-we0-x229.google.com [IPv6:2a00:1450:400c:c03::229]) by mx1.freebsd.org (Postfix) with ESMTP id D8DB5FD1 for ; Tue, 5 Mar 2013 13:54:55 +0000 (UTC) Received: by mail-we0-f169.google.com with SMTP id t11so6486599wey.28 for ; Tue, 05 Mar 2013 05:54:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:sender:from:date:x-google-sender-auth :message-id:subject:to:content-type; bh=X2eJpBnhlRRhOEaQq7XHdAt0DaO55myJly0uxs/yZgc=; b=trTFzGsxRRuUd0RK+tQ96x+81932bV/C26KtHSRfbmSKDp+/7/nYpnsT8MQwbgPlF8 UUPFfS85Z2+24fSybHu8Z+IpsIGRIpCGb6XebHhFZnwdK6uovh8izfA2MHsD/3cWshVr gOKUMr0oVQbZkuewhvQ62L1UW6KN1i6sUhbI7sS0cqvftG6LjkFvOtVj7Jmn0V09jaUe 84LM6Pv1xex8grIwtZj4GxFJiZ8Wj4mFBzNAzUku4VAyV8gzlCeP97ZOOFjnDz1Ftjxg Qdb9zV66+cWAW6zRJGM04UyjzGhgMFt3h4KZYyZ6sTsDisGh5Rq8dpexPwQzafQAhLVj 0U5A== X-Received: by 10.180.81.164 with SMTP id b4mr18908535wiy.34.1362491689049; Tue, 05 Mar 2013 05:54:49 -0800 (PST) MIME-Version: 1.0 Sender: s.khanchi@gmail.com Received: by 10.194.121.104 with HTTP; Tue, 5 Mar 2013 05:54:29 -0800 (PST) From: h bagade Date: Tue, 5 Mar 2013 17:24:29 +0330 X-Google-Sender-Auth: Qb6d16XEcq-m2MOhHnUmU3zsT30 Message-ID: Subject: how to get mac address info in kernel code? To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Mar 2013 13:54:56 -0000 Hi all, I need to get interface MAC address within the kernel code and I couldn't use "getifaddrs" because it's user-mode. How can I have the MAC address information within kernel code? Any hints or comments are really appreciated.