Lines Matching refs:ep

70 static sctp_cookie_param_t *sctp_pack_cookie(const struct sctp_endpoint *ep,
222 struct sctp_endpoint *ep = asoc->ep; in sctp_make_init() local
282 if (ep->auth_enable) { in sctp_make_init()
367 if (ep->auth_enable) { in sctp_make_init()
416 cookie = sctp_pack_cookie(asoc->ep, asoc, chunk, &cookie_len, in sctp_make_init_ack()
1569 struct sctp_association *sctp_make_temp_asoc(const struct sctp_endpoint *ep, in sctp_make_temp_asoc() argument
1580 asoc = sctp_association_new(ep, ep->base.sk, scope, gfp); in sctp_make_temp_asoc()
1601 static sctp_cookie_param_t *sctp_pack_cookie(const struct sctp_endpoint *ep, in sctp_pack_cookie() argument
1665 if (sctp_sk(ep->base.sk)->hmac) { in sctp_pack_cookie()
1670 desc.tfm = sctp_sk(ep->base.sk)->hmac; in sctp_pack_cookie()
1673 if (crypto_hash_setkey(desc.tfm, ep->secret_key, in sctp_pack_cookie()
1674 sizeof(ep->secret_key)) || in sctp_pack_cookie()
1690 const struct sctp_endpoint *ep, in sctp_unpack_cookie() argument
1699 __u8 *digest = ep->digest; in sctp_unpack_cookie()
1732 if (!sctp_sk(ep->base.sk)->hmac) in sctp_unpack_cookie()
1737 desc.tfm = sctp_sk(ep->base.sk)->hmac; in sctp_unpack_cookie()
1741 if (crypto_hash_setkey(desc.tfm, ep->secret_key, in sctp_unpack_cookie()
1742 sizeof(ep->secret_key)) || in sctp_unpack_cookie()
1780 if (sock_flag(ep->base.sk, SOCK_TIMESTAMP)) in sctp_unpack_cookie()
1812 retval = sctp_association_new(ep, ep->base.sk, scope, gfp); in sctp_unpack_cookie()
2014 if (asoc->ep->auth_enable) in sctp_process_ext_param()
2106 const struct sctp_endpoint *ep, in sctp_verify_param() argument
2157 if (!ep->auth_enable) in sctp_verify_param()
2174 if (!ep->auth_enable) in sctp_verify_param()
2190 if (!ep->auth_enable) in sctp_verify_param()
2225 int sctp_verify_init(struct net *net, const struct sctp_endpoint *ep, in sctp_verify_init() argument
2268 result = sctp_verify_param(net, ep, asoc, param, cid, in sctp_verify_init()
2501 struct sctp_endpoint *ep = asoc->ep; in sctp_process_param() local
2644 if (!ep->auth_enable) in sctp_process_param()
2657 if (!ep->auth_enable) in sctp_process_param()
2673 if (!ep->auth_enable) in sctp_process_param()
2697 __u32 sctp_generate_tag(const struct sctp_endpoint *ep) in sctp_generate_tag() argument
2712 __u32 sctp_generate_tsn(const struct sctp_endpoint *ep) in sctp_generate_tsn() argument