From owner-freebsd-net@FreeBSD.ORG Sun Nov 22 13:21:21 2009 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A9C601065672 for ; Sun, 22 Nov 2009 13:21:21 +0000 (UTC) (envelope-from Hartmut.Brandt@dlr.de) Received: from smtp1.dlr.de (smtp1.dlr.de [129.247.252.32]) by mx1.freebsd.org (Postfix) with ESMTP id 4146D8FC12 for ; Sun, 22 Nov 2009 13:21:20 +0000 (UTC) Received: from beagle.kn.op.dlr.de ([129.247.178.136]) by smtp1.dlr.de over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Sun, 22 Nov 2009 14:09:15 +0100 Date: Sun, 22 Nov 2009 14:09:12 +0100 (CET) From: Harti Brandt X-X-Sender: brandt_h@beagle.kn.op.dlr.de To: freebsd-net@freebsd.org Message-ID: <20091122130156.F52486@beagle.kn.op.dlr.de> X-OpenPGP-Key: harti@freebsd.org MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-OriginalArrivalTime: 22 Nov 2009 13:09:15.0274 (UTC) FILETIME=[FDD95EA0:01CA6B74] Subject: ARP regression in releng-8 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Harti Brandt List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Nov 2009 13:21:21 -0000 Hi all, I try to figure out something simple like the ARP retransmission timeout to populate the ipv4InterfaceRetransmitTime in the RFC4293 MIB. In line 357 of netinet/if_ether.c it says: /* * Return EWOULDBLOCK if we have tried less than arp_maxtries. It * will be masked by ether_output(). Return EHOSTDOWN/EHOSTUNREACH * if we have already sent arp_maxtries ARP requests. Retransmit the * ARP request, but not faster than one request per second. */ Unfortunately the comment about the 1s minimum retransmit interval is there, but the code not. A simple ping -f shows the code transmitting ARP requests every 30 milliseconds, which is not good in my opinion. releng-7 (with the old L2 code) works correctly. BTW, what means the comment on line 282 in the same file? /* XXXXX */ harti