mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-23 23:21:46 +00:00
[SCTP]: Annotate ->inaddr_any().
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
c9c938cb05
commit
6fbfa9f951
4 changed files with 4 additions and 4 deletions
|
@ -560,7 +560,7 @@ struct sctp_af {
|
||||||
struct sctp_sock *,
|
struct sctp_sock *,
|
||||||
const struct sk_buff *);
|
const struct sk_buff *);
|
||||||
sctp_scope_t (*scope) (union sctp_addr *);
|
sctp_scope_t (*scope) (union sctp_addr *);
|
||||||
void (*inaddr_any) (union sctp_addr *, unsigned short);
|
void (*inaddr_any) (union sctp_addr *, __be16);
|
||||||
int (*is_any) (const union sctp_addr *);
|
int (*is_any) (const union sctp_addr *);
|
||||||
int (*available) (union sctp_addr *,
|
int (*available) (union sctp_addr *,
|
||||||
struct sctp_sock *);
|
struct sctp_sock *);
|
||||||
|
|
|
@ -478,7 +478,7 @@ static int sctp_v6_cmp_addr(const union sctp_addr *addr1,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Initialize addr struct to INADDR_ANY. */
|
/* Initialize addr struct to INADDR_ANY. */
|
||||||
static void sctp_v6_inaddr_any(union sctp_addr *addr, unsigned short port)
|
static void sctp_v6_inaddr_any(union sctp_addr *addr, __be16 port)
|
||||||
{
|
{
|
||||||
memset(addr, 0x00, sizeof(union sctp_addr));
|
memset(addr, 0x00, sizeof(union sctp_addr));
|
||||||
addr->v6.sin6_family = AF_INET6;
|
addr->v6.sin6_family = AF_INET6;
|
||||||
|
|
|
@ -338,7 +338,7 @@ static int sctp_v4_cmp_addr(const union sctp_addr *addr1,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Initialize addr struct to INADDR_ANY. */
|
/* Initialize addr struct to INADDR_ANY. */
|
||||||
static void sctp_v4_inaddr_any(union sctp_addr *addr, unsigned short port)
|
static void sctp_v4_inaddr_any(union sctp_addr *addr, __be16 port)
|
||||||
{
|
{
|
||||||
addr->v4.sin_family = AF_INET;
|
addr->v4.sin_family = AF_INET;
|
||||||
addr->v4.sin_addr.s_addr = INADDR_ANY;
|
addr->v4.sin_addr.s_addr = INADDR_ANY;
|
||||||
|
|
|
@ -5055,7 +5055,7 @@ static int sctp_autobind(struct sock *sk)
|
||||||
{
|
{
|
||||||
union sctp_addr autoaddr;
|
union sctp_addr autoaddr;
|
||||||
struct sctp_af *af;
|
struct sctp_af *af;
|
||||||
unsigned short port;
|
__be16 port;
|
||||||
|
|
||||||
/* Initialize a local sockaddr structure to INADDR_ANY. */
|
/* Initialize a local sockaddr structure to INADDR_ANY. */
|
||||||
af = sctp_sk(sk)->pf->af;
|
af = sctp_sk(sk)->pf->af;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue