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
9f42c3ff
Commit
9f42c3ff
authored
Nov 09, 2003
by
David S. Miller
Browse files
Options
Browse Files
Download
Plain Diff
Merge nuts.ninka.net:/disk1/davem/BK/network-2.5
into nuts.ninka.net:/disk1/davem/BK/net-2.5
parents
685423fd
967a4ea0
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
5 deletions
+8
-5
include/linux/times.h
include/linux/times.h
+1
-0
net/ipv4/netfilter/arpt_mangle.c
net/ipv4/netfilter/arpt_mangle.c
+2
-2
net/ipv4/route.c
net/ipv4/route.c
+2
-1
net/ipv6/route.c
net/ipv6/route.c
+3
-2
No files found.
include/linux/times.h
View file @
9f42c3ff
...
...
@@ -4,6 +4,7 @@
#ifdef __KERNEL__
#include <asm/div64.h>
#include <asm/types.h>
#include <asm/param.h>
#if (HZ % USER_HZ)==0
# define jiffies_to_clock_t(x) ((x) / (HZ / USER_HZ))
...
...
net/ipv4/netfilter/arpt_mangle.c
View file @
9f42c3ff
...
...
@@ -4,8 +4,8 @@
#include <net/sock.h>
MODULE_LICENSE
(
"GPL"
);
MODULE_AUTHOR
(
"
David S. Miller <davem@redhat.com
>"
);
MODULE_DESCRIPTION
(
"arptables
mangle table
"
);
MODULE_AUTHOR
(
"
Bart De Schuymer <bdschuym@pandora.be
>"
);
MODULE_DESCRIPTION
(
"arptables
arp payload mangle target
"
);
static
unsigned
int
target
(
struct
sk_buff
**
pskb
,
unsigned
int
hooknum
,
const
struct
net_device
*
in
,
...
...
net/ipv4/route.c
View file @
9f42c3ff
...
...
@@ -89,6 +89,7 @@
#include <linux/random.h>
#include <linux/jhash.h>
#include <linux/rcupdate.h>
#include <linux/times.h>
#include <net/protocol.h>
#include <net/ip.h>
#include <net/route.h>
...
...
@@ -2309,7 +2310,7 @@ static int rt_fill_info(struct sk_buff *skb, u32 pid, u32 seq, int event,
ci
.
rta_used
=
rt
->
u
.
dst
.
__use
;
ci
.
rta_clntref
=
atomic_read
(
&
rt
->
u
.
dst
.
__refcnt
);
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
ci
.
rta_expires
=
0
;
ci
.
rta_error
=
rt
->
u
.
dst
.
error
;
...
...
net/ipv6/route.c
View file @
9f42c3ff
...
...
@@ -27,6 +27,7 @@
#include <linux/config.h>
#include <linux/errno.h>
#include <linux/types.h>
#include <linux/times.h>
#include <linux/socket.h>
#include <linux/sockios.h>
#include <linux/net.h>
...
...
@@ -717,7 +718,7 @@ int ip6_route_add(struct in6_rtmsg *rtmsg, struct nlmsghdr *nlh, void *_rtattr)
return
-
ENOMEM
;
rt
->
u
.
dst
.
obsolete
=
-
1
;
rt
->
rt6i_expires
=
rtmsg
->
rtmsg_info
;
rt
->
rt6i_expires
=
clock_t_to_jiffies
(
rtmsg
->
rtmsg_info
)
;
if
(
nlh
&&
(
r
=
NLMSG_DATA
(
nlh
)))
{
rt
->
rt6i_protocol
=
r
->
rtm_protocol
;
}
else
{
...
...
@@ -1535,7 +1536,7 @@ static int rt6_fill_node(struct sk_buff *skb, struct rt6_info *rt,
RTA_PUT
(
skb
,
RTA_PRIORITY
,
4
,
&
rt
->
rt6i_metric
);
ci
.
rta_lastuse
=
jiffies
-
rt
->
u
.
dst
.
lastuse
;
if
(
rt
->
rt6i_expires
)
ci
.
rta_expires
=
rt
->
rt6i_expires
-
jiffies
;
ci
.
rta_expires
=
jiffies_to_clock_t
(
rt
->
rt6i_expires
-
jiffies
)
;
else
ci
.
rta_expires
=
0
;
ci
.
rta_used
=
rt
->
u
.
dst
.
__use
;
...
...
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