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
5831945d
Commit
5831945d
authored
Jan 08, 2004
by
Stephen Hemminger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IPX]: Use size_t for size in {send,recv}msg.
parent
89aebaff
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
net/ipx/af_ipx.c
net/ipx/af_ipx.c
+6
-2
net/ipx/ipx_route.c
net/ipx/ipx_route.c
+2
-2
No files found.
net/ipx/af_ipx.c
View file @
5831945d
...
@@ -1683,7 +1683,7 @@ int ipx_rcv(struct sk_buff *skb, struct net_device *dev, struct packet_type *pt)
...
@@ -1683,7 +1683,7 @@ int ipx_rcv(struct sk_buff *skb, struct net_device *dev, struct packet_type *pt)
}
}
static
int
ipx_sendmsg
(
struct
kiocb
*
iocb
,
struct
socket
*
sock
,
static
int
ipx_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
ipx_opt
*
ipxs
=
ipx_sk
(
sk
);
struct
ipx_opt
*
ipxs
=
ipx_sk
(
sk
);
...
@@ -1698,6 +1698,10 @@ static int ipx_sendmsg(struct kiocb *iocb, struct socket *sock,
...
@@ -1698,6 +1698,10 @@ static int ipx_sendmsg(struct kiocb *iocb, struct socket *sock,
if
(
flags
&
~
MSG_DONTWAIT
)
if
(
flags
&
~
MSG_DONTWAIT
)
goto
out
;
goto
out
;
/* Max possible packet size limited by 16 bit pktsize in header */
if
(
len
>=
65535
-
sizeof
(
struct
ipxhdr
))
goto
out
;
if
(
usipx
)
{
if
(
usipx
)
{
if
(
!
ipxs
->
port
)
{
if
(
!
ipxs
->
port
)
{
struct
sockaddr_ipx
uaddr
;
struct
sockaddr_ipx
uaddr
;
...
@@ -1744,7 +1748,7 @@ static int ipx_sendmsg(struct kiocb *iocb, struct socket *sock,
...
@@ -1744,7 +1748,7 @@ static int ipx_sendmsg(struct kiocb *iocb, struct socket *sock,
static
int
ipx_recvmsg
(
struct
kiocb
*
iocb
,
struct
socket
*
sock
,
static
int
ipx_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
ipx_opt
*
ipxs
=
ipx_sk
(
sk
);
struct
ipx_opt
*
ipxs
=
ipx_sk
(
sk
);
...
...
net/ipx/ipx_route.c
View file @
5831945d
...
@@ -169,13 +169,13 @@ int ipxrtr_route_skb(struct sk_buff *skb)
...
@@ -169,13 +169,13 @@ int ipxrtr_route_skb(struct sk_buff *skb)
* Route an outgoing frame from a socket.
* Route an outgoing frame from a socket.
*/
*/
int
ipxrtr_route_packet
(
struct
sock
*
sk
,
struct
sockaddr_ipx
*
usipx
,
int
ipxrtr_route_packet
(
struct
sock
*
sk
,
struct
sockaddr_ipx
*
usipx
,
struct
iovec
*
iov
,
in
t
len
,
int
noblock
)
struct
iovec
*
iov
,
size_
t
len
,
int
noblock
)
{
{
struct
sk_buff
*
skb
;
struct
sk_buff
*
skb
;
struct
ipx_opt
*
ipxs
=
ipx_sk
(
sk
);
struct
ipx_opt
*
ipxs
=
ipx_sk
(
sk
);
struct
ipx_interface
*
intrfc
;
struct
ipx_interface
*
intrfc
;
struct
ipxhdr
*
ipx
;
struct
ipxhdr
*
ipx
;
in
t
size
;
size_
t
size
;
int
ipx_offset
;
int
ipx_offset
;
struct
ipx_route
*
rt
=
NULL
;
struct
ipx_route
*
rt
=
NULL
;
int
rc
;
int
rc
;
...
...
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