Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
bind_addr.c File Reference
#include <linux/types.h>
#include <linux/slab.h>
#include <linux/in.h>
#include <net/sock.h>
#include <net/ipv6.h>
#include <net/if_inet6.h>
#include <net/sctp/sctp.h>
#include <net/sctp/sm.h>

Go to the source code of this file.

Functions

int sctp_bind_addr_copy (struct net *net, struct sctp_bind_addr *dest, const struct sctp_bind_addr *src, sctp_scope_t scope, gfp_t gfp, int flags)
 
int sctp_bind_addr_dup (struct sctp_bind_addr *dest, const struct sctp_bind_addr *src, gfp_t gfp)
 
void sctp_bind_addr_init (struct sctp_bind_addr *bp, __u16 port)
 
void sctp_bind_addr_free (struct sctp_bind_addr *bp)
 
int sctp_add_bind_addr (struct sctp_bind_addr *bp, union sctp_addr *new, __u8 addr_state, gfp_t gfp)
 
int sctp_del_bind_addr (struct sctp_bind_addr *bp, union sctp_addr *del_addr)
 
union sctp_params sctp_bind_addrs_to_raw (const struct sctp_bind_addr *bp, int *addrs_len, gfp_t gfp)
 
int sctp_raw_to_bind_addrs (struct sctp_bind_addr *bp, __u8 *raw_addr_list, int addrs_len, __u16 port, gfp_t gfp)
 
int sctp_bind_addr_match (struct sctp_bind_addr *bp, const union sctp_addr *addr, struct sctp_sock *opt)
 
int sctp_bind_addr_conflict (struct sctp_bind_addr *bp, const union sctp_addr *addr, struct sctp_sock *bp_sp, struct sctp_sock *addr_sp)
 
int sctp_bind_addr_state (const struct sctp_bind_addr *bp, const union sctp_addr *addr)
 
union sctp_addrsctp_find_unmatch_addr (struct sctp_bind_addr *bp, const union sctp_addr *addrs, int addrcnt, struct sctp_sock *opt)
 
int sctp_is_any (struct sock *sk, const union sctp_addr *addr)
 
int sctp_in_scope (struct net *net, const union sctp_addr *addr, sctp_scope_t scope)
 
int sctp_is_ep_boundall (struct sock *sk)
 
sctp_scope_t sctp_scope (const union sctp_addr *addr)
 

Function Documentation

int sctp_add_bind_addr ( struct sctp_bind_addr bp,
union sctp_addr new,
__u8  addr_state,
gfp_t  gfp 
)

Definition at line 166 of file bind_addr.c.

int sctp_bind_addr_conflict ( struct sctp_bind_addr bp,
const union sctp_addr addr,
struct sctp_sock bp_sp,
struct sctp_sock addr_sp 
)

Definition at line 352 of file bind_addr.c.

int sctp_bind_addr_copy ( struct net net,
struct sctp_bind_addr dest,
const struct sctp_bind_addr src,
sctp_scope_t  scope,
gfp_t  gfp,
int  flags 
)

Definition at line 65 of file bind_addr.c.

int sctp_bind_addr_dup ( struct sctp_bind_addr dest,
const struct sctp_bind_addr src,
gfp_t  gfp 
)

Definition at line 110 of file bind_addr.c.

void sctp_bind_addr_free ( struct sctp_bind_addr bp)

Definition at line 154 of file bind_addr.c.

void sctp_bind_addr_init ( struct sctp_bind_addr bp,
__u16  port 
)

Definition at line 132 of file bind_addr.c.

int sctp_bind_addr_match ( struct sctp_bind_addr bp,
const union sctp_addr addr,
struct sctp_sock opt 
)

Definition at line 328 of file bind_addr.c.

int sctp_bind_addr_state ( const struct sctp_bind_addr bp,
const union sctp_addr addr 
)

Definition at line 387 of file bind_addr.c.

union sctp_params sctp_bind_addrs_to_raw ( const struct sctp_bind_addr bp,
int addrs_len,
gfp_t  gfp 
)
write

Definition at line 233 of file bind_addr.c.

int sctp_del_bind_addr ( struct sctp_bind_addr bp,
union sctp_addr del_addr 
)

Definition at line 201 of file bind_addr.c.

union sctp_addr* sctp_find_unmatch_addr ( struct sctp_bind_addr bp,
const union sctp_addr addrs,
int  addrcnt,
struct sctp_sock opt 
)
write

Definition at line 415 of file bind_addr.c.

int sctp_in_scope ( struct net net,
const union sctp_addr addr,
sctp_scope_t  scope 
)

Definition at line 497 of file bind_addr.c.

int sctp_is_any ( struct sock sk,
const union sctp_addr addr 
)

Definition at line 478 of file bind_addr.c.

int sctp_is_ep_boundall ( struct sock sk)

Definition at line 537 of file bind_addr.c.

int sctp_raw_to_bind_addrs ( struct sctp_bind_addr bp,
__u8 raw_addr_list,
int  addrs_len,
__u16  port,
gfp_t  gfp 
)

Definition at line 285 of file bind_addr.c.

sctp_scope_t sctp_scope ( const union sctp_addr addr)

Definition at line 557 of file bind_addr.c.