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
4183b994
Commit
4183b994
authored
Feb 24, 2004
by
David S. Miller
Committed by
Patrick McHardy
Feb 24, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IPV6]: UDPv6 needs recvmsg csum error path fix too, thanks Olaf.
parent
1caf9958
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
net/ipv6/udp.c
net/ipv6/udp.c
+8
-6
No files found.
net/ipv6/udp.c
View file @
4183b994
...
@@ -381,6 +381,7 @@ static int udpv6_recvmsg(struct kiocb *iocb, struct sock *sk,
...
@@ -381,6 +381,7 @@ static int udpv6_recvmsg(struct kiocb *iocb, struct sock *sk,
if
(
flags
&
MSG_ERRQUEUE
)
if
(
flags
&
MSG_ERRQUEUE
)
return
ipv6_recv_error
(
sk
,
msg
,
len
);
return
ipv6_recv_error
(
sk
,
msg
,
len
);
try_again:
skb
=
skb_recv_datagram
(
sk
,
flags
,
noblock
,
&
err
);
skb
=
skb_recv_datagram
(
sk
,
flags
,
noblock
,
&
err
);
if
(
!
skb
)
if
(
!
skb
)
goto
out
;
goto
out
;
...
@@ -458,12 +459,13 @@ static int udpv6_recvmsg(struct kiocb *iocb, struct sock *sk,
...
@@ -458,12 +459,13 @@ static int udpv6_recvmsg(struct kiocb *iocb, struct sock *sk,
kfree_skb
(
skb
);
kfree_skb
(
skb
);
}
}
/* Error for blocking case is chosen to masquerade
skb_free_datagram
(
sk
,
skb
);
as some normal condition.
*/
if
(
flags
&
MSG_DONTWAIT
)
{
err
=
(
flags
&
MSG_DONTWAIT
)
?
-
EAGAIN
:
-
EHOSTUNREACH
;
UDP6_INC_STATS_USER
(
UdpInErrors
);
UDP6_INC_STATS_USER
(
UdpInErrors
);
return
-
EAGAIN
;
goto
out_free
;
}
goto
try_again
;
}
}
static
void
udpv6_err
(
struct
sk_buff
*
skb
,
struct
inet6_skb_parm
*
opt
,
static
void
udpv6_err
(
struct
sk_buff
*
skb
,
struct
inet6_skb_parm
*
opt
,
...
...
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