The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Special Forums > IP Networking
.
google unix.com



IP Networking Learn TCP/IP, Internet Protocol, Routing, Routers, Network protocols in this UNIX and Linux forum.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Not getting email for the replies mahendramahendr Post Here to Contact Site Administrators and Moderators 2 04-22-2006 06:12 PM
How to see replies for my post !!!!! senthilvnr Post Here to Contact Site Administrators and Moderators 1 02-17-2006 10:47 AM
multiple ping replies Sergiu-IT IP Networking 2 12-08-2005 02:50 PM
Diappearing Replies kapilv Post Here to Contact Site Administrators and Moderators 2 07-30-2001 05:52 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-28-2005
Rakesh Ranjan's Avatar
Rakesh Ranjan Rakesh Ranjan is offline
Registered User
  
 

Join Date: Aug 2005
Location: India
Posts: 42
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 (permalink)  
Old 08-29-2005
andryk's Avatar
andryk andryk is offline Forum Advisor  
Registered User
  
 

Join Date: Sep 2003
Posts: 448
... 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 (permalink)  
Old 08-30-2005
Rakesh Ranjan's Avatar
Rakesh Ranjan Rakesh Ranjan is offline
Registered User
  
 

Join Date: Aug 2005
Location: India
Posts: 42
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.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On




All times are GMT -4. The time now is 07:54 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0