If you want to read about traceroute on ethernet network of switches, perhaps you had to have a look at the IEEE802.1ag, that has an specification to do tracerouting over switches (tracelink service) but I think is far over the scope of this answer. In the RFC on IP over avian carriers (rfc1149, rfc2549 and rfc6214) the media used for transmission doesn't allow to use mac addresses (the link address, if somewhat feasible on a pidgeon could be, would be its name) Normally, when you get a packet from a remote site over ethernet, the source mac addres you get in the packet is the one of the last router that links you to the internet, not the one of the original host that sent the IP packet. This makes determining the remote mac addresses of hosts a local issue completely. This also happens for example if the host uses a token ring interface or frame relay link. Defined in 2 files as a function: include/linux/ofnet.h, line 27 (as a function) net/core/ofnet.c, line 125 (as a function). ![]() The common ways to obtain it Linux dont work on BSD - from everything I have seen, you must obtain the interfaces and look for the ones that are of type AFLINK. Let's suppose a remote host is conected over a serial rs-232-C link with PPP protocol. Defined in 1 files as a prototype: include/linux/ofnet.h, line 16 (as a prototype). libpcap get MAC from AFLINK sockaddrdl (OSX) I am trying to obtain the MAC addresses of all of my interface on OSX using C. ![]() In general, on internet, you don't even know the media a host is using for transmitting packets.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |