Hi, > >Hi all, > >> In my opinion, storing the MAC address inside the pcap_if_t >> structure could be a useful feature, currently I'm adding >> somthing similar in packet.dll. >Personally, I feel this belongs in Packet, not Pcap. Then again, >there already *is* the GetNetInfo call which provides that info,
- GetNetInfo requires to WinPcap programmers the use of another API, while having that information associated with an adapter makes it very esay to retrieve it. Citing Descript, many poeple like simplicity. - Getnetinfo is present from Win2k, older OSes doesn't provide it. - GetNetInfo *is* Win32 specific, like packet.dll. On the other side, wpcap.dll exports a superset of the the libpcap library, which is system independent. Providing link layer information on the pcap_if_t structure means offering a method to retrieve it in the same (simple) way under all the OSes supported by libpcap, which in my opnion is a very useful thing (and incidentally is one of the goals that I have when I develop WinPcap). Loris >and a lot more, so why add another field to the Packet structure? > >We'd have to do the same for all other MAC layers... eeew! > >--f ================================================================== This is the WinPcap users list. It is archived at http://www.mail-archive.com/[EMAIL PROTECTED]/ To unsubscribe use mailto: [EMAIL PROTECTED] ==================================================================
