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
85ea267d
Commit
85ea267d
authored
Aug 02, 2003
by
Ville Nuorvala
Committed by
David S. Miller
Aug 02, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IPV6]: Use correct hop-limit in ip6_push_pending_frames().
parent
a69069d0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
include/linux/ipv6.h
include/linux/ipv6.h
+1
-0
net/ipv6/ip6_output.c
net/ipv6/ip6_output.c
+2
-1
No files found.
include/linux/ipv6.h
View file @
85ea267d
...
@@ -189,6 +189,7 @@ struct ipv6_pinfo {
...
@@ -189,6 +189,7 @@ struct ipv6_pinfo {
struct
ipv6_txoptions
*
opt
;
struct
ipv6_txoptions
*
opt
;
struct
rt6_info
*
rt
;
struct
rt6_info
*
rt
;
struct
flowi
*
fl
;
struct
flowi
*
fl
;
int
hop_limit
;
}
cork
;
}
cork
;
};
};
...
...
net/ipv6/ip6_output.c
View file @
85ea267d
...
@@ -1243,6 +1243,7 @@ int ip6_append_data(struct sock *sk, int getfrag(void *from, char *to, int offse
...
@@ -1243,6 +1243,7 @@ int ip6_append_data(struct sock *sk, int getfrag(void *from, char *to, int offse
dst_hold
(
&
rt
->
u
.
dst
);
dst_hold
(
&
rt
->
u
.
dst
);
np
->
cork
.
rt
=
rt
;
np
->
cork
.
rt
=
rt
;
np
->
cork
.
fl
=
fl
;
np
->
cork
.
fl
=
fl
;
np
->
cork
.
hop_limit
=
hlimit
;
inet
->
cork
.
fragsize
=
mtu
=
dst_pmtu
(
&
rt
->
u
.
dst
);
inet
->
cork
.
fragsize
=
mtu
=
dst_pmtu
(
&
rt
->
u
.
dst
);
inet
->
cork
.
length
=
0
;
inet
->
cork
.
length
=
0
;
inet
->
sndmsg_page
=
NULL
;
inet
->
sndmsg_page
=
NULL
;
...
@@ -1465,7 +1466,7 @@ int ip6_push_pending_frames(struct sock *sk)
...
@@ -1465,7 +1466,7 @@ int ip6_push_pending_frames(struct sock *sk)
hdr
->
payload_len
=
htons
(
skb
->
len
-
sizeof
(
struct
ipv6hdr
));
hdr
->
payload_len
=
htons
(
skb
->
len
-
sizeof
(
struct
ipv6hdr
));
else
else
hdr
->
payload_len
=
0
;
hdr
->
payload_len
=
0
;
hdr
->
hop_limit
=
np
->
hop_limit
;
hdr
->
hop_limit
=
np
->
cork
.
hop_limit
;
hdr
->
nexthdr
=
proto
;
hdr
->
nexthdr
=
proto
;
ipv6_addr_copy
(
&
hdr
->
saddr
,
&
fl
->
fl6_src
);
ipv6_addr_copy
(
&
hdr
->
saddr
,
&
fl
->
fl6_src
);
ipv6_addr_copy
(
&
hdr
->
daddr
,
final_dst
);
ipv6_addr_copy
(
&
hdr
->
daddr
,
final_dst
);
...
...
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