mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-22 22:51:37 +00:00
net: Use standard structures for generic socket address structures.
Use sockaddr_storage{} for generic socket address storage and ensures proper alignment. Use sockaddr{} for pointers to omit several casts. Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
53b7997fd5
commit
230b183921
5 changed files with 52 additions and 42 deletions
|
@ -75,7 +75,7 @@ int get_compat_msghdr(struct msghdr *kmsg, struct compat_msghdr __user *umsg)
|
|||
|
||||
/* I've named the args so it is easy to tell whose space the pointers are in. */
|
||||
int verify_compat_iovec(struct msghdr *kern_msg, struct iovec *kern_iov,
|
||||
char *kern_address, int mode)
|
||||
struct sockaddr *kern_address, int mode)
|
||||
{
|
||||
int tot_len;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue