Networking Forums

Networking Forums > Computer Networking > Linux Networking > Plz Help!!.....ARP-request----arpwhohas()?????

Reply
Thread Tools Display Modes

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

 
 
ANaiveProgrammer
Guest
Posts: n/a

 
      12-14-2004, 06:25 PM
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
 
Reply With Quote
 
 
 
 
Kasper Dupont
Guest
Posts: n/a

 
      12-14-2004, 09:12 PM
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
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ARP Request marzdog Windows Networking 2 08-29-2008 02:45 PM
request tygryskacz@gmail.com Broadband 0 02-09-2008 01:13 PM
Help request NTL to BT charybdis Broadband 16 11-27-2006 01:14 PM
request MARK Wireless Networks 4 10-29-2005 09:05 PM
request MARK Wireless Internet 5 10-28-2005 10:55 PM



1 2 3 4 5 6 7 8 9 10 11