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
adc0b068
Commit
adc0b068
authored
Oct 11, 2002
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
net/ipv6/udp.c: Update for new sendmsg/recvmsg args.
parent
367b468d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
net/ipv6/udp.c
net/ipv6/udp.c
+4
-4
No files found.
net/ipv6/udp.c
View file @
adc0b068
...
@@ -373,7 +373,7 @@ static void udpv6_close(struct sock *sk, long timeout)
...
@@ -373,7 +373,7 @@ static void udpv6_close(struct sock *sk, long timeout)
* return it, otherwise we block.
* return it, otherwise we block.
*/
*/
static
int
udpv6_recvmsg
(
struct
sock
*
sk
,
struct
msghdr
*
msg
,
int
len
,
static
int
udpv6_recvmsg
(
struct
kiocb
*
iocb
,
struct
sock
*
sk
,
struct
msghdr
*
msg
,
int
len
,
int
noblock
,
int
flags
,
int
*
addr_len
)
int
noblock
,
int
flags
,
int
*
addr_len
)
{
{
struct
ipv6_pinfo
*
np
=
inet6_sk
(
sk
);
struct
ipv6_pinfo
*
np
=
inet6_sk
(
sk
);
...
@@ -765,7 +765,7 @@ static int udpv6_getfrag(const void *data, struct in6_addr *addr,
...
@@ -765,7 +765,7 @@ static int udpv6_getfrag(const void *data, struct in6_addr *addr,
return
0
;
return
0
;
}
}
static
int
udpv6_sendmsg
(
struct
sock
*
sk
,
struct
msghdr
*
msg
,
int
ulen
)
static
int
udpv6_sendmsg
(
struct
kiocb
*
iocb
,
struct
sock
*
sk
,
struct
msghdr
*
msg
,
int
ulen
)
{
{
struct
ipv6_txoptions
opt_space
;
struct
ipv6_txoptions
opt_space
;
struct
udpv6fakehdr
udh
;
struct
udpv6fakehdr
udh
;
...
@@ -794,7 +794,7 @@ static int udpv6_sendmsg(struct sock *sk, struct msghdr *msg, int ulen)
...
@@ -794,7 +794,7 @@ static int udpv6_sendmsg(struct sock *sk, struct msghdr *msg, int ulen)
if
(
sin6
)
{
if
(
sin6
)
{
if
(
sin6
->
sin6_family
==
AF_INET
)
if
(
sin6
->
sin6_family
==
AF_INET
)
return
udp_sendmsg
(
sk
,
msg
,
ulen
);
return
udp_sendmsg
(
iocb
,
sk
,
msg
,
ulen
);
if
(
addr_len
<
SIN6_LEN_RFC2133
)
if
(
addr_len
<
SIN6_LEN_RFC2133
)
return
-
EINVAL
;
return
-
EINVAL
;
...
@@ -848,7 +848,7 @@ static int udpv6_sendmsg(struct sock *sk, struct msghdr *msg, int ulen)
...
@@ -848,7 +848,7 @@ static int udpv6_sendmsg(struct sock *sk, struct msghdr *msg, int ulen)
msg
->
msg_namelen
=
sizeof
(
sin
);
msg
->
msg_namelen
=
sizeof
(
sin
);
fl6_sock_release
(
flowlabel
);
fl6_sock_release
(
flowlabel
);
return
udp_sendmsg
(
sk
,
msg
,
ulen
);
return
udp_sendmsg
(
iocb
,
sk
,
msg
,
ulen
);
}
}
udh
.
daddr
=
NULL
;
udh
.
daddr
=
NULL
;
...
...
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