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
abbf46ae
Commit
abbf46ae
authored
Dec 12, 2010
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ipv6: Use ip6_dst_hoplimit() instead of direct dst_metric() calls.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
16359533
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
net/ipv6/netfilter/ip6t_REJECT.c
net/ipv6/netfilter/ip6t_REJECT.c
+1
-1
net/ipv6/route.c
net/ipv6/route.c
+1
-0
net/ipv6/xfrm6_mode_tunnel.c
net/ipv6/xfrm6_mode_tunnel.c
+2
-1
No files found.
net/ipv6/netfilter/ip6t_REJECT.c
View file @
abbf46ae
...
...
@@ -124,7 +124,7 @@ static void send_reset(struct net *net, struct sk_buff *oldskb)
skb_reset_network_header
(
nskb
);
ip6h
=
ipv6_hdr
(
nskb
);
ip6h
->
version
=
6
;
ip6h
->
hop_limit
=
dst_metric
(
dst
,
RTAX_HOPLIMIT
);
ip6h
->
hop_limit
=
ip6_dst_hoplimit
(
dst
);
ip6h
->
nexthdr
=
IPPROTO_TCP
;
ipv6_addr_copy
(
&
ip6h
->
saddr
,
&
oip6h
->
daddr
);
ipv6_addr_copy
(
&
ip6h
->
daddr
,
&
oip6h
->
saddr
);
...
...
net/ipv6/route.c
View file @
abbf46ae
...
...
@@ -1119,6 +1119,7 @@ int ip6_dst_hoplimit(struct dst_entry *dst)
}
return
hoplimit
;
}
EXPORT_SYMBOL
(
ip6_dst_hoplimit
);
/*
*
...
...
net/ipv6/xfrm6_mode_tunnel.c
View file @
abbf46ae
...
...
@@ -14,6 +14,7 @@
#include <net/dsfield.h>
#include <net/dst.h>
#include <net/inet_ecn.h>
#include <net/ip6_route.h>
#include <net/ipv6.h>
#include <net/xfrm.h>
...
...
@@ -53,7 +54,7 @@ static int xfrm6_mode_tunnel_output(struct xfrm_state *x, struct sk_buff *skb)
if
(
x
->
props
.
flags
&
XFRM_STATE_NOECN
)
dsfield
&=
~
INET_ECN_MASK
;
ipv6_change_dsfield
(
top_iph
,
0
,
dsfield
);
top_iph
->
hop_limit
=
dst_metric
(
dst
->
child
,
RTAX_HOPLIMIT
);
top_iph
->
hop_limit
=
ip6_dst_hoplimit
(
dst
->
child
);
ipv6_addr_copy
(
&
top_iph
->
saddr
,
(
struct
in6_addr
*
)
&
x
->
props
.
saddr
);
ipv6_addr_copy
(
&
top_iph
->
daddr
,
(
struct
in6_addr
*
)
&
x
->
id
.
daddr
);
return
0
;
...
...
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