[PATCH][IPROUTE2]Add missing prefix bit length for addrlabel

2008-02-14 Thread Varun Chandramohan
The prefix bit lenght value was not updated, resulting in incorrect addrlabel entry. This patch fixes that issue. Signed-off-by: Varun Chandramohan <[EMAIL PROTECTED]> --- ip/ipaddrlabel.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/ip/ipaddrlabel.

Re: [PATCH 3/3 Rev4] Initialize and fill IPv6 route age

2007-09-20 Thread Varun Chandramohan
Krishna Kumar2 wrote: > Varun Chandramohan <[EMAIL PROTECTED]> wrote on 09/20/2007 08:59:03 > PM: > > >> @@ -2123,6 +2131,7 @@ static int rt6_fill_node(struct sk_buff >> { >> struct rtmsg *rtm; >> struct nlmsghdr *nlh; >> + struct t

[PATCH 2/3 Rev4] Initilize and populate age field

2007-09-20 Thread Varun Chandramohan
The age field is filled with the current time at the time of creation of the route. When the routes are dumped then the age value stored in the route structure is subtracted from the current time value and the difference is the age expressed in secs. Signed-off-by: Varun Chandramohan <[EM

[PATCH 3/3 Rev4] Initialize and fill IPv6 route age

2007-09-20 Thread Varun Chandramohan
: Varun Chandramohan <[EMAIL PROTECTED]> --- include/net/ip6_fib.h |1 + net/ipv6/addrconf.c |5 + net/ipv6/route.c | 14 ++ 3 files changed, 20 insertions(+), 0 deletions(-) diff --git a/include/net/ip6_fib.h b/include/net/ip6_fib.h index c48ea87..e30a1cf 100644

[PATCH 1/3 Rev4] New attribute RTA_AGE

2007-09-20 Thread Varun Chandramohan
A new attribute RTA_AGE is added for the age value to be exported to userlevel using netlink Signed-off-by: Varun Chandramohan <[EMAIL PROTECTED]> --- include/linux/rtnetlink.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/linux/rtnetlink.h b/include

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

2007-09-20 Thread Varun Chandramohan
8)Insert the age value at route insertion David Miller 9)Remove round off. Stephen Hemminger Signed-off-by: Varun Chandramohan <[EMAIL PROTECTED]> --- - To unsubscribe from this list: send the line

[RESEND][PATCH 4/4 Rev-3] Initialize and fill IPv6 route age

2007-09-18 Thread Varun Chandramohan
: Varun Chandramohan <[EMAIL PROTECTED]> --- include/net/ip6_fib.h |1 + include/net/ip6_route.h |3 +++ net/ipv6/addrconf.c |5 + net/ipv6/route.c| 24 4 files changed, 29 insertions(+), 4 deletions(-) diff --git a/include/net/ip6_f

[RESEND][PATCH 2/4 Rev-3] Add new timeval_to_sec function

2007-09-18 Thread Varun Chandramohan
A new function for converting timeval to time_t is added in netlink.h. Its a common function used in differentplaces. The reason for adding this function in netlink.h is that its used by netlink for stats purpose. Signed-off-by: Varun Chandramohan <[EMAIL PROTECTED]> --- include/net/net

[RESEND][PATCH 3/4 Rev-3] Initilize and populate age field

2007-09-18 Thread Varun Chandramohan
The age field is filled with the current time at the time of creation of the route. When the routes are dumped then the age value stored in the route structure is subtracted from the current time value and the difference is the age expressed in secs. Signed-off-by: Varun Chandramohan <[EM

[RESEND][PATCH 1/4 Rev-3] New attribute RTA_AGE

2007-09-18 Thread Varun Chandramohan
A new attribute RTA_AGE is added for the age value to be exported to userlevel using netlink Signed-off-by: Varun Chandramohan <[EMAIL PROTECTED]> --- include/linux/rtnetlink.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/linux/rtnetlink.h b/include

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

2007-09-18 Thread Varun Chandramohan
-off-by: Varun Chandramohan <[EMAIL PROTECTED]> --- - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

wrt Age Entry For IPv4 & IPv6 Route Table

2007-09-18 Thread Varun Chandramohan
Hi Dave, Sorry for bothering you. I see that you are currently very busy. I just wanted to remind you that iam waiting for your feedback on the patch set. Just incase you want me to resend , please let me know. If this work is already in your queue, ignore this mail. Regards, Va

wrt Age Entry For IPv4 & IPv6 Route Table

2007-09-06 Thread Varun Chandramohan
Hi Dave, Last week i sent out the rev-3 of the age patch set, and i got no comments . So i assume the people who reviewed it earlier are ok with it. Can you please go through it and push it upstream? Regards, Varun - To unsubscribe from this list: send the line "unsubscribe net

[PATCH 4/4 Rev-3] Initialize and fill IPv6 route age

2007-08-29 Thread Varun Chandramohan
: Varun Chandramohan <[EMAIL PROTECTED]> --- include/net/ip6_fib.h |1 + include/net/ip6_route.h |3 +++ net/ipv6/addrconf.c |5 + net/ipv6/route.c| 24 4 files changed, 29 insertions(+), 4 deletions(-) diff --git a/include/net/ip6_f

[PATCH 3/4 Rev-3] Initilize and populate age field

2007-08-28 Thread Varun Chandramohan
The age field is filled with the current time at the time of creation of the route. When the routes are dumped then the age value stored in the route structure is subtracted from the current time value and the difference is the age expressed in secs. Signed-off-by: Varun Chandramohan <[EM

[PATCH 2/4 Rev-3] Add new timeval_to_sec function

2007-08-28 Thread Varun Chandramohan
A new function for converting timeval to time_t is added in netlink.h. Its a common function used in differentplaces. The reason for adding this function in netlink.h is that its used by netlink for stats purpose. Signed-off-by: Varun Chandramohan <[EMAIL PROTECTED]> --- include/net/net

[PATCH 1/4 Rev-3] New attribute RTA_AGE

2007-08-28 Thread Varun Chandramohan
A new attribute RTA_AGE is added for the age value to be exported to userlevel using netlink Signed-off-by: Varun Chandramohan <[EMAIL PROTECTED]> --- include/linux/rtnetlink.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/linux/rtnetlink.h b/include

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

2007-08-28 Thread Varun Chandramohan
tion Thomas Graf Signed-off-by: Varun Chandramohan <[EMAIL PROTECTED]> --- - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 3/4 - rev 2] Initilize and populate age field

2007-08-21 Thread Varun Chandramohan
Thomas Graf wrote: > * Varun Chandramohan <[EMAIL PROTECTED]> 2007-08-21 16:52 > >> I know its a bit confusing but let me explain the reason. In my first >> version patch i used fn_hash_insert() (place where alias is created)as >> place to insert my current time

Re: [PATCH 3/4 - rev 2] Initilize and populate age field

2007-08-21 Thread Varun Chandramohan
Thomas Graf wrote: > * Varun Chandramohan <[EMAIL PROTECTED]> 2007-08-20 13:46 > >> The age field is filled with the current time at the time of creation of the >> route. When the routes are dumped >> then the age value stored in the route structure is subtra

Re: [PATCH 2/4 - rev2] Add new timeval_to_sec function

2007-08-21 Thread Varun Chandramohan
Bob Beers wrote: > What if the name of the function was more descriptive of what the > function actually does? Maybe timeval_ceil_sec()? > Looks ok, it can be done if everyone is ok with it. > - > To unsubscribe from this list: send the line "unsubscribe netdev" in > the body of a message to [

Re: [PATCH 2/4 - rev2] Add new timeval_to_sec function

2007-08-20 Thread Varun Chandramohan
Stephen Hemminger wrote: > On Mon, 20 Aug 2007 13:45:36 +0530 > Varun Chandramohan <[EMAIL PROTECTED]> wrote: > > >> A new function for converting timeval to time_t is added in time.h. Its a >> common function used in different >> places. >> &g

[PATCH 4/4 - rev2] Initialize and fill IPv6 route age

2007-08-20 Thread Varun Chandramohan
: Varun Chandramohan <[EMAIL PROTECTED]> --- include/net/ip6_fib.h |1 + include/net/ip6_route.h |3 +++ net/ipv6/addrconf.c |5 + net/ipv6/route.c| 24 4 files changed, 29 insertions(+), 4 deletions(-) diff --git a/include/net/ip6_f

[PATCH 2/4 - rev2] Add new timeval_to_sec function

2007-08-20 Thread Varun Chandramohan
A new function for converting timeval to time_t is added in time.h. Its a common function used in different places. Signed-off-by: Varun Chandramohan <[EMAIL PROTECTED]> --- include/linux/time.h | 12 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/include

[PATCH 3/4 - rev 2] Initilize and populate age field

2007-08-20 Thread Varun Chandramohan
The age field is filled with the current time at the time of creation of the route. When the routes are dumped then the age value stored in the route structure is subtracted from the current time value and the difference is the age expressed in secs. Signed-off-by: Varun Chandramohan <[EM

[PATCH 1/4 - rev2] New attribute RTA_AGE

2007-08-20 Thread Varun Chandramohan
A new attribute RTA_AGE is added for the age value to be exported to userlevel using netlink Signed-off-by: Varun Chandramohan <[EMAIL PROTECTED]> --- include/linux/rtnetlink.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/linux/rtnetlink.h b/include

[PATCH 0/4 - rev 2] Age Entry For IPv4 & IPv6 Route Table

2007-08-20 Thread Varun Chandramohan
-off-by: Varun Chandramohan <[EMAIL PROTECTED]> --- - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 3/4 -rev1] Initilize and populate age field

2007-08-06 Thread Varun Chandramohan
Hi Eric, Sorry for the late response. I just need few clarifications. *age = timeval_to_sec(&tv); +NLA_PUT_U32(skb, RTA_AGE, *age); >>> here, what happens if sizeof(time_t) is not 4 ? Did you mean that th

Re: [PATCH 3/4 -rev1] Initilize and populate age field

2007-07-25 Thread Varun Chandramohan
Eric Dumazet wrote: > Varun Chandramohan a écrit : >> Eric Dumazet wrote: >>> Varun Chandramohan a écrit : >>>> The age field is filled with the current time at the time of creation >>>> of the route. When the routes are dumped >>>> then the

Re: [PATCH 3/4 -rev1] Initilize and populate age field

2007-07-25 Thread Varun Chandramohan
Eric Dumazet wrote: > Varun Chandramohan a écrit : >> The age field is filled with the current time at the time of creation >> of the route. When the routes are dumped >> then the age value stored in the route structure is subtracted from >> the current time value an

[PATCH 4/4 -rev1] Initialize and fill IPv6 route age

2007-07-25 Thread Varun Chandramohan
clarity is added as per suggestion. Signed-off-by: Varun Chandramohan <[EMAIL PROTECTED]> --- include/net/ip6_fib.h |1 + include/net/ip6_route.h |3 +++ net/ipv6/addrconf.c |5 + net/ipv6/route.c| 23 +++ 4 files changed, 28 insertions(+), 4 del

[PATCH 2/4 -rev1] Add new timeval_to_sec function

2007-07-25 Thread Varun Chandramohan
A new function for converting timeval to time_t is added in time.h. Its a common function used in different places. The timeout is now rounded up as per the suggestion. Signed-off-by: Varun Chandramohan <[EMAIL PROTECTED]> --- include/linux/time.h | 11 +++ 1 files chang

[PATCH 1/4 -rev1] New attribute RTA_AGE

2007-07-25 Thread Varun Chandramohan
A new attribute RTA_AGE is added for the age value to be exported to userlevel using netlink Signed-off-by: Varun Chandramohan <[EMAIL PROTECTED]> --- include/linux/rtnetlink.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/linux/rtnetlink.h b/include

[PATCH 3/4 -rev1] Initilize and populate age field

2007-07-25 Thread Varun Chandramohan
The age field is filled with the current time at the time of creation of the route. When the routes are dumped then the age value stored in the route structure is subtracted from the current time value and the difference is the age expressed in secs. Signed-off-by: Varun Chandramohan <[EM

[PATCH 0/4 -rev1] Age Entry For IPv4 & IPv6 Route Table

2007-07-25 Thread Varun Chandramohan
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. Signed-off-by: Varun Chandramohan <[EMAIL PROTECTED]> --- - To unsubscribe from this list: send th

Re: [PATCH 2/4] Add new timeval_to_sec function

2007-07-24 Thread Varun Chandramohan
Patrick McHardy wrote: > Varun Chandramohan wrote: > >> Oliver Hartkopp wrote: >> >> >>>>> I don't think you should round down timeout values. >>>>> >>>>> >>>>> >>>>>

Re: [PATCH 4/4] Initialize and fill IPv6 route age

2007-07-24 Thread Varun Chandramohan
Stephen Hemminger wrote: > On Tue, 24 Jul 2007 09:50:57 +0530 > Varun Chandramohan <[EMAIL PROTECTED]> wrote: > > >> Stephen Hemminger wrote: >> >>> On Mon, 23 Jul 2007 10:13:18 +0530 >>> Varun Chandramohan <[EMAIL PROTECTED]> wrote

Re: [PATCH 2/4] Add new timeval_to_sec function

2007-07-23 Thread Varun Chandramohan
Oliver Hartkopp wrote: > Varun Chandramohan wrote: > >> Patrick McHardy wrote: >> >> >>> Varun Chandramohan wrote: >>> >>> >>> >>>> /** >>>> + * timeval_to_sec - Convert time

Re: [PATCH 4/4] Initialize and fill IPv6 route age

2007-07-23 Thread Varun Chandramohan
Stephen Hemminger wrote: > On Mon, 23 Jul 2007 10:13:18 +0530 > Varun Chandramohan <[EMAIL PROTECTED]> wrote: > > >> The age field of the ipv6 route structures are initilized with the current >> timeval at the time of route creation. When the route dump is

Re: [PATCH 2/4] Add new timeval_to_sec function

2007-07-23 Thread Varun Chandramohan
Patrick McHardy wrote: > Varun Chandramohan wrote: > >> /** >> + * timeval_to_sec - Convert timeval to seconds >> + * @tv: pointer to the timeval variable to be converted >> + * >> + * Returns the seconds representation of timeval paramet

[PATCH 4/4] Initialize and fill IPv6 route age

2007-07-22 Thread Varun Chandramohan
-off-by: Varun Chandramohan <[EMAIL PROTECTED]> --- include/net/ip6_fib.h |1 + include/net/ip6_route.h |3 +++ net/ipv6/addrconf.c |5 + net/ipv6/route.c| 23 +++ 4 files changed, 28 insertions(+), 4 deletions(-) diff --git a/inclu

[PATCH 3/4] Initilize and populate age field

2007-07-22 Thread Varun Chandramohan
The age field is filled with the current time at the time of creation of the route. When the routes are dumped then the age value stored in the route structure is subtracted from the current time value and the difference is the age expressed in secs. Signed-off-by: Varun Chandramohan <[EM

[PATCH 2/4] Add new timeval_to_sec function

2007-07-22 Thread Varun Chandramohan
A new function for converting timeval to time_t is added in time.h. Its a common function used in different places. Signed-off-by: Varun Chandramohan <[EMAIL PROTECTED]> --- include/linux/time.h | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/include

[PATCH 1/4] New attribute RTA_AGE

2007-07-22 Thread Varun Chandramohan
A new attribute RTA_AGE is added for the age value to be exported to userlevel using netlink Signed-off-by: Varun Chandramohan <[EMAIL PROTECTED]> --- include/linux/rtnetlink.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/linux/rtnetlink.h b/include

[PATCH 0/4] Age Entry For IPv4 & IPv6 Route Table

2007-07-22 Thread Varun Chandramohan
table for ipv4 and ipv6 and providing the interface for this value netlink. Signed-off-by: Varun Chandramohan <[EMAIL PROTECTED]> --- - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http:/

Re: [PATCH] Age Entry For IPv4 Route Table

2007-06-25 Thread Varun Chandramohan
David Miller wrote: > From: Varun Chandramohan <[EMAIL PROTECTED]> > Date: Mon, 25 Jun 2007 10:51:39 +0530 > > >> YOSHIFUJI Hideaki / wrote: >> >>> In article <[EMAIL PROTECTED]> (at Mon, 25 Jun 2007 10:28:38 +0530), Var

Re: [PATCH] Age Entry For IPv4 Route Table

2007-06-24 Thread Varun Chandramohan
YOSHIFUJI Hideaki / 吉藤英明 wrote: > In article <[EMAIL PROTECTED]> (at Mon, 25 Jun 2007 10:28:38 +0530), Varun > Chandramohan <[EMAIL PROTECTED]> says: > > >> According to the RFC 4292 (IP Forwarding Table MIB) there is a need for an >> age entry for all

[PATCH] Age Entry For IPv4 Route Table

2007-06-24 Thread Varun Chandramohan
and providing the interface for this value via /proc/net/route. Signed-off-by: Varun Chandramohan <[EMAIL PROTECTED]> --- net/ipv4/fib_hash.c | 16 +++- net/ipv4/fib_lookup.h |1 + 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/net/ipv4/fib_hash.c b/ne