• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/net/sctp/

Lines Matching refs:sock

79 #include <net/sock.h>
89 static int sctp_writeable(struct sock *sk);
93 static int sctp_wait_for_packet(struct sock * sk, int *err, long *timeo_p);
95 static int sctp_wait_for_accept(struct sock *sk, long timeo);
96 static void sctp_wait_for_close(struct sock *sk, long timeo);
99 static int sctp_bindx_add(struct sock *, struct sockaddr *, int);
100 static int sctp_bindx_rem(struct sock *, struct sockaddr *, int);
101 static int sctp_send_asconf_add_ip(struct sock *, struct sockaddr *, int);
102 static int sctp_send_asconf_del_ip(struct sock *, struct sockaddr *, int);
105 static int sctp_do_bind(struct sock *, union sctp_addr *, int);
106 static int sctp_autobind(struct sock *sk);
107 static void sctp_sock_migrate(struct sock *, struct sock *,
120 static void sctp_enter_memory_pressure(struct sock *sk)
162 struct sock *sk = asoc->base.sk;
183 static inline int sctp_verify_addr(struct sock *sk, union sctp_addr *addr,
206 struct sctp_association *sctp_id2assoc(struct sock *sk, sctp_assoc_t id)
244 static struct sctp_transport *sctp_addr_id2transport(struct sock *sk,
279 SCTP_STATIC int sctp_bind(struct sock *sk, struct sockaddr *addr, int addr_len)
300 static long sctp_get_port_local(struct sock *, union sctp_addr *);
333 SCTP_STATIC int sctp_do_bind(struct sock *sk, union sctp_addr *addr, int len)
461 static int sctp_bindx_add(struct sock *sk, struct sockaddr *addrs, int addrcnt)
511 static int sctp_send_asconf_add_ip(struct sock *sk,
621 static int sctp_bindx_rem(struct sock *sk, struct sockaddr *addrs, int addrcnt)
689 static int sctp_send_asconf_del_ip(struct sock *sk,
877 SCTP_STATIC int sctp_setsockopt_bindx(struct sock* sk,
959 /* __sctp_connect(struct sock* sk, struct sockaddr *kaddrs, int addrs_size)
964 static int __sctp_connect(struct sock* sk,
1217 SCTP_STATIC int __sctp_setsockopt_connectx(struct sock* sk,
1255 SCTP_STATIC int sctp_setsockopt_connectx_old(struct sock* sk,
1268 SCTP_STATIC int sctp_setsockopt_connectx(struct sock* sk,
1291 SCTP_STATIC int sctp_getsockopt_connectx3(struct sock* sk, int len,
1319 SCTP_STATIC void sctp_close(struct sock *sk, long timeout)
1377 /* Hold the sock, since sk_common_release() will put sock_put()
1388 SCTP_DBG_OBJCNT_DEC(sock);
1392 static int sctp_error(struct sock *sk, int flags, int err)
1426 SCTP_STATIC int sctp_sendmsg(struct kiocb *iocb, struct sock *sk,
1868 static struct sk_buff *sctp_skb_recv_datagram(struct sock *, int, int, int *);
1870 SCTP_STATIC int sctp_recvmsg(struct kiocb *iocb, struct sock *sk,
1976 static int sctp_setsockopt_disable_fragments(struct sock *sk,
1993 static int sctp_setsockopt_events(struct sock *sk, char __user *optval,
2014 static int sctp_setsockopt_autoclose(struct sock *sk, char __user *optval,
2269 static int sctp_setsockopt_peer_addr_params(struct sock *sk,
2382 static int sctp_setsockopt_delayed_ack(struct sock *sk,
2499 static int sctp_setsockopt_initmsg(struct sock *sk, char __user *optval, unsigned int optlen)
2535 static int sctp_setsockopt_default_send_param(struct sock *sk,
2575 static int sctp_setsockopt_primary_addr(struct sock *sk, char __user *optval,
2604 static int sctp_setsockopt_nodelay(struct sock *sk, char __user *optval,
2630 static int sctp_setsockopt_rtoinfo(struct sock *sk, char __user *optval, unsigned int optlen)
2683 static int sctp_setsockopt_associnfo(struct sock *sk, char __user *optval, unsigned int optlen)
2755 static int sctp_setsockopt_mappedv4(struct sock *sk, char __user *optval, unsigned int optlen)
2799 static int sctp_setsockopt_maxseg(struct sock *sk, char __user *optval, unsigned int optlen)
2853 static int sctp_setsockopt_peer_primary_addr(struct sock *sk, char __user *optval,
2904 static int sctp_setsockopt_adaptation_layer(struct sock *sk, char __user *optval,
2933 static int sctp_setsockopt_context(struct sock *sk, char __user *optval,
2983 static int sctp_setsockopt_fragment_interleave(struct sock *sk,
3016 static int sctp_setsockopt_partial_delivery_point(struct sock *sk,
3049 static int sctp_setsockopt_maxburst(struct sock *sk,
3094 static int sctp_setsockopt_auth_chunk(struct sock *sk,
3126 static int sctp_setsockopt_hmac_ident(struct sock *sk,
3168 static int sctp_setsockopt_auth_key(struct sock *sk,
3214 static int sctp_setsockopt_active_key(struct sock *sk,
3242 static int sctp_setsockopt_del_key(struct sock *sk,
3286 SCTP_STATIC int sctp_setsockopt(struct sock *sk, int level, int optname,
3440 SCTP_STATIC int sctp_connect(struct sock *sk, struct sockaddr *addr,
3466 SCTP_STATIC int sctp_disconnect(struct sock *sk, int flags)
3478 SCTP_STATIC struct sock *sctp_accept(struct sock *sk, int flags, int *err)
3482 struct sock *newsk = NULL;
3531 SCTP_STATIC int sctp_ioctl(struct sock *sk, int cmd, unsigned long arg)
3537 * initialized the SCTP-specific portion of the sock.
3538 * The sock structure should already be zero-filled memory.
3540 SCTP_STATIC int sctp_init_sock(struct sock *sk)
3656 SCTP_DBG_OBJCNT_INC(sock);
3667 SCTP_STATIC void sctp_destroy_sock(struct sock *sk)
3698 SCTP_STATIC void sctp_shutdown(struct sock *sk, int how)
3723 static int sctp_getsockopt_sctp_status(struct sock *sk, int len,
3803 static int sctp_getsockopt_peer_addr_info(struct sock *sk, int len,
3858 static int sctp_getsockopt_disable_fragments(struct sock *sk, int len,
3880 static int sctp_getsockopt_events(struct sock *sk, int len, char __user *optval,
3904 static int sctp_getsockopt_autoclose(struct sock *sk, int len, char __user *optval, int __user *optlen)
3923 struct sock *sk = asoc->base.sk;
3924 struct socket *sock;
3935 err = sock_create(sk->sk_family, SOCK_SEQPACKET, IPPROTO_SCTP, &sock);
3939 sctp_copy_sock(sock->sk, sk, asoc);
3950 sctp_sock_migrate(sk, sock->sk, asoc, SCTP_SOCKET_UDP_HIGH_BANDWIDTH);
3952 *sockp = sock;
3957 static int sctp_getsockopt_peeloff(struct sock *sk, int len, char __user *optval, int __user *optlen)
4096 static int sctp_getsockopt_peer_addr_params(struct sock *sk, int len,
4205 static int sctp_getsockopt_delayed_ack(struct sock *sk, int len,
4277 static int sctp_getsockopt_initmsg(struct sock *sk, int len, char __user *optval, int __user *optlen)
4290 static int sctp_getsockopt_peer_addrs(struct sock *sk, int len,
4341 static int sctp_copy_laddrs(struct sock *sk, __u16 port, void *to,
4385 static int sctp_getsockopt_local_addrs(struct sock *sk, int len,
4490 static int sctp_getsockopt_primary_addr(struct sock *sk, int len,
4532 static int sctp_getsockopt_adaptation_layer(struct sock *sk, int len,
4571 static int sctp_getsockopt_default_send_param(struct sock *sk,
4623 static int sctp_getsockopt_nodelay(struct sock *sk, int len,
4652 static int sctp_getsockopt_rtoinfo(struct sock *sk, int len,
4705 static int sctp_getsockopt_associnfo(struct sock *sk, int len,
4776 static int sctp_getsockopt_mappedv4(struct sock *sk, int len,
4799 static int sctp_getsockopt_context(struct sock *sk, int len,
4860 static int sctp_getsockopt_maxseg(struct sock *sk, int len,
4905 static int sctp_getsockopt_fragment_interleave(struct sock *sk, int len,
4928 static int sctp_getsockopt_partial_delivery_point(struct sock *sk, int len,
4952 static int sctp_getsockopt_maxburst(struct sock *sk, int len,
4995 static int sctp_getsockopt_hmac_ident(struct sock *sk, int len,
5024 static int sctp_getsockopt_active_key(struct sock *sk, int len,
5056 static int sctp_getsockopt_peer_auth_chunks(struct sock *sk, int len,
5099 static int sctp_getsockopt_local_auth_chunks(struct sock *sk, int len,
5152 static int sctp_getsockopt_assoc_number(struct sock *sk, int len,
5179 SCTP_STATIC int sctp_getsockopt(struct sock *sk, int level, int optname,
5320 static void sctp_hash(struct sock *sk)
5325 static void sctp_unhash(struct sock *sk)
5333 static long sctp_get_port_local(struct sock *sk, union sctp_addr *addr)
5406 struct sock *sk2;
5415 * bind_pprev in the struct sock *sk2 (pp->sk)]. On each one,
5478 static int sctp_get_port(struct sock *sk, unsigned short snum)
5497 SCTP_STATIC int sctp_listen_start(struct sock *sk, int backlog)
5558 int sctp_inet_listen(struct socket *sock, int backlog)
5560 struct sock *sk = sock->sk;
5573 if (sock->state != SS_UNCONNECTED)
5617 unsigned int sctp_poll(struct file *file, struct socket *sock, poll_table *wait)
5619 struct sock *sk = sock->sk;
5701 static inline void __sctp_put_port(struct sock *sk)
5716 void sctp_put_port(struct sock *sk)
5729 static int sctp_autobind(struct sock *sk)
5859 static int sctp_wait_for_packet(struct sock * sk, int *err, long *timeo_p)
5917 static struct sk_buff *sctp_skb_recv_datagram(struct sock *sk, int flags,
5974 struct sock *sk = asoc->base.sk;
5975 struct socket *sock = sk->sk_socket;
5977 if ((sctp_wspace(asoc) > 0) && sock) {
5989 if (sock->wq->fasync_list &&
5991 sock_wake_async(sock,
6005 struct sock *sk;
6036 struct sock *sk = skb->sk;
6052 struct sock *sk = asoc->base.sk;
6109 void sctp_data_ready(struct sock *sk, int len)
6123 void sctp_write_space(struct sock *sk)
6144 static int sctp_writeable(struct sock *sk)
6159 struct sock *sk = asoc->base.sk;
6220 static int sctp_wait_for_accept(struct sock *sk, long timeo)
6261 static void sctp_wait_for_close(struct sock *sk, long timeout)
6277 static void sctp_skb_set_owner_r_frag(struct sk_buff *skb, struct sock *sk)
6292 void sctp_copy_sock(struct sock *newsk, struct sock *sk,
6337 static void sctp_sock_migrate(struct sock *oldsk, struct sock *newsk,