ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Wireshark-dev: Re: [Wireshark-dev] Wireshark's source question: list devices and their MAC Addr

From: Stephen Fisher <steve@xxxxxxxxxxxxxxxxxx>
Date: Wed, 20 Apr 2011 09:09:51 -0600
On Wed, Apr 20, 2011 at 01:41:27AM -0400, HaoQi Li wrote:

> As a part my college senior project, I'd like to find the Linux, 
> MacOS, and WindowsXP system calls for 1. listing network interfaces 2. 
> their MAC Addresses
> 
> Since Wireshark is cross-platform and can do those things, I've been 
> searching in its source code for many days, but without success.

Wireshark uses libpcap (Unix/Mac) or WinPcap (Windows) for this sort of 
thing.