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
3280a252
Commit
3280a252
authored
May 21, 2004
by
Hideaki Yoshifuji
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IPV6] unify XXX_push_pending_frames() code path for rawv6 sockets.
parent
899b0e04
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
net/ipv6/raw.c
net/ipv6/raw.c
+6
-7
No files found.
net/ipv6/raw.c
View file @
3280a252
...
...
@@ -453,6 +453,9 @@ static int rawv6_push_pending_frames(struct sock *sk, struct flowi *fl, struct r
int
err
=
0
;
u16
*
csum
;
if
(
!
opt
->
checksum
)
goto
send
;
if
((
skb
=
skb_peek
(
&
sk
->
sk_write_queue
))
==
NULL
)
goto
out
;
...
...
@@ -485,6 +488,7 @@ static int rawv6_push_pending_frames(struct sock *sk, struct flowi *fl, struct r
}
if
(
*
csum
==
0
)
*
csum
=
-
1
;
send:
err
=
ip6_push_pending_frames
(
sk
);
out:
return
err
;
...
...
@@ -702,13 +706,8 @@ static int rawv6_sendmsg(struct kiocb *iocb, struct sock *sk,
if
(
err
)
ip6_flush_pending_frames
(
sk
);
else
if
(
!
(
msg
->
msg_flags
&
MSG_MORE
))
{
if
(
raw_opt
->
checksum
)
{
err
=
rawv6_push_pending_frames
(
sk
,
&
fl
,
raw_opt
,
len
);
}
else
{
err
=
ip6_push_pending_frames
(
sk
);
}
}
else
if
(
!
(
msg
->
msg_flags
&
MSG_MORE
))
err
=
rawv6_push_pending_frames
(
sk
,
&
fl
,
raw_opt
,
len
);
}
done:
ip6_dst_store
(
sk
,
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