Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 08-01-2015, 11:10 PM   #1
Registered: Mar 2008
Distribution: Ubuntu
Posts: 270

Rep: Reputation: 33
distinguish wired NIC or wireless NIC in C language

for a given ethernet NIC hardware address, is there a way I can distinguish if it is wired or wireless ?
I can't distinguish basing on name as name can be custom assigned.
Old 08-02-2015, 02:53 AM   #2
LQ Guru
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,870

Rep: Reputation: 1152Reputation: 1152Reputation: 1152Reputation: 1152Reputation: 1152Reputation: 1152Reputation: 1152Reputation: 1152Reputation: 1152
There are numerous approaches/answers online if you care to search. I'm not a programmer, but here's some C code which should do the job...


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Distinguish keystrokes from wireless and wired keyboard from script josvanr Linux - Hardware 1 08-26-2013 01:48 AM
can i bridge a connecting being received on a wireless nic to an Ethernet nic baronobeefdip Linux - Wireless Networking 3 01-16-2012 08:02 PM
Network Manager issue : Does not distinguish between wired and wireless network rohanak Linux - Laptop and Netbook 1 09-04-2008 04:49 PM
switching between wireless/wired nic at home/office dohpaz Slackware 3 01-21-2007 04:47 PM
Switch wireless and wired NIC names sharpie Linux - Wireless Networking 0 09-12-2004 03:18 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:00 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration