home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.protocols.tcp-ip      TCP and IP network protocols.      14,669 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 12,671 of 14,669   
   Thibault to Martijn Lievaart   
   Re: Looking for source code (Get Mac add   
   20 Jan 09 19:56:06   
   
   From: tj+usenet@a13.fr   
      
   On Tue, 20 Jan 2009 19:47:23 +0100, Martijn Lievaart wrote:   
   >> I think this is like an arp request... What I'm looking for is unix   
   >> source code of a method to get the mac address of a computer given its   
   >> IP / host name. C/C++.   Or a good tutorial...   
   >> TIA.   
   >   
   > Something like (untested):   
   >   
   > #/bin/sh   
      ^ '!' is missing   
   > ping -n 1  >/dev/null 2>&1   
   > arp -a | fgrep    
      
     It is not C/C++ but shell script :-)   
      
      
     To answer to the OP, I found this using google :   
      
   http://outflux.net/software/shorts/c/hw_get.c   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca