[prev in list] [next in list] [prev in thread] [next in thread]
List: kdevelop
Subject: Re: getting ethernet physical address
From: René_Märten <delta_x () gmx ! net>
Date: 2001-12-19 15:43:14
[Download RAW message or body]
Am Mit, 2001-12-19 um 15.49 schrieb Loh Yong Khun:
> hi there,
>
> i would like to write a simple program to get the physical address of my
> network card. can anybody let me know how to achieve that? which class or
> function should i call? thanks in advance.
>
> YK (Loh Yong Khun)
> <ykloh@lkta.com.my>
>
Hi YK,
if You mean the MAC Addr, I think it is the simplest way to work with
QProcess or KProcess. Start a /sbin/ifconfig <NIC> and grep the Stdout
for "HWaddr":
kcommander:~ # ifconfig | grep HWaddr
eth0 Link encap:Ethernet HWaddr 00:50:BF:93:6D:82
--
:::::| ::| ::| René Märten
::| ::| ::::::::| delta_x@kcommander.org
:::::| ::|::|::| http://www.kcommander.org
::| ::| ::| ::| business: rmaerte1@visteon.com
-
to unsubscribe from this list send an email to kdevelop-request@kdevelop.org with the following body:
unsubscribe »your-email-address«
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic