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
d5231ae9
Commit
d5231ae9
authored
Jan 08, 2004
by
Stephen Hemminger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[LLC]: Use size_t for size in {send,recv}msg.
parent
b6c65c62
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
net/llc/af_llc.c
net/llc/af_llc.c
+6
-4
No files found.
net/llc/af_llc.c
View file @
d5231ae9
...
@@ -671,12 +671,13 @@ static int llc_ui_accept(struct socket *sock, struct socket *newsock, int flags)
...
@@ -671,12 +671,13 @@ static int llc_ui_accept(struct socket *sock, struct socket *newsock, int flags)
* Returns non-negative upon success, negative otherwise.
* Returns non-negative upon success, negative otherwise.
*/
*/
static
int
llc_ui_recvmsg
(
struct
kiocb
*
iocb
,
struct
socket
*
sock
,
static
int
llc_ui_recvmsg
(
struct
kiocb
*
iocb
,
struct
socket
*
sock
,
struct
msghdr
*
msg
,
in
t
size
,
int
flags
)
struct
msghdr
*
msg
,
size_
t
size
,
int
flags
)
{
{
struct
sock
*
sk
=
sock
->
sk
;
struct
sock
*
sk
=
sock
->
sk
;
struct
sockaddr_llc
*
uaddr
=
(
struct
sockaddr_llc
*
)
msg
->
msg_name
;
struct
sockaddr_llc
*
uaddr
=
(
struct
sockaddr_llc
*
)
msg
->
msg_name
;
struct
sk_buff
*
skb
;
struct
sk_buff
*
skb
;
int
rc
=
-
ENOMEM
,
copied
=
0
,
timeout
;
size_t
copied
=
0
;
int
rc
=
-
ENOMEM
,
timeout
;
int
noblock
=
flags
&
MSG_DONTWAIT
;
int
noblock
=
flags
&
MSG_DONTWAIT
;
dprintk
(
"%s: receiving in %02X from %02X
\n
"
,
__FUNCTION__
,
dprintk
(
"%s: receiving in %02X from %02X
\n
"
,
__FUNCTION__
,
...
@@ -725,7 +726,7 @@ static int llc_ui_recvmsg(struct kiocb *iocb, struct socket *sock,
...
@@ -725,7 +726,7 @@ static int llc_ui_recvmsg(struct kiocb *iocb, struct socket *sock,
* Returns non-negative upon success, negative otherwise.
* Returns non-negative upon success, negative otherwise.
*/
*/
static
int
llc_ui_sendmsg
(
struct
kiocb
*
iocb
,
struct
socket
*
sock
,
static
int
llc_ui_sendmsg
(
struct
kiocb
*
iocb
,
struct
socket
*
sock
,
struct
msghdr
*
msg
,
in
t
len
)
struct
msghdr
*
msg
,
size_
t
len
)
{
{
struct
sock
*
sk
=
sock
->
sk
;
struct
sock
*
sk
=
sock
->
sk
;
struct
llc_opt
*
llc
=
llc_sk
(
sk
);
struct
llc_opt
*
llc
=
llc_sk
(
sk
);
...
@@ -734,7 +735,8 @@ static int llc_ui_sendmsg(struct kiocb *iocb, struct socket *sock,
...
@@ -734,7 +735,8 @@ static int llc_ui_sendmsg(struct kiocb *iocb, struct socket *sock,
int
noblock
=
flags
&
MSG_DONTWAIT
;
int
noblock
=
flags
&
MSG_DONTWAIT
;
struct
net_device
*
dev
;
struct
net_device
*
dev
;
struct
sk_buff
*
skb
;
struct
sk_buff
*
skb
;
int
rc
=
-
EINVAL
,
size
=
0
,
copied
=
0
,
hdrlen
;
size_t
size
=
0
;
int
rc
=
-
EINVAL
,
copied
=
0
,
hdrlen
;
dprintk
(
"%s: sending from %02X to %02X
\n
"
,
__FUNCTION__
,
dprintk
(
"%s: sending from %02X to %02X
\n
"
,
__FUNCTION__
,
llc
->
laddr
.
lsap
,
llc
->
daddr
.
lsap
);
llc
->
laddr
.
lsap
,
llc
->
daddr
.
lsap
);
...
...
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