multiple arp replies


 
Thread Tools Search this Thread
Special Forums IP Networking multiple arp replies
# 1  
Old 08-28-2005
Question multiple arp replies

Can someone tell me if I tweak the destination field in an arp request for TCP connection to match it with the the mac addresses of different recivers in an ethernet as the packet passes through them in short each one catches the arp request and replies, what would happen I mean will the sender of arp request (reciever for arp reply) try to connect each one.
# 2  
Old 08-29-2005
... Since one packet is only valid on the wire at a time, i wonder how u could achieve what u asked
... maybe you will experience system freeze
# 3  
Old 08-30-2005
May b I'm not clear so let me clear I have built packet socket (PF_PACKET) which catches all the arp packets coming to its interface. Now as I know the ARP packets are broadcasted on the network and when it comes to a particular machine it checks if the destination field (ar_tip & ar_tpa) in the ARP header are meant for it or not now I know the callers IP address and hardware address (ar_sip & ar_spa in request) so I can easily forge the machine the sender requested and send an appropriate ARP reply.

Now my question was if not just one but many machine try to forge like this what would happen.
But I got my answer (google is great!!) that only the first (the fastest) reply is taken.

But I still have a problem,more general , I'm using above said thing in my application but when I'm using recvfrom to get the clients address ( in sockaddr_in structure argument with length in length field ) I'm not able to get it correctly I mean when I'm using inet_ntoa to convert sin_addr structure of got address(in sockaddr_in client) to corresponding IP address the result is not same as I got in ARP header. Even in just a simple UDP packet I'm not able to get the address correctly.
Can u suggest something.
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. War Stories

What arp -s is good for

A customer appears to have drastically misunderstood our instructions for connecting to our WAN. He set his PC IP address to the same as one of the bridges. :mad: :wall: This caused much confusion on the network, to put it mildly. He called to complain about the poor performance of the network... (13 Replies)
Discussion started by: Corona688
13 Replies

2. UNIX for Advanced & Expert Users

arp questions

Can someone please explain this output to me. Why doesn't ifconfig show the same info? ~ $ arp -a ? (10.71.0.1) at 00:1b:21:2b:eb:0c on eth0 (4 Replies)
Discussion started by: cokedude
4 Replies

3. HP-UX

HW Address and arp

I was checking nettl output for a unstable telnet to my server. this is part of output: ### ***********************************STREAMS/UX*******************************@#% Timestamp : Sun Jun 22 EETDST 2008 22:14:47.492899 Process ID : Subsystem ... (4 Replies)
Discussion started by: xramm
4 Replies

4. Post Here to Contact Site Administrators and Moderators

Not getting email for the replies

Hi Admin, From the past couple of days, I'm not getting any emails for the replies made for my posts... How can this be resolved, I checked my email address and it is correct... could you please help me.. I missing many because of this problem Cheers..Mahendra (2 Replies)
Discussion started by: mahendramahendr
2 Replies

5. Post Here to Contact Site Administrators and Moderators

How to see replies for my post !!!!!

Hi, I had post my queries regarding shared objects (.so) in this forum. But i cant able to see the replies. I doubt whether i had received any replies or not. Kindly help me, to know the procedure to see the replies for my queries. Thankyou. Regards, Senthil. (1 Reply)
Discussion started by: senthilvnr
1 Replies

6. IP Networking

multiple ping replies

Helo ! I set up a new server using FreeBSD 6.0-RELEASE. Everything is ok, until I try to connect it to the internet. After I set up the connection I try to ping yahoo.com and I don't get any reply. When I try to ping the gateway I get a lot of replyes for the same packet. It looks similar to this:... (2 Replies)
Discussion started by: Sergiu-IT
2 Replies

7. Post Here to Contact Site Administrators and Moderators

Diappearing Replies

I have seen some in some threads it shows that are more than 1 replies, but when i open the thread for reading it it shows me only one reply. Where have the other replies gone ? (2 Replies)
Discussion started by: kapilv
2 Replies
Login or Register to Ask a Question