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.
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
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
: 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
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
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
: 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
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
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
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
-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
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
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
: 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
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
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
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
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
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
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
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 [
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
: 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
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
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
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
-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
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
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
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
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
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
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
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
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
Patrick McHardy wrote:
> Varun Chandramohan wrote:
>
>> Oliver Hartkopp wrote:
>>
>>
>>>>> I don't think you should round down timeout values.
>>>>>
>>>>>
>>>>>
>>>>>
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
Oliver Hartkopp wrote:
> Varun Chandramohan wrote:
>
>> Patrick McHardy wrote:
>>
>>
>>> Varun Chandramohan wrote:
>>>
>>>
>>>
>>>> /**
>>>> + * timeval_to_sec - Convert time
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
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
-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
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
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
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
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:/
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
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
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
48 matches
Mail list logo