Lines Matching defs:sk

100 static void sctp_enter_memory_pressure(struct sock *sk)  in sctp_enter_memory_pressure()
109 struct sock *sk = asoc->base.sk; in sctp_wspace() local
127 struct sock *sk = asoc->base.sk; in sctp_set_owner_w() local
192 static void sctp_for_each_rx_skb(struct sctp_association *asoc, struct sock *sk, in sctp_for_each_rx_skb()
209 static inline int sctp_verify_addr(struct sock *sk, union sctp_addr *addr, in sctp_verify_addr()
232 struct sctp_association *sctp_id2assoc(struct sock *sk, sctp_assoc_t id) in sctp_id2assoc()
269 static struct sctp_transport *sctp_addr_id2transport(struct sock *sk, in sctp_addr_id2transport()
308 static int sctp_bind(struct sock *sk, struct sockaddr *addr, int addr_len) in sctp_bind()
375 static int sctp_do_bind(struct sock *sk, union sctp_addr *addr, int len) in sctp_do_bind()
504 static int sctp_bindx_add(struct sock *sk, struct sockaddr *addrs, int addrcnt) in sctp_bindx_add()
554 static int sctp_send_asconf_add_ip(struct sock *sk, in sctp_send_asconf_add_ip()
677 static int sctp_bindx_rem(struct sock *sk, struct sockaddr *addrs, int addrcnt) in sctp_bindx_rem()
756 static int sctp_send_asconf_del_ip(struct sock *sk, in sctp_send_asconf_del_ip()
910 struct sock *sk = sctp_opt2sk(sp); in sctp_asconf_mgmt() local
998 static int sctp_setsockopt_bindx(struct sock *sk, struct sockaddr *addrs, in sctp_setsockopt_bindx()
1055 static int sctp_bind_add(struct sock *sk, struct sockaddr *addrs, in sctp_bind_add()
1072 struct sock *sk = ep->base.sk; in sctp_connect_new_asoc() local
1165 static int __sctp_connect(struct sock *sk, struct sockaddr *kaddrs, in __sctp_connect()
1310 static int __sctp_setsockopt_connectx(struct sock *sk, struct sockaddr *kaddrs, in __sctp_setsockopt_connectx()
1342 static int sctp_setsockopt_connectx_old(struct sock *sk, in sctp_setsockopt_connectx_old()
1355 static int sctp_setsockopt_connectx(struct sock *sk, in sctp_setsockopt_connectx()
1386 static int sctp_getsockopt_connectx3(struct sock *sk, int len, in sctp_getsockopt_connectx3()
1482 static void sctp_close(struct sock *sk, long timeout) in sctp_close()
1560 static int sctp_error(struct sock *sk, int flags, int err) in sctp_error()
1595 static int sctp_sendmsg_parse(struct sock *sk, struct sctp_cmsgs *cmsgs, in sctp_sendmsg_parse()
1656 static int sctp_sendmsg_new_asoc(struct sock *sk, __u16 sflags, in sctp_sendmsg_new_asoc()
1755 struct sock *sk = asoc->base.sk; in sctp_sendmsg_check_sflags() local
1794 struct sock *sk = asoc->base.sk; in sctp_sendmsg_to_asoc() local
1893 static union sctp_addr *sctp_sendmsg_get_daddr(struct sock *sk, in sctp_sendmsg_get_daddr()
1942 static int sctp_sendmsg(struct sock *sk, struct msghdr *msg, size_t msg_len) in sctp_sendmsg()
2089 static int sctp_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, in sctp_recvmsg()
2203 static int sctp_setsockopt_disable_fragments(struct sock *sk, int *val, in sctp_setsockopt_disable_fragments()
2212 static int sctp_setsockopt_events(struct sock *sk, __u8 *sn_type, in sctp_setsockopt_events()
2261 static int sctp_setsockopt_autoclose(struct sock *sk, u32 *optval, in sctp_setsockopt_autoclose()
2609 static int sctp_setsockopt_peer_addr_params(struct sock *sk, in sctp_setsockopt_peer_addr_params()
2770 static int __sctp_setsockopt_delayed_ack(struct sock *sk, in __sctp_setsockopt_delayed_ack()
2823 static int sctp_setsockopt_delayed_ack(struct sock *sk, in sctp_setsockopt_delayed_ack()
2861 static int sctp_setsockopt_initmsg(struct sock *sk, struct sctp_initmsg *sinit, in sctp_setsockopt_initmsg()
2895 static int sctp_setsockopt_default_send_param(struct sock *sk, in sctp_setsockopt_default_send_param()
2953 static int sctp_setsockopt_default_sndinfo(struct sock *sk, in sctp_setsockopt_default_sndinfo()
3011 static int sctp_setsockopt_primary_addr(struct sock *sk, struct sctp_prim *prim, in sctp_setsockopt_primary_addr()
3049 static int sctp_setsockopt_nodelay(struct sock *sk, int *val, in sctp_setsockopt_nodelay()
3070 static int sctp_setsockopt_rtoinfo(struct sock *sk, in sctp_setsockopt_rtoinfo()
3134 static int sctp_setsockopt_associnfo(struct sock *sk, in sctp_setsockopt_associnfo()
3202 static int sctp_setsockopt_mappedv4(struct sock *sk, int *val, in sctp_setsockopt_mappedv4()
3244 static int sctp_setsockopt_maxseg(struct sock *sk, in sctp_setsockopt_maxseg()
3304 static int sctp_setsockopt_peer_primary_addr(struct sock *sk, in sctp_setsockopt_peer_primary_addr()
3365 static int sctp_setsockopt_adaptation_layer(struct sock *sk, in sctp_setsockopt_adaptation_layer()
3391 static int sctp_setsockopt_context(struct sock *sk, in sctp_setsockopt_context()
3451 static int sctp_setsockopt_fragment_interleave(struct sock *sk, int *val, in sctp_setsockopt_fragment_interleave()
3482 static int sctp_setsockopt_partial_delivery_point(struct sock *sk, u32 *val, in sctp_setsockopt_partial_delivery_point()
3510 static int sctp_setsockopt_maxburst(struct sock *sk, in sctp_setsockopt_maxburst()
3563 static int sctp_setsockopt_auth_chunk(struct sock *sk, in sctp_setsockopt_auth_chunk()
3593 static int sctp_setsockopt_hmac_ident(struct sock *sk, in sctp_setsockopt_hmac_ident()
3622 static int sctp_setsockopt_auth_key(struct sock *sk, in sctp_setsockopt_auth_key()
3683 static int sctp_setsockopt_active_key(struct sock *sk, in sctp_setsockopt_active_key()
3731 static int sctp_setsockopt_del_key(struct sock *sk, in sctp_setsockopt_del_key()
3779 static int sctp_setsockopt_deactivate_key(struct sock *sk, in sctp_setsockopt_deactivate_key()
3836 static int sctp_setsockopt_auto_asconf(struct sock *sk, int *val, in sctp_setsockopt_auto_asconf()
3868 static int sctp_setsockopt_paddr_thresholds(struct sock *sk, in sctp_setsockopt_paddr_thresholds()
3931 static int sctp_setsockopt_recvrcvinfo(struct sock *sk, int *val, in sctp_setsockopt_recvrcvinfo()
3942 static int sctp_setsockopt_recvnxtinfo(struct sock *sk, int *val, in sctp_setsockopt_recvnxtinfo()
3953 static int sctp_setsockopt_pr_supported(struct sock *sk, in sctp_setsockopt_pr_supported()
3972 static int sctp_setsockopt_default_prinfo(struct sock *sk, in sctp_setsockopt_default_prinfo()
4024 static int sctp_setsockopt_reconfig_supported(struct sock *sk, in sctp_setsockopt_reconfig_supported()
4047 static int sctp_setsockopt_enable_strreset(struct sock *sk, in sctp_setsockopt_enable_strreset()
4089 static int sctp_setsockopt_reset_streams(struct sock *sk, in sctp_setsockopt_reset_streams()
4112 static int sctp_setsockopt_reset_assoc(struct sock *sk, sctp_assoc_t *associd, in sctp_setsockopt_reset_assoc()
4127 static int sctp_setsockopt_add_streams(struct sock *sk, in sctp_setsockopt_add_streams()
4143 static int sctp_setsockopt_scheduler(struct sock *sk, in sctp_setsockopt_scheduler()
4186 static int sctp_setsockopt_scheduler_value(struct sock *sk, in sctp_setsockopt_scheduler_value()
4221 static int sctp_setsockopt_interleaving_supported(struct sock *sk, in sctp_setsockopt_interleaving_supported()
4243 static int sctp_setsockopt_reuse_port(struct sock *sk, int *val, in sctp_setsockopt_reuse_port()
4281 static int sctp_setsockopt_event(struct sock *sk, struct sctp_event *param, in sctp_setsockopt_event()
4324 static int sctp_setsockopt_asconf_supported(struct sock *sk, in sctp_setsockopt_asconf_supported()
4354 static int sctp_setsockopt_auth_supported(struct sock *sk, in sctp_setsockopt_auth_supported()
4388 static int sctp_setsockopt_ecn_supported(struct sock *sk, in sctp_setsockopt_ecn_supported()
4410 static int sctp_setsockopt_pf_expose(struct sock *sk, in sctp_setsockopt_pf_expose()
4438 static int sctp_setsockopt_encap_port(struct sock *sk, in sctp_setsockopt_encap_port()
4488 static int sctp_setsockopt_probe_interval(struct sock *sk, in sctp_setsockopt_probe_interval()
4562 static int sctp_setsockopt(struct sock *sk, int level, int optname, in sctp_setsockopt()
4798 static int sctp_connect(struct sock *sk, struct sockaddr *addr, in sctp_connect()
4830 static int sctp_disconnect(struct sock *sk, int flags) in sctp_disconnect()
4842 static struct sock *sctp_accept(struct sock *sk, int flags, int *err, bool kern) in sctp_accept()
4899 static int sctp_ioctl(struct sock *sk, int cmd, int *karg) in sctp_ioctl()
4941 static int sctp_init_sock(struct sock *sk) in sctp_init_sock()
5083 static void sctp_destroy_sock(struct sock *sk) in sctp_destroy_sock()
5107 static void sctp_destruct_common(struct sock *sk) in sctp_destruct_common()
5115 static void sctp_destruct_sock(struct sock *sk) in sctp_destruct_sock()
5137 static void sctp_shutdown(struct sock *sk, int how) in sctp_shutdown()
5156 int sctp_get_sctp_info(struct sock *sk, struct sctp_association *asoc, in sctp_get_sctp_info()
5400 static int sctp_getsockopt_sctp_status(struct sock *sk, int len, in sctp_getsockopt_sctp_status()
5480 static int sctp_getsockopt_peer_addr_info(struct sock *sk, int len, in sctp_getsockopt_peer_addr_info()
5543 static int sctp_getsockopt_disable_fragments(struct sock *sk, int len, in sctp_getsockopt_disable_fragments()
5565 static int sctp_getsockopt_events(struct sock *sk, int len, char __user *optval, in sctp_getsockopt_events()
5600 static int sctp_getsockopt_autoclose(struct sock *sk, int len, char __user *optval, int __user *opt… in sctp_getsockopt_autoclose()
5616 int sctp_do_peeloff(struct sock *sk, sctp_assoc_t id, struct socket **sockp) in sctp_do_peeloff()
5666 static int sctp_getsockopt_peeloff_common(struct sock *sk, sctp_peeloff_arg_t *peeloff, in sctp_getsockopt_peeloff_common()
5702 static int sctp_getsockopt_peeloff(struct sock *sk, int len, char __user *optval, int __user *optle… in sctp_getsockopt_peeloff()
5735 static int sctp_getsockopt_peeloff_flags(struct sock *sk, int len, in sctp_getsockopt_peeloff_flags()
5902 static int sctp_getsockopt_peer_addr_params(struct sock *sk, int len, in sctp_getsockopt_peer_addr_params()
6045 static int sctp_getsockopt_delayed_ack(struct sock *sk, int len, in sctp_getsockopt_delayed_ack()
6119 static int sctp_getsockopt_initmsg(struct sock *sk, int len, char __user *optval, int __user *optle… in sctp_getsockopt_initmsg()
6132 static int sctp_getsockopt_peer_addrs(struct sock *sk, int len, in sctp_getsockopt_peer_addrs()
6183 static int sctp_copy_laddrs(struct sock *sk, __u16 port, void *to, in sctp_copy_laddrs()
6228 static int sctp_getsockopt_local_addrs(struct sock *sk, int len, in sctp_getsockopt_local_addrs()
6336 static int sctp_getsockopt_primary_addr(struct sock *sk, int len, in sctp_getsockopt_primary_addr()
6378 static int sctp_getsockopt_adaptation_layer(struct sock *sk, int len, in sctp_getsockopt_adaptation_layer()
6417 static int sctp_getsockopt_default_send_param(struct sock *sk, in sctp_getsockopt_default_send_param()
6463 static int sctp_getsockopt_default_sndinfo(struct sock *sk, int len, in sctp_getsockopt_default_sndinfo()
6514 static int sctp_getsockopt_nodelay(struct sock *sk, int len, in sctp_getsockopt_nodelay()
6543 static int sctp_getsockopt_rtoinfo(struct sock *sk, int len, in sctp_getsockopt_rtoinfo()
6597 static int sctp_getsockopt_associnfo(struct sock *sk, int len, in sctp_getsockopt_associnfo()
6666 static int sctp_getsockopt_mappedv4(struct sock *sk, int len, in sctp_getsockopt_mappedv4()
6689 static int sctp_getsockopt_context(struct sock *sk, int len, in sctp_getsockopt_context()
6746 static int sctp_getsockopt_maxseg(struct sock *sk, int len, in sctp_getsockopt_maxseg()
6793 static int sctp_getsockopt_fragment_interleave(struct sock *sk, int len, in sctp_getsockopt_fragment_interleave()
6816 static int sctp_getsockopt_partial_delivery_point(struct sock *sk, int len, in sctp_getsockopt_partial_delivery_point()
6840 static int sctp_getsockopt_maxburst(struct sock *sk, int len, in sctp_getsockopt_maxburst()
6880 static int sctp_getsockopt_hmac_ident(struct sock *sk, int len, in sctp_getsockopt_hmac_ident()
6916 static int sctp_getsockopt_active_key(struct sock *sk, int len, in sctp_getsockopt_active_key()
6952 static int sctp_getsockopt_peer_auth_chunks(struct sock *sk, int len, in sctp_getsockopt_peer_auth_chunks()
6996 static int sctp_getsockopt_local_auth_chunks(struct sock *sk, int len, in sctp_getsockopt_local_auth_chunks()
7052 static int sctp_getsockopt_assoc_number(struct sock *sk, int len, in sctp_getsockopt_assoc_number()
7083 static int sctp_getsockopt_auto_asconf(struct sock *sk, int len, in sctp_getsockopt_auto_asconf()
7108 static int sctp_getsockopt_assoc_ids(struct sock *sk, int len, in sctp_getsockopt_assoc_ids()
7157 static int sctp_getsockopt_paddr_thresholds(struct sock *sk, in sctp_getsockopt_paddr_thresholds()
7216 static int sctp_getsockopt_assoc_stats(struct sock *sk, int len, in sctp_getsockopt_assoc_stats()
7274 static int sctp_getsockopt_recvrcvinfo(struct sock *sk, int len, in sctp_getsockopt_recvrcvinfo()
7294 static int sctp_getsockopt_recvnxtinfo(struct sock *sk, int len, in sctp_getsockopt_recvnxtinfo()
7314 static int sctp_getsockopt_pr_supported(struct sock *sk, int len, in sctp_getsockopt_pr_supported()
7353 static int sctp_getsockopt_default_prinfo(struct sock *sk, int len, in sctp_getsockopt_default_prinfo()
7399 static int sctp_getsockopt_pr_assocstatus(struct sock *sk, int len, in sctp_getsockopt_pr_assocstatus()
7458 static int sctp_getsockopt_pr_streamstatus(struct sock *sk, int len, in sctp_getsockopt_pr_streamstatus()
7522 static int sctp_getsockopt_reconfig_supported(struct sock *sk, int len, in sctp_getsockopt_reconfig_supported()
7561 static int sctp_getsockopt_enable_strreset(struct sock *sk, int len, in sctp_getsockopt_enable_strreset()
7600 static int sctp_getsockopt_scheduler(struct sock *sk, int len, in sctp_getsockopt_scheduler()
7639 static int sctp_getsockopt_scheduler_value(struct sock *sk, int len, in sctp_getsockopt_scheduler_value()
7681 static int sctp_getsockopt_interleaving_supported(struct sock *sk, int len, in sctp_getsockopt_interleaving_supported()
7720 static int sctp_getsockopt_reuse_port(struct sock *sk, int len, in sctp_getsockopt_reuse_port()
7740 static int sctp_getsockopt_event(struct sock *sk, int len, char __user *optval, in sctp_getsockopt_event()
7775 static int sctp_getsockopt_asconf_supported(struct sock *sk, int len, in sctp_getsockopt_asconf_supported()
7814 static int sctp_getsockopt_auth_supported(struct sock *sk, int len, in sctp_getsockopt_auth_supported()
7853 static int sctp_getsockopt_ecn_supported(struct sock *sk, int len, in sctp_getsockopt_ecn_supported()
7892 static int sctp_getsockopt_pf_expose(struct sock *sk, int len, in sctp_getsockopt_pf_expose()
7931 static int sctp_getsockopt_encap_port(struct sock *sk, int len, in sctp_getsockopt_encap_port()
7990 static int sctp_getsockopt_probe_interval(struct sock *sk, int len, in sctp_getsockopt_probe_interval()
8050 static int sctp_getsockopt(struct sock *sk, int level, int optname, in sctp_getsockopt()
8301 static int sctp_hash(struct sock *sk) in sctp_hash()
8307 static void sctp_unhash(struct sock *sk) in sctp_unhash()
8327 static int sctp_get_port_local(struct sock *sk, union sctp_addr *addr) in sctp_get_port_local()
8498 static int sctp_get_port(struct sock *sk, unsigned short snum) in sctp_get_port()
8514 static int sctp_listen_start(struct sock *sk, int backlog) in sctp_listen_start()
8575 struct sock *sk = sock->sk; in sctp_inet_listen() local
8637 struct sock *sk = sock->sk; in sctp_poll() local
8722 static inline void __sctp_put_port(struct sock *sk) in __sctp_put_port()
8738 void sctp_put_port(struct sock *sk) in sctp_put_port()
8751 static int sctp_autobind(struct sock *sk) in sctp_autobind()
8950 static int sctp_wait_for_packet(struct sock *sk, int *err, long *timeo_p) in sctp_wait_for_packet()
9008 struct sk_buff *sctp_skb_recv_datagram(struct sock *sk, int flags, int *err) in sctp_skb_recv_datagram()
9069 struct sock *sk = asoc->base.sk; in __sctp_write_space() local
9097 static void sctp_wake_up_waiters(struct sock *sk, in sctp_wake_up_waiters()
9145 struct sock *sk = asoc->base.sk; in sctp_wfree() local
9186 struct sock *sk = skb->sk; in sctp_sock_rfree() local
9202 struct sock *sk = asoc->base.sk; in sctp_wait_for_sndbuf() local
9266 void sctp_data_ready(struct sock *sk) in sctp_data_ready()
9282 void sctp_write_space(struct sock *sk) in sctp_write_space()
9303 static bool sctp_writeable(const struct sock *sk) in sctp_writeable()
9313 struct sock *sk = asoc->base.sk; in sctp_wait_for_connect() local
9373 static int sctp_wait_for_accept(struct sock *sk, long timeo) in sctp_wait_for_accept()
9414 static void sctp_wait_for_close(struct sock *sk, long timeout) in sctp_wait_for_close()
9430 static void sctp_skb_set_owner_r_frag(struct sk_buff *skb, struct sock *sk) in sctp_skb_set_owner_r_frag()
9445 void sctp_copy_sock(struct sock *newsk, struct sock *sk, in sctp_copy_sock()
9698 static void sctp_v6_destruct_sock(struct sock *sk) in sctp_v6_destruct_sock()
9704 static int sctp_v6_init_sock(struct sock *sk) in sctp_v6_init_sock()