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()
1476 struct sctp_endpoint *ep; in sctp_close() local
1487 ep = sctp_sk(sk)->ep; in sctp_close()
1494 list_for_each_safe(pos, temp, &ep->asocs) { in sctp_close()
1589 struct sctp_endpoint *ep; in sctp_sendmsg() local
1610 ep = sp->ep; in sctp_sendmsg()
1613 msg, msg_len, ep); in sctp_sendmsg()
1704 asoc = sctp_endpoint_lookup_assoc(ep, &to, &transport); in sctp_sendmsg()
1713 sctp_endpoint_is_peeled_off(ep, &to)) { in sctp_sendmsg()
1801 if (!ep->base.bind_addr.port) { in sctp_sendmsg()
1814 if (ep->base.bind_addr.port < PROT_SOCK && in sctp_sendmsg()
1822 new_asoc = sctp_association_new(ep, sk, scope, GFP_KERNEL); in sctp_sendmsg()
3394 struct sctp_endpoint *ep = sctp_sk(sk)->ep; in sctp_setsockopt_auth_chunk() local
3397 if (!ep->auth_enable) in sctp_setsockopt_auth_chunk()
3414 return sctp_auth_ep_add_chunkid(ep, val.sauth_chunk); in sctp_setsockopt_auth_chunk()
3427 struct sctp_endpoint *ep = sctp_sk(sk)->ep; in sctp_setsockopt_hmac_ident() local
3432 if (!ep->auth_enable) in sctp_setsockopt_hmac_ident()
3449 err = sctp_auth_ep_set_hmacs(ep, hmacs); in sctp_setsockopt_hmac_ident()
3465 struct sctp_endpoint *ep = sctp_sk(sk)->ep; in sctp_setsockopt_auth_key() local
3470 if (!ep->auth_enable) in sctp_setsockopt_auth_key()
3491 ret = sctp_auth_set_key(ep, asoc, authkey); in sctp_setsockopt_auth_key()
3507 struct sctp_endpoint *ep = sctp_sk(sk)->ep; in sctp_setsockopt_active_key() local
3511 if (!ep->auth_enable) in sctp_setsockopt_active_key()
3523 return sctp_auth_set_active_key(ep, asoc, val.scact_keynumber); in sctp_setsockopt_active_key()
3535 struct sctp_endpoint *ep = sctp_sk(sk)->ep; in sctp_setsockopt_del_key() local
3539 if (!ep->auth_enable) in sctp_setsockopt_del_key()
3551 return sctp_auth_del_key_id(ep, asoc, val.scact_keynumber); in sctp_setsockopt_del_key()
3908 struct sctp_endpoint *ep; in sctp_accept() local
3917 ep = sp->ep; in sctp_accept()
3938 asoc = list_entry(ep->asocs.next, struct sctp_association, asocs); in sctp_accept()
4114 sp->ep = sctp_endpoint_new(sk, GFP_KERNEL); in sctp_init_sock()
4115 if (!sp->ep) in sctp_init_sock()
4160 if (sp->ep == NULL) in sctp_destroy_sock()
4167 sctp_endpoint_free(sp->ep); in sctp_destroy_sock()
4204 struct sctp_endpoint *ep; in sctp_shutdown() local
4211 ep = sctp_sk(sk)->ep; in sctp_shutdown()
4212 if (!list_empty(&ep->asocs)) { in sctp_shutdown()
4213 asoc = list_entry(ep->asocs.next, in sctp_shutdown()
4931 bp = &sctp_sk(sk)->ep->base.bind_addr; in sctp_getsockopt_local_addrs()
5553 struct sctp_endpoint *ep = sctp_sk(sk)->ep; in sctp_getsockopt_hmac_ident() local
5560 if (!ep->auth_enable) in sctp_getsockopt_hmac_ident()
5563 hmacs = ep->auth_hmacs_list; in sctp_getsockopt_hmac_ident()
5588 struct sctp_endpoint *ep = sctp_sk(sk)->ep; in sctp_getsockopt_active_key() local
5592 if (!ep->auth_enable) in sctp_getsockopt_active_key()
5607 val.scact_keynumber = ep->active_key_id; in sctp_getsockopt_active_key()
5621 struct sctp_endpoint *ep = sctp_sk(sk)->ep; in sctp_getsockopt_peer_auth_chunks() local
5629 if (!ep->auth_enable) in sctp_getsockopt_peer_auth_chunks()
5666 struct sctp_endpoint *ep = sctp_sk(sk)->ep; in sctp_getsockopt_local_auth_chunks() local
5674 if (!ep->auth_enable) in sctp_getsockopt_local_auth_chunks()
5691 ch = ep->auth_chunk_list; in sctp_getsockopt_local_auth_chunks()
5732 list_for_each_entry(asoc, &(sp->ep->asocs), asocs) { in sctp_getsockopt_assoc_number()
5787 list_for_each_entry(asoc, &(sp->ep->asocs), asocs) { in sctp_getsockopt_assoc_ids()
5802 list_for_each_entry(asoc, &(sp->ep->asocs), asocs) { in sctp_getsockopt_assoc_ids()
6246 ep2 = sctp_sk(sk2)->ep; in sctp_get_port_local()
6323 struct sctp_endpoint *ep = sp->ep; in sctp_listen_start() local
6351 if (!ep->base.bind_addr.port) { in sctp_listen_start()
6362 sctp_hash_endpoint(ep); in sctp_listen_start()
6383 struct sctp_endpoint *ep = sctp_sk(sk)->ep; in sctp_inet_listen() local
6404 sctp_unhash_endpoint(ep); in sctp_inet_listen()
6451 return (!list_empty(&sp->ep->asocs)) ? in sctp_poll()
6727 if (list_empty(&sctp_sk(sk)->ep->asocs) && !sctp_sstate(sk, LISTENING)) in sctp_wait_for_packet()
6853 if (asoc->ep->sndbuf_policy) in sctp_wake_up_waiters()
6875 if (&tmp->asocs == &((sctp_sk(sk))->ep->asocs)) in sctp_wake_up_waiters()
7012 list_for_each_entry(asoc, &((sctp_sk(sk))->ep->asocs), asocs) { in sctp_write_space()
7105 struct sctp_endpoint *ep; in sctp_wait_for_accept() local
7109 ep = sctp_sk(sk)->ep; in sctp_wait_for_accept()
7116 if (list_empty(&ep->asocs)) { in sctp_wait_for_accept()
7127 if (!list_empty(&ep->asocs)) in sctp_wait_for_accept()
7150 if (list_empty(&sctp_sk(sk)->ep->asocs)) in sctp_wait_for_close()
7245 struct sctp_endpoint *newep = newsp->ep; in sctp_sock_migrate()
7261 newsp->ep = newep; in sctp_sock_migrate()
7279 sctp_bind_addr_dup(&newsp->ep->base.bind_addr, in sctp_sock_migrate()
7280 &oldsp->ep->base.bind_addr, GFP_KERNEL); in sctp_sock_migrate()