Plz Help!!.....ARP-request----arpwhohas()?????
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > Plz Help!!.....ARP-request----arpwhohas()?????




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Plz Help!!.....ARP-request----arpwhohas()?????  
ANaiveProgrammer


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-17-04 12:45 AM

Hi All
I've been trying to figure out how to send an ARP-Request request
since long, but im stumped. Somebody told me that you have to use
RAW-Sockets for that,  but how, and this "How" is beyond my
comprehension. Moreover, i have also seen RAW FAQ's and that is not
very helpful either. I mean i know how to create an ARP-Request Header
and Ethernet Header using structs , and how to avoid byte padding by
assigning these structs to U_char arrays, but this Raw-socket usage in
terms of sending ARP-Request is beyond my comprehension. Would you
please tell me how to send an ARP-Request-broadcast over a LAN( so
that every node attached to my LAN must receive this arp-request) by
using RAW-Sockets?????..please answer this question, any
pointers/comments/guidelines will be highly
appreciated..........................

I was just going through TCP/IP illustrated vol 2. Section 21.5 Page
683, and i found a "arpwhohas()" function that takes two parameters
namely:
struct arpcom *ac;//&
struct in_addr *addr;

furthermore, i found that arpwhohas() function , in turn, calls
arprequest() function. So my question is can we send an ARP-Request on
Ethernet by directly calling this arpwhohas() function , by just
providing the required arguments? if so, then how????
and if we can't send ARP-Request by calling above , why can't??
i will be more than glad if you take some time off and give me some
invaluable suggestions out of your valuable time.
Thanking in anticipation.
Regards
Waqas





[ Post a follow-up to this message ]



    Re: Plz Help!!.....ARP-request----arpwhohas()?????  
Kasper Dupont


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-17-04 12:45 AM

ANaiveProgrammer wrote:
>
> Hi All
> I've been trying to figure out how to send an ARP-Request request
> since long, but im stumped. Somebody told me that you have to use
> RAW-Sockets for that,  but how, and this "How" is beyond my
> comprehension.

You could take a look at the source code for arping.

> So my question is can we send an ARP-Request on
> Ethernet by directly calling this arpwhohas() function , by just
> providing the required arguments?

Never heard about it.

--
Kasper Dupont





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 01:02 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register