Skip to content

Age Entry For IPv4 & IPv6 Route Table

Varun Chandramohan netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v1 Latest posting 2/24 patches 2 repliesIn review
  2. v1 posting 1/24 patches 0 repliesSuperseded

Patches in v1 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4New attribute RTA_AGEinclude/linux/rtnetlink.h+1 -00 replies
2/4Add new timeval_to_sec functioninclude/net/netlink.h+13 -01 reply
3/4Initilize and populate age fieldnet/ipv4/fib_hash.c net/ipv4/fib_lookup.h net/ipv4/fib_semantics.c +1 more+23 -41 reply
4/4Initialize and fill IPv6 route ageinclude/net/ip6_fib.h include/net/ip6_route.h net/ipv6/addrconf.c +1 more+29 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RESEND][PATCH 0/4 Rev-3] Age Entry For IPv4 & IPv6 Route Table

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

---