Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ARP behaviour at Gentoo
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Jenik
n00b
n00b


Joined: 19 Jun 2010
Posts: 5

PostPosted: Wed Sep 25, 2013 12:53 pm    Post subject: ARP behaviour at Gentoo Reply with quote

Hi,
I came across an interesting behaviour at Gentoo can someone explain me if I am wrong or if its standard behaviour?

If I dump ARP communication between FreeBSD and Gentoo, then FreeBSD send's ARP request(MAC1 and IP1 ???MAC2??? IP2) to datalink broadcast.Gentoo receives the request and replies but Gentoo sends ARP reguest for FreeBSD's IP afterwards which doesn't make sense cos Gentoo should already know the MAC of FreeBSD from the first FreeBSD's ARP request where the source MAC and IP (FreeBSD's MAC and IP) are included and should be saved into the ARP cache.

If the communication goes vice versa then FreeBSD handles request by ARP protocol.



What do you think about this behaviour ? Do I understand properly ? Isn't it a bad implementation of ARP ?


Thank you
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9883
Location: almost Mile High in the USA

PostPosted: Wed Sep 25, 2013 5:31 pm    Post subject: Reply with quote

I doubt this is a Gentoo issue, it's a Linux thing, and I think the Linux behavior is better.

It's only one ARP so I don't think it's that much of an overhead. I think Linux does this to ensure that the first arp was not spoofed, if two machines respond with different macs for the same IP then something's wrong... Also someone couldn't maliciously fill the arp cache by dumping a zillion fake arp packets...

There may be an optimization but I think after the cache is populated it's not going to be that much overhead...
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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