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
nexedi
linux
Commits
dae0e204
Commit
dae0e204
authored
Jun 11, 2003
by
Hideaki Yoshifuji
Committed by
David S. Miller
Jun 11, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IPV6]: Use sizeof(struct frag_hdr) instead of magic value.
parent
88df8de5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
net/ipv6/reassembly.c
net/ipv6/reassembly.c
+5
-4
No files found.
net/ipv6/reassembly.c
View file @
dae0e204
...
...
@@ -596,7 +596,7 @@ static int ip6_frag_reasm(struct frag_queue *fq, struct sk_buff **skb_in,
BUG_TRAP
(
FRAG6_CB
(
head
)
->
offset
==
0
);
/* Unfragmented part is taken from the first segment. */
payload_len
=
(
head
->
data
-
head
->
nh
.
raw
)
-
sizeof
(
struct
ipv6hdr
)
+
fq
->
len
-
8
;
payload_len
=
(
head
->
data
-
head
->
nh
.
raw
)
-
sizeof
(
struct
ipv6hdr
)
+
fq
->
len
-
sizeof
(
struct
frag_hdr
)
;
if
(
payload_len
>
65535
)
goto
out_oversize
;
...
...
@@ -631,9 +631,10 @@ static int ip6_frag_reasm(struct frag_queue *fq, struct sk_buff **skb_in,
* header in order to calculate ICV correctly. */
nhoff
=
fq
->
nhoffset
;
head
->
nh
.
raw
[
nhoff
]
=
head
->
h
.
raw
[
0
];
memmove
(
head
->
head
+
8
,
head
->
head
,
(
head
->
data
-
head
->
head
)
-
8
);
head
->
mac
.
raw
+=
8
;
head
->
nh
.
raw
+=
8
;
memmove
(
head
->
head
+
sizeof
(
struct
frag_hdr
),
head
->
head
,
(
head
->
data
-
head
->
head
)
-
sizeof
(
struct
frag_hdr
));
head
->
mac
.
raw
+=
sizeof
(
struct
frag_hdr
);
head
->
nh
.
raw
+=
sizeof
(
struct
frag_hdr
);
skb_shinfo
(
head
)
->
frag_list
=
head
->
next
;
head
->
h
.
raw
=
head
->
data
;
...
...
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