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
1889 static union sctp_addr *sctp_sendmsg_get_daddr(struct sock *sk, in sctp_sendmsg_get_daddr()
1938 static int sctp_sendmsg(struct sock *sk, struct msghdr *msg, size_t msg_len) in sctp_sendmsg()
2085 static int sctp_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, in sctp_recvmsg()
2199 static int sctp_setsockopt_disable_fragments(struct sock *sk, int *val, in sctp_setsockopt_disable_fragments()
2208 static int sctp_setsockopt_events(struct sock *sk, __u8 *sn_type, in sctp_setsockopt_events()
2257 static int sctp_setsockopt_autoclose(struct sock *sk, u32 *optval, in sctp_setsockopt_autoclose()
2604 static int sctp_setsockopt_peer_addr_params(struct sock *sk, in sctp_setsockopt_peer_addr_params()
2765 static int __sctp_setsockopt_delayed_ack(struct sock *sk, in __sctp_setsockopt_delayed_ack()
2818 static int sctp_setsockopt_delayed_ack(struct sock *sk, in sctp_setsockopt_delayed_ack()
2856 static int sctp_setsockopt_initmsg(struct sock *sk, struct sctp_initmsg *sinit, in sctp_setsockopt_initmsg()
2890 static int sctp_setsockopt_default_send_param(struct sock *sk, in sctp_setsockopt_default_send_param()
2948 static int sctp_setsockopt_default_sndinfo(struct sock *sk, in sctp_setsockopt_default_sndinfo()
3006 static int sctp_setsockopt_primary_addr(struct sock *sk, struct sctp_prim *prim, in sctp_setsockopt_primary_addr()
3044 static int sctp_setsockopt_nodelay(struct sock *sk, int *val, in sctp_setsockopt_nodelay()
3065 static int sctp_setsockopt_rtoinfo(struct sock *sk, in sctp_setsockopt_rtoinfo()
3129 static int sctp_setsockopt_associnfo(struct sock *sk, in sctp_setsockopt_associnfo()
3197 static int sctp_setsockopt_mappedv4(struct sock *sk, int *val, in sctp_setsockopt_mappedv4()
3239 static int sctp_setsockopt_maxseg(struct sock *sk, in sctp_setsockopt_maxseg()
3299 static int sctp_setsockopt_peer_primary_addr(struct sock *sk, in sctp_setsockopt_peer_primary_addr()
3360 static int sctp_setsockopt_adaptation_layer(struct sock *sk, in sctp_setsockopt_adaptation_layer()
3386 static int sctp_setsockopt_context(struct sock *sk, in sctp_setsockopt_context()
3446 static int sctp_setsockopt_fragment_interleave(struct sock *sk, int *val, in sctp_setsockopt_fragment_interleave()
3477 static int sctp_setsockopt_partial_delivery_point(struct sock *sk, u32 *val, in sctp_setsockopt_partial_delivery_point()
3505 static int sctp_setsockopt_maxburst(struct sock *sk, in sctp_setsockopt_maxburst()
3558 static int sctp_setsockopt_auth_chunk(struct sock *sk, in sctp_setsockopt_auth_chunk()
3588 static int sctp_setsockopt_hmac_ident(struct sock *sk, in sctp_setsockopt_hmac_ident()
3617 static int sctp_setsockopt_auth_key(struct sock *sk, in sctp_setsockopt_auth_key()
3678 static int sctp_setsockopt_active_key(struct sock *sk, in sctp_setsockopt_active_key()
3726 static int sctp_setsockopt_del_key(struct sock *sk, in sctp_setsockopt_del_key()
3774 static int sctp_setsockopt_deactivate_key(struct sock *sk, in sctp_setsockopt_deactivate_key()
3831 static int sctp_setsockopt_auto_asconf(struct sock *sk, int *val, in sctp_setsockopt_auto_asconf()
3863 static int sctp_setsockopt_paddr_thresholds(struct sock *sk, in sctp_setsockopt_paddr_thresholds()
3926 static int sctp_setsockopt_recvrcvinfo(struct sock *sk, int *val, in sctp_setsockopt_recvrcvinfo()
3937 static int sctp_setsockopt_recvnxtinfo(struct sock *sk, int *val, in sctp_setsockopt_recvnxtinfo()
3948 static int sctp_setsockopt_pr_supported(struct sock *sk, in sctp_setsockopt_pr_supported()
3967 static int sctp_setsockopt_default_prinfo(struct sock *sk, in sctp_setsockopt_default_prinfo()
4019 static int sctp_setsockopt_reconfig_supported(struct sock *sk, in sctp_setsockopt_reconfig_supported()
4042 static int sctp_setsockopt_enable_strreset(struct sock *sk, in sctp_setsockopt_enable_strreset()
4084 static int sctp_setsockopt_reset_streams(struct sock *sk, in sctp_setsockopt_reset_streams()
4107 static int sctp_setsockopt_reset_assoc(struct sock *sk, sctp_assoc_t *associd, in sctp_setsockopt_reset_assoc()
4122 static int sctp_setsockopt_add_streams(struct sock *sk, in sctp_setsockopt_add_streams()
4138 static int sctp_setsockopt_scheduler(struct sock *sk, in sctp_setsockopt_scheduler()
4181 static int sctp_setsockopt_scheduler_value(struct sock *sk, in sctp_setsockopt_scheduler_value()
4216 static int sctp_setsockopt_interleaving_supported(struct sock *sk, in sctp_setsockopt_interleaving_supported()
4238 static int sctp_setsockopt_reuse_port(struct sock *sk, int *val, in sctp_setsockopt_reuse_port()
4276 static int sctp_setsockopt_event(struct sock *sk, struct sctp_event *param, in sctp_setsockopt_event()
4319 static int sctp_setsockopt_asconf_supported(struct sock *sk, in sctp_setsockopt_asconf_supported()
4349 static int sctp_setsockopt_auth_supported(struct sock *sk, in sctp_setsockopt_auth_supported()
4383 static int sctp_setsockopt_ecn_supported(struct sock *sk, in sctp_setsockopt_ecn_supported()
4405 static int sctp_setsockopt_pf_expose(struct sock *sk, in sctp_setsockopt_pf_expose()
4433 static int sctp_setsockopt_encap_port(struct sock *sk, in sctp_setsockopt_encap_port()
4483 static int sctp_setsockopt_probe_interval(struct sock *sk, in sctp_setsockopt_probe_interval()
4557 static int sctp_setsockopt(struct sock *sk, int level, int optname, in sctp_setsockopt()
4793 static int sctp_connect(struct sock *sk, struct sockaddr *addr, in sctp_connect()
4825 static int sctp_disconnect(struct sock *sk, int flags) in sctp_disconnect()
4837 static struct sock *sctp_accept(struct sock *sk, int flags, int *err, bool kern) in sctp_accept()
4894 static int sctp_ioctl(struct sock *sk, int cmd, unsigned long arg) in sctp_ioctl()
4936 static int sctp_init_sock(struct sock *sk) in sctp_init_sock()
5078 static void sctp_destroy_sock(struct sock *sk) in sctp_destroy_sock()
5102 static void sctp_destruct_common(struct sock *sk) in sctp_destruct_common()
5110 static void sctp_destruct_sock(struct sock *sk) in sctp_destruct_sock()
5132 static void sctp_shutdown(struct sock *sk, int how) in sctp_shutdown()
5151 int sctp_get_sctp_info(struct sock *sk, struct sctp_association *asoc, in sctp_get_sctp_info()
5394 static int sctp_getsockopt_sctp_status(struct sock *sk, int len, in sctp_getsockopt_sctp_status()
5474 static int sctp_getsockopt_peer_addr_info(struct sock *sk, int len, in sctp_getsockopt_peer_addr_info()
5537 static int sctp_getsockopt_disable_fragments(struct sock *sk, int len, in sctp_getsockopt_disable_fragments()
5559 static int sctp_getsockopt_events(struct sock *sk, int len, char __user *optval, in sctp_getsockopt_events()
5594 static int sctp_getsockopt_autoclose(struct sock *sk, int len, char __user *optval, int __user *opt… in sctp_getsockopt_autoclose()
5610 int sctp_do_peeloff(struct sock *sk, sctp_assoc_t id, struct socket **sockp) in sctp_do_peeloff()
5660 static int sctp_getsockopt_peeloff_common(struct sock *sk, sctp_peeloff_arg_t *peeloff, in sctp_getsockopt_peeloff_common()
5696 static int sctp_getsockopt_peeloff(struct sock *sk, int len, char __user *optval, int __user *optle… in sctp_getsockopt_peeloff()
5729 static int sctp_getsockopt_peeloff_flags(struct sock *sk, int len, in sctp_getsockopt_peeloff_flags()
5896 static int sctp_getsockopt_peer_addr_params(struct sock *sk, int len, in sctp_getsockopt_peer_addr_params()
6039 static int sctp_getsockopt_delayed_ack(struct sock *sk, int len, in sctp_getsockopt_delayed_ack()
6113 static int sctp_getsockopt_initmsg(struct sock *sk, int len, char __user *optval, int __user *optle… in sctp_getsockopt_initmsg()
6126 static int sctp_getsockopt_peer_addrs(struct sock *sk, int len, in sctp_getsockopt_peer_addrs()
6177 static int sctp_copy_laddrs(struct sock *sk, __u16 port, void *to, in sctp_copy_laddrs()
6222 static int sctp_getsockopt_local_addrs(struct sock *sk, int len, in sctp_getsockopt_local_addrs()
6330 static int sctp_getsockopt_primary_addr(struct sock *sk, int len, in sctp_getsockopt_primary_addr()
6372 static int sctp_getsockopt_adaptation_layer(struct sock *sk, int len, in sctp_getsockopt_adaptation_layer()
6411 static int sctp_getsockopt_default_send_param(struct sock *sk, in sctp_getsockopt_default_send_param()
6457 static int sctp_getsockopt_default_sndinfo(struct sock *sk, int len, in sctp_getsockopt_default_sndinfo()
6508 static int sctp_getsockopt_nodelay(struct sock *sk, int len, in sctp_getsockopt_nodelay()
6537 static int sctp_getsockopt_rtoinfo(struct sock *sk, int len, in sctp_getsockopt_rtoinfo()
6591 static int sctp_getsockopt_associnfo(struct sock *sk, int len, in sctp_getsockopt_associnfo()
6660 static int sctp_getsockopt_mappedv4(struct sock *sk, int len, in sctp_getsockopt_mappedv4()
6683 static int sctp_getsockopt_context(struct sock *sk, int len, in sctp_getsockopt_context()
6740 static int sctp_getsockopt_maxseg(struct sock *sk, int len, in sctp_getsockopt_maxseg()
6787 static int sctp_getsockopt_fragment_interleave(struct sock *sk, int len, in sctp_getsockopt_fragment_interleave()
6810 static int sctp_getsockopt_partial_delivery_point(struct sock *sk, int len, in sctp_getsockopt_partial_delivery_point()
6834 static int sctp_getsockopt_maxburst(struct sock *sk, int len, in sctp_getsockopt_maxburst()
6874 static int sctp_getsockopt_hmac_ident(struct sock *sk, int len, in sctp_getsockopt_hmac_ident()
6910 static int sctp_getsockopt_active_key(struct sock *sk, int len, in sctp_getsockopt_active_key()
6946 static int sctp_getsockopt_peer_auth_chunks(struct sock *sk, int len, in sctp_getsockopt_peer_auth_chunks()
6990 static int sctp_getsockopt_local_auth_chunks(struct sock *sk, int len, in sctp_getsockopt_local_auth_chunks()
7046 static int sctp_getsockopt_assoc_number(struct sock *sk, int len, in sctp_getsockopt_assoc_number()
7077 static int sctp_getsockopt_auto_asconf(struct sock *sk, int len, in sctp_getsockopt_auto_asconf()
7102 static int sctp_getsockopt_assoc_ids(struct sock *sk, int len, in sctp_getsockopt_assoc_ids()
7151 static int sctp_getsockopt_paddr_thresholds(struct sock *sk, in sctp_getsockopt_paddr_thresholds()
7210 static int sctp_getsockopt_assoc_stats(struct sock *sk, int len, in sctp_getsockopt_assoc_stats()
7268 static int sctp_getsockopt_recvrcvinfo(struct sock *sk, int len, in sctp_getsockopt_recvrcvinfo()
7288 static int sctp_getsockopt_recvnxtinfo(struct sock *sk, int len, in sctp_getsockopt_recvnxtinfo()
7308 static int sctp_getsockopt_pr_supported(struct sock *sk, int len, in sctp_getsockopt_pr_supported()
7347 static int sctp_getsockopt_default_prinfo(struct sock *sk, int len, in sctp_getsockopt_default_prinfo()
7393 static int sctp_getsockopt_pr_assocstatus(struct sock *sk, int len, in sctp_getsockopt_pr_assocstatus()
7452 static int sctp_getsockopt_pr_streamstatus(struct sock *sk, int len, in sctp_getsockopt_pr_streamstatus()
7516 static int sctp_getsockopt_reconfig_supported(struct sock *sk, int len, in sctp_getsockopt_reconfig_supported()
7555 static int sctp_getsockopt_enable_strreset(struct sock *sk, int len, in sctp_getsockopt_enable_strreset()
7594 static int sctp_getsockopt_scheduler(struct sock *sk, int len, in sctp_getsockopt_scheduler()
7633 static int sctp_getsockopt_scheduler_value(struct sock *sk, int len, in sctp_getsockopt_scheduler_value()
7675 static int sctp_getsockopt_interleaving_supported(struct sock *sk, int len, in sctp_getsockopt_interleaving_supported()
7714 static int sctp_getsockopt_reuse_port(struct sock *sk, int len, in sctp_getsockopt_reuse_port()
7734 static int sctp_getsockopt_event(struct sock *sk, int len, char __user *optval, in sctp_getsockopt_event()
7769 static int sctp_getsockopt_asconf_supported(struct sock *sk, int len, in sctp_getsockopt_asconf_supported()
7808 static int sctp_getsockopt_auth_supported(struct sock *sk, int len, in sctp_getsockopt_auth_supported()
7847 static int sctp_getsockopt_ecn_supported(struct sock *sk, int len, in sctp_getsockopt_ecn_supported()
7886 static int sctp_getsockopt_pf_expose(struct sock *sk, int len, in sctp_getsockopt_pf_expose()
7925 static int sctp_getsockopt_encap_port(struct sock *sk, int len, in sctp_getsockopt_encap_port()
7984 static int sctp_getsockopt_probe_interval(struct sock *sk, int len, in sctp_getsockopt_probe_interval()
8044 static int sctp_getsockopt(struct sock *sk, int level, int optname, in sctp_getsockopt()
8279 static int sctp_hash(struct sock *sk) in sctp_hash()
8285 static void sctp_unhash(struct sock *sk) in sctp_unhash()
8305 static int sctp_get_port_local(struct sock *sk, union sctp_addr *addr) in sctp_get_port_local()
8476 static int sctp_get_port(struct sock *sk, unsigned short snum) in sctp_get_port()
8492 static int sctp_listen_start(struct sock *sk, int backlog) in sctp_listen_start()
8553 struct sock *sk = sock->sk; in sctp_inet_listen() local
8615 struct sock *sk = sock->sk; in sctp_poll() local
8700 static inline void __sctp_put_port(struct sock *sk) in __sctp_put_port()
8716 void sctp_put_port(struct sock *sk) in sctp_put_port()
8729 static int sctp_autobind(struct sock *sk) in sctp_autobind()
8928 static int sctp_wait_for_packet(struct sock *sk, int *err, long *timeo_p) in sctp_wait_for_packet()
8986 struct sk_buff *sctp_skb_recv_datagram(struct sock *sk, int flags, int *err) in sctp_skb_recv_datagram()
9047 struct sock *sk = asoc->base.sk; in __sctp_write_space() local
9075 static void sctp_wake_up_waiters(struct sock *sk, in sctp_wake_up_waiters()
9123 struct sock *sk = asoc->base.sk; in sctp_wfree() local
9164 struct sock *sk = skb->sk; in sctp_sock_rfree() local
9180 struct sock *sk = asoc->base.sk; in sctp_wait_for_sndbuf() local
9244 void sctp_data_ready(struct sock *sk) in sctp_data_ready()
9260 void sctp_write_space(struct sock *sk) in sctp_write_space()
9281 static bool sctp_writeable(struct sock *sk) in sctp_writeable()
9291 struct sock *sk = asoc->base.sk; in sctp_wait_for_connect() local
9351 static int sctp_wait_for_accept(struct sock *sk, long timeo) in sctp_wait_for_accept()
9392 static void sctp_wait_for_close(struct sock *sk, long timeout) in sctp_wait_for_close()
9408 static void sctp_skb_set_owner_r_frag(struct sk_buff *skb, struct sock *sk) in sctp_skb_set_owner_r_frag()
9423 void sctp_copy_sock(struct sock *newsk, struct sock *sk, in sctp_copy_sock()
9675 static void sctp_v6_destruct_sock(struct sock *sk) in sctp_v6_destruct_sock()
9681 static int sctp_v6_init_sock(struct sock *sk) in sctp_v6_init_sock()