Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
ce2b4190
Commit
ce2b4190
authored
Nov 10, 2003
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge master.kernel.org:/home/davem/BK/net-2.5
into home.osdl.org:/home/torvalds/v2.5/linux
parents
05103a07
165cb14c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
net/decnet/dn_route.c
net/decnet/dn_route.c
+3
-2
net/ipv4/route.c
net/ipv4/route.c
+1
-1
net/ipv6/route.c
net/ipv6/route.c
+1
-1
No files found.
net/decnet/dn_route.c
View file @
ce2b4190
...
@@ -77,6 +77,7 @@
...
@@ -77,6 +77,7 @@
#include <linux/string.h>
#include <linux/string.h>
#include <linux/netfilter_decnet.h>
#include <linux/netfilter_decnet.h>
#include <linux/rcupdate.h>
#include <linux/rcupdate.h>
#include <linux/times.h>
#include <asm/errno.h>
#include <asm/errno.h>
#include <net/neighbour.h>
#include <net/neighbour.h>
#include <net/dst.h>
#include <net/dst.h>
...
@@ -1508,11 +1509,11 @@ static int dn_rt_fill_info(struct sk_buff *skb, u32 pid, u32 seq, int event, int
...
@@ -1508,11 +1509,11 @@ static int dn_rt_fill_info(struct sk_buff *skb, u32 pid, u32 seq, int event, int
RTA_PUT
(
skb
,
RTA_GATEWAY
,
2
,
&
rt
->
rt_gateway
);
RTA_PUT
(
skb
,
RTA_GATEWAY
,
2
,
&
rt
->
rt_gateway
);
if
(
rtnetlink_put_metrics
(
skb
,
rt
->
u
.
dst
.
metrics
)
<
0
)
if
(
rtnetlink_put_metrics
(
skb
,
rt
->
u
.
dst
.
metrics
)
<
0
)
goto
rtattr_failure
;
goto
rtattr_failure
;
ci
.
rta_lastuse
=
jiffies
-
rt
->
u
.
dst
.
lastuse
;
ci
.
rta_lastuse
=
jiffies
_to_clock_t
(
jiffies
-
rt
->
u
.
dst
.
lastuse
)
;
ci
.
rta_used
=
rt
->
u
.
dst
.
__use
;
ci
.
rta_used
=
rt
->
u
.
dst
.
__use
;
ci
.
rta_clntref
=
atomic_read
(
&
rt
->
u
.
dst
.
__refcnt
);
ci
.
rta_clntref
=
atomic_read
(
&
rt
->
u
.
dst
.
__refcnt
);
if
(
rt
->
u
.
dst
.
expires
)
if
(
rt
->
u
.
dst
.
expires
)
ci
.
rta_expires
=
rt
->
u
.
dst
.
expires
-
jiffies
;
ci
.
rta_expires
=
jiffies_to_clock_t
(
rt
->
u
.
dst
.
expires
-
jiffies
)
;
else
else
ci
.
rta_expires
=
0
;
ci
.
rta_expires
=
0
;
ci
.
rta_error
=
rt
->
u
.
dst
.
error
;
ci
.
rta_error
=
rt
->
u
.
dst
.
error
;
...
...
net/ipv4/route.c
View file @
ce2b4190
...
@@ -2306,7 +2306,7 @@ static int rt_fill_info(struct sk_buff *skb, u32 pid, u32 seq, int event,
...
@@ -2306,7 +2306,7 @@ static int rt_fill_info(struct sk_buff *skb, u32 pid, u32 seq, int event,
RTA_PUT
(
skb
,
RTA_GATEWAY
,
4
,
&
rt
->
rt_gateway
);
RTA_PUT
(
skb
,
RTA_GATEWAY
,
4
,
&
rt
->
rt_gateway
);
if
(
rtnetlink_put_metrics
(
skb
,
rt
->
u
.
dst
.
metrics
)
<
0
)
if
(
rtnetlink_put_metrics
(
skb
,
rt
->
u
.
dst
.
metrics
)
<
0
)
goto
rtattr_failure
;
goto
rtattr_failure
;
ci
.
rta_lastuse
=
jiffies
-
rt
->
u
.
dst
.
lastuse
;
ci
.
rta_lastuse
=
jiffies
_to_clock_t
(
jiffies
-
rt
->
u
.
dst
.
lastuse
)
;
ci
.
rta_used
=
rt
->
u
.
dst
.
__use
;
ci
.
rta_used
=
rt
->
u
.
dst
.
__use
;
ci
.
rta_clntref
=
atomic_read
(
&
rt
->
u
.
dst
.
__refcnt
);
ci
.
rta_clntref
=
atomic_read
(
&
rt
->
u
.
dst
.
__refcnt
);
if
(
rt
->
u
.
dst
.
expires
)
if
(
rt
->
u
.
dst
.
expires
)
...
...
net/ipv6/route.c
View file @
ce2b4190
...
@@ -1534,7 +1534,7 @@ static int rt6_fill_node(struct sk_buff *skb, struct rt6_info *rt,
...
@@ -1534,7 +1534,7 @@ static int rt6_fill_node(struct sk_buff *skb, struct rt6_info *rt,
if
(
rt
->
u
.
dst
.
dev
)
if
(
rt
->
u
.
dst
.
dev
)
RTA_PUT
(
skb
,
RTA_OIF
,
sizeof
(
int
),
&
rt
->
rt6i_dev
->
ifindex
);
RTA_PUT
(
skb
,
RTA_OIF
,
sizeof
(
int
),
&
rt
->
rt6i_dev
->
ifindex
);
RTA_PUT
(
skb
,
RTA_PRIORITY
,
4
,
&
rt
->
rt6i_metric
);
RTA_PUT
(
skb
,
RTA_PRIORITY
,
4
,
&
rt
->
rt6i_metric
);
ci
.
rta_lastuse
=
jiffies
-
rt
->
u
.
dst
.
lastuse
;
ci
.
rta_lastuse
=
jiffies
_to_clock_t
(
jiffies
-
rt
->
u
.
dst
.
lastuse
)
;
if
(
rt
->
rt6i_expires
)
if
(
rt
->
rt6i_expires
)
ci
.
rta_expires
=
jiffies_to_clock_t
(
rt
->
rt6i_expires
-
jiffies
);
ci
.
rta_expires
=
jiffies_to_clock_t
(
rt
->
rt6i_expires
-
jiffies
);
else
else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment