Lines Matching refs:ep

120 	if (asoc->ep->sndbuf_policy)  in sctp_wspace()
209 if (!list_empty(&sctp_sk(sk)->ep->asocs)) in sctp_id2assoc()
210 asoc = list_entry(sctp_sk(sk)->ep->asocs.next, in sctp_id2assoc()
241 addr_asoc = sctp_endpoint_lookup_assoc(sctp_sk(sk)->ep, in sctp_addr_id2transport()
278 if (!sctp_sk(sk)->ep->base.bind_addr.port) in sctp_bind()
326 struct sctp_endpoint *ep = sp->ep; in sctp_do_bind() local
327 struct sctp_bind_addr *bp = &ep->base.bind_addr; in sctp_do_bind()
504 struct sctp_endpoint *ep; in sctp_send_asconf_add_ip() local
521 ep = sp->ep; in sctp_send_asconf_add_ip()
526 list_for_each_entry(asoc, &ep->asocs, asocs) { in sctp_send_asconf_add_ip()
625 struct sctp_endpoint *ep = sp->ep; in sctp_bindx_rem() local
627 struct sctp_bind_addr *bp = &ep->base.bind_addr; in sctp_bindx_rem()
707 struct sctp_endpoint *ep; in sctp_send_asconf_del_ip() local
725 ep = sp->ep; in sctp_send_asconf_del_ip()
730 list_for_each_entry(asoc, &ep->asocs, asocs) { in sctp_send_asconf_del_ip()
863 addr->v4.sin_port = htons(sp->ep->base.bind_addr.port); in sctp_asconf_mgmt()
1046 struct sctp_endpoint *ep; in __sctp_connect() local
1062 ep = sp->ep; in __sctp_connect()
1116 asoc2 = sctp_endpoint_lookup_assoc(ep, &to, &transport); in __sctp_connect()
1129 if (sctp_endpoint_is_peeled_off(ep, &to)) { in __sctp_connect()
1140 if (!ep->base.bind_addr.port) { in __sctp_connect()
1153 if (ep->base.bind_addr.port < PROT_SOCK && in __sctp_connect()
1161 asoc = sctp_association_new(ep, sk, scope, GFP_KERNEL); in __sctp_connect()
1479 struct sctp_endpoint *ep; in sctp_close() local
1490 ep = sctp_sk(sk)->ep; in sctp_close()
1497 list_for_each_safe(pos, temp, &ep->asocs) { in sctp_close()
1592 struct sctp_endpoint *ep; in sctp_sendmsg() local
1613 ep = sp->ep; in sctp_sendmsg()
1616 msg, msg_len, ep); in sctp_sendmsg()
1707 asoc = sctp_endpoint_lookup_assoc(ep, &to, &transport); in sctp_sendmsg()
1716 sctp_endpoint_is_peeled_off(ep, &to)) { in sctp_sendmsg()
1804 if (!ep->base.bind_addr.port) { in sctp_sendmsg()
1817 if (ep->base.bind_addr.port < PROT_SOCK && in sctp_sendmsg()
1825 new_asoc = sctp_association_new(ep, sk, scope, GFP_KERNEL); in sctp_sendmsg()
3381 struct sctp_endpoint *ep = sctp_sk(sk)->ep; in sctp_setsockopt_auth_chunk() local
3384 if (!ep->auth_enable) in sctp_setsockopt_auth_chunk()
3401 return sctp_auth_ep_add_chunkid(ep, val.sauth_chunk); in sctp_setsockopt_auth_chunk()
3414 struct sctp_endpoint *ep = sctp_sk(sk)->ep; in sctp_setsockopt_hmac_ident() local
3419 if (!ep->auth_enable) in sctp_setsockopt_hmac_ident()
3436 err = sctp_auth_ep_set_hmacs(ep, hmacs); in sctp_setsockopt_hmac_ident()
3452 struct sctp_endpoint *ep = sctp_sk(sk)->ep; in sctp_setsockopt_auth_key() local
3457 if (!ep->auth_enable) in sctp_setsockopt_auth_key()
3478 ret = sctp_auth_set_key(ep, asoc, authkey); in sctp_setsockopt_auth_key()
3494 struct sctp_endpoint *ep = sctp_sk(sk)->ep; in sctp_setsockopt_active_key() local
3498 if (!ep->auth_enable) in sctp_setsockopt_active_key()
3510 return sctp_auth_set_active_key(ep, asoc, val.scact_keynumber); in sctp_setsockopt_active_key()
3522 struct sctp_endpoint *ep = sctp_sk(sk)->ep; in sctp_setsockopt_del_key() local
3526 if (!ep->auth_enable) in sctp_setsockopt_del_key()
3538 return sctp_auth_del_key_id(ep, asoc, val.scact_keynumber); in sctp_setsockopt_del_key()
3895 struct sctp_endpoint *ep; in sctp_accept() local
3904 ep = sp->ep; in sctp_accept()
3925 asoc = list_entry(ep->asocs.next, struct sctp_association, asocs); in sctp_accept()
4101 sp->ep = sctp_endpoint_new(sk, GFP_KERNEL); in sctp_init_sock()
4102 if (!sp->ep) in sctp_init_sock()
4147 if (sp->ep == NULL) in sctp_destroy_sock()
4154 sctp_endpoint_free(sp->ep); in sctp_destroy_sock()
4191 struct sctp_endpoint *ep; in sctp_shutdown() local
4198 ep = sctp_sk(sk)->ep; in sctp_shutdown()
4199 if (!list_empty(&ep->asocs)) { in sctp_shutdown()
4200 asoc = list_entry(ep->asocs.next, in sctp_shutdown()
4918 bp = &sctp_sk(sk)->ep->base.bind_addr; in sctp_getsockopt_local_addrs()
5540 struct sctp_endpoint *ep = sctp_sk(sk)->ep; in sctp_getsockopt_hmac_ident() local
5547 if (!ep->auth_enable) in sctp_getsockopt_hmac_ident()
5550 hmacs = ep->auth_hmacs_list; in sctp_getsockopt_hmac_ident()
5575 struct sctp_endpoint *ep = sctp_sk(sk)->ep; in sctp_getsockopt_active_key() local
5579 if (!ep->auth_enable) in sctp_getsockopt_active_key()
5594 val.scact_keynumber = ep->active_key_id; in sctp_getsockopt_active_key()
5608 struct sctp_endpoint *ep = sctp_sk(sk)->ep; in sctp_getsockopt_peer_auth_chunks() local
5616 if (!ep->auth_enable) in sctp_getsockopt_peer_auth_chunks()
5653 struct sctp_endpoint *ep = sctp_sk(sk)->ep; in sctp_getsockopt_local_auth_chunks() local
5661 if (!ep->auth_enable) in sctp_getsockopt_local_auth_chunks()
5678 ch = ep->auth_chunk_list; in sctp_getsockopt_local_auth_chunks()
5719 list_for_each_entry(asoc, &(sp->ep->asocs), asocs) { in sctp_getsockopt_assoc_number()
5774 list_for_each_entry(asoc, &(sp->ep->asocs), asocs) { in sctp_getsockopt_assoc_ids()
5789 list_for_each_entry(asoc, &(sp->ep->asocs), asocs) { in sctp_getsockopt_assoc_ids()
6233 ep2 = sctp_sk(sk2)->ep; in sctp_get_port_local()
6310 struct sctp_endpoint *ep = sp->ep; in sctp_listen_start() local
6338 if (!ep->base.bind_addr.port) { in sctp_listen_start()
6349 sctp_hash_endpoint(ep); in sctp_listen_start()
6370 struct sctp_endpoint *ep = sctp_sk(sk)->ep; in sctp_inet_listen() local
6391 sctp_unhash_endpoint(ep); in sctp_inet_listen()
6438 return (!list_empty(&sp->ep->asocs)) ? in sctp_poll()
6714 if (list_empty(&sctp_sk(sk)->ep->asocs) && !sctp_sstate(sk, LISTENING)) in sctp_wait_for_packet()
6844 if (asoc->ep->sndbuf_policy) in sctp_wake_up_waiters()
6866 if (&tmp->asocs == &((sctp_sk(sk))->ep->asocs)) in sctp_wake_up_waiters()
7003 list_for_each_entry(asoc, &((sctp_sk(sk))->ep->asocs), asocs) { in sctp_write_space()
7096 struct sctp_endpoint *ep; in sctp_wait_for_accept() local
7100 ep = sctp_sk(sk)->ep; in sctp_wait_for_accept()
7107 if (list_empty(&ep->asocs)) { in sctp_wait_for_accept()
7118 if (!list_empty(&ep->asocs)) in sctp_wait_for_accept()
7141 if (list_empty(&sctp_sk(sk)->ep->asocs)) in sctp_wait_for_close()
7238 struct sctp_endpoint *newep = newsp->ep; in sctp_sock_migrate()
7254 newsp->ep = newep; in sctp_sock_migrate()
7272 sctp_bind_addr_dup(&newsp->ep->base.bind_addr, in sctp_sock_migrate()
7273 &oldsp->ep->base.bind_addr, GFP_KERNEL); in sctp_sock_migrate()