From mboxrd@z Thu Jan 1 00:00:00 1970 From: Varun Chandramohan Subject: [RESEND][PATCH 0/4 Rev-3] Age Entry For IPv4 & IPv6 Route Table Date: Wed, 19 Sep 2007 09:23:18 +0530 Message-ID: <20070919092318.949372eb.varunc@linux.vnet.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, kaber@trash.net, socketcan@hartkopp.net, shemminger@linux-foundation.org, krkumar2@in.ibm.com, tgraf@suug.ch, varuncha@in.ibm.com To: davem@davemloft.net Return-path: Received: from e36.co.us.ibm.com ([32.97.110.154]:39624 "EHLO e36.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750839AbXISDwa (ORCPT ); Tue, 18 Sep 2007 23:52:30 -0400 Received: from d03relay02.boulder.ibm.com (d03relay02.boulder.ibm.com [9.17.195.227]) by e36.co.us.ibm.com (8.13.8/8.13.8) with ESMTP id l8J3q90L002649 for ; Tue, 18 Sep 2007 23:52:09 -0400 Received: from d03av01.boulder.ibm.com (d03av01.boulder.ibm.com [9.17.195.167]) by d03relay02.boulder.ibm.com (8.13.8/8.13.8/NCO v8.5) with ESMTP id l8J3q9Gx449540 for ; Tue, 18 Sep 2007 21:52:09 -0600 Received: from d03av01.boulder.ibm.com (loopback [127.0.0.1]) by d03av01.boulder.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id l8J3q8We006113 for ; Tue, 18 Sep 2007 21:52:09 -0600 Sender: netdev-owner@vger.kernel.org List-Id: netdev.vger.kernel.org Hi Dave, Iam resending the patch set again. Let me know if you need anything else. Regards, Varun Original Comment: According to the RFC 4292 (IP Forwarding Table MIB) there is a need for an age entry for all the routes in therouting table. The entry in the RFC is inetCidrRouteAge and oid is inetCidrRouteAge.1.10. Many snmp application require this age entry. So iam adding the age field in the routing table for ipv4 and ipv6 and providing the interface for this value netlink. I made a note of changes i made as per the suggestions given in the community. Here is the changelog. Changelog since ver 1: --------------------- Changes Suggestion 1)Change in the interface from proc to netlink. It was not approved by David Miller and Yoshifuji. David Miller & Yoshifuji 2)Change from jiffies to timeval. Eric Dumazet 3)Rounding up timeval Patrick McHardy, Oliver Hartkopp Eric Dumazet. 4)Relocate timeval_to_sec Stephen Hemminger, Krishna Kumar 5)Using macro RT6_GET_ROUTE_INFO Krishna Kumar 6)Add proper comment for timeval_to_sec Eric Dumazet 7)Add proper comment for timeval insertion Thomas Graf Signed-off-by: Varun Chandramohan ---