Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] arp query in C
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Beju
Apprentice
Apprentice


Joined: 30 Mar 2006
Posts: 171

PostPosted: Wed Oct 06, 2010 9:45 pm    Post subject: [SOLVED] arp query in C Reply with quote

Hello,

I remember there was a function in linux headers, which queries remote host for its physical address, but I can't find it anymore :( If anyone know its name, please help me.


Last edited by Beju on Thu Oct 07, 2010 2:51 am; edited 1 time in total
Back to top
View user's profile Send private message
Beju
Apprentice
Apprentice


Joined: 30 Mar 2006
Posts: 171

PostPosted: Thu Oct 07, 2010 2:51 am    Post subject: Reply with quote

I found it :) This function is called ioctl() and to get physical address from a socket you need to pass SIOCGARP to this function.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum