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,670 of 14,669   
   Martijn Lievaart to SpreadTooThin   
   Re: Looking for source code (Get Mac add   
   20 Jan 09 19:47:23   
   
   848d8761   
   From: m@rtij.nl.invlalid   
      
   On Tue, 20 Jan 2009 10:07:44 -0800, SpreadTooThin 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   
   ping -n 1  >/dev/null 2>&1   
   arp -a | fgrep    
      
   M4   
      
   --- 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