From owner-freebsd-net Sat Apr 7 9:44:41 2001 Delivered-To: freebsd-net@freebsd.org Received: from mailhub.airlinksys.com (mailhub.airlinksys.com [216.70.12.6]) by hub.freebsd.org (Postfix) with ESMTP id 6CCCE37B422 for ; Sat, 7 Apr 2001 09:44:38 -0700 (PDT) (envelope-from sjohn@airlinksys.com) Received: from ns2.airlinksys.com (ns2.airlinksys.com [216.70.12.3]) by mailhub.airlinksys.com (Postfix) with ESMTP id B319A53501 for ; Sat, 7 Apr 2001 11:44:37 -0500 (CDT) Received: by ns2.airlinksys.com (Postfix, from userid 1000) id 3FDB25E0B; Sat, 7 Apr 2001 11:44:37 -0500 (CDT) Date: Sat, 7 Apr 2001 11:44:37 -0500 From: Scott Johnson To: freebsd-net@freebsd.org Subject: arp timeout Message-ID: <20010407114436.B1056@ns2.airlinksys.com> Reply-To: Scott Johnson Mail-Followup-To: freebsd-net@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Is the timeout on the arp cache restarted on each communication with the device? Or is the cache refreshed every timeout interval whether there has been activity at all? Also: I'm using the sysctl method that arp.c uses to check the cache, but I don't like allocating a big buffer and running through all the entries to find the one I'm looking for. It appears that SIOCGARP is not supported. I would use the routing socket approach (I'm assuming it works the way Stevens describes in UNP ch. 17), but that requires root privs. Am I stuck with sysctl if I want to check the cache as a user? -- Scott Johnson System/Network Administrator Airlink Systems To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message