Lines Matching refs:af
210 struct sctp_af *af; in sctp_verify_addr() local
213 af = sctp_sockaddr_af(sctp_sk(sk), addr, len); in sctp_verify_addr()
214 if (!af) in sctp_verify_addr()
218 if (!af->addr_valid(addr, sctp_sk(sk), NULL)) in sctp_verify_addr()
330 struct sctp_af *af; in sctp_sockaddr_af() local
346 af = sctp_get_af_specific(addr->sa.sa_family); in sctp_sockaddr_af()
348 if (len < af->sockaddr_len) in sctp_sockaddr_af()
351 return af; in sctp_sockaddr_af()
361 struct sctp_af *af; in sctp_do_bind() local
366 af = sctp_sockaddr_af(sp, addr, len); in sctp_do_bind()
367 if (!af) { in sctp_do_bind()
487 struct sctp_af *af; in sctp_bindx_add() local
498 af = sctp_get_af_specific(sa_addr->sa_family); in sctp_bindx_add()
499 if (!af) { in sctp_bindx_add()
505 af->sockaddr_len); in sctp_bindx_add()
507 addr_buf += af->sockaddr_len; in sctp_bindx_add()
545 struct sctp_af *af; in sctp_send_asconf_add_ip() local
577 af = sctp_get_af_specific(addr->v4.sin_family); in sctp_send_asconf_add_ip()
578 if (!af) { in sctp_send_asconf_add_ip()
586 addr_buf += af->sockaddr_len; in sctp_send_asconf_add_ip()
610 af = sctp_get_af_specific(addr->v4.sin_family); in sctp_send_asconf_add_ip()
611 memcpy(&saveaddr, addr, af->sockaddr_len); in sctp_send_asconf_add_ip()
614 addr_buf += af->sockaddr_len; in sctp_send_asconf_add_ip()
664 struct sctp_af *af; in sctp_bindx_rem() local
682 af = sctp_get_af_specific(sa_addr->sa.sa_family); in sctp_bindx_rem()
683 if (!af) { in sctp_bindx_rem()
688 if (!af->addr_valid(sa_addr, sp, NULL)) { in sctp_bindx_rem()
711 addr_buf += af->sockaddr_len; in sctp_bindx_rem()
747 struct sctp_af *af; in sctp_send_asconf_del_ip() local
782 af = sctp_get_af_specific(laddr->v4.sin_family); in sctp_send_asconf_del_ip()
783 if (!af) { in sctp_send_asconf_del_ip()
791 addr_buf += af->sockaddr_len; in sctp_send_asconf_del_ip()
859 af = sctp_get_af_specific(laddr->v4.sin_family); in sctp_send_asconf_del_ip()
864 addr_buf += af->sockaddr_len; in sctp_send_asconf_del_ip()
892 struct sctp_af *af; in sctp_asconf_mgmt() local
897 af = sctp_get_af_specific(addr->sa.sa_family); in sctp_asconf_mgmt()
898 if (!af) in sctp_asconf_mgmt()
900 if (sctp_verify_addr(sk, addr, af->sockaddr_len)) in sctp_asconf_mgmt()
995 struct sctp_af *af; in sctp_setsockopt_bindx() local
1026 af = sctp_get_af_specific(sa_addr->sa_family); in sctp_setsockopt_bindx()
1031 if (!af || (walk_size + af->sockaddr_len) > addrs_size) { in sctp_setsockopt_bindx()
1036 addr_buf += af->sockaddr_len; in sctp_setsockopt_bindx()
1037 walk_size += af->sockaddr_len; in sctp_setsockopt_bindx()
1111 struct sctp_af *af; in __sctp_connect() local
1119 af = sctp_get_af_specific(sa_addr->sa.sa_family); in __sctp_connect()
1124 if (!af || (walk_size + af->sockaddr_len) > addrs_size) { in __sctp_connect()
1132 memcpy(&to, sa_addr, af->sockaddr_len); in __sctp_connect()
1134 err = sctp_verify_addr(sk, &to, af->sockaddr_len); in __sctp_connect()
1217 addr_buf += af->sockaddr_len; in __sctp_connect()
1218 walk_size += af->sockaddr_len; in __sctp_connect()
3161 val -= sp->pf->af->net_header_len; in sctp_setsockopt_maxseg()
3191 struct sctp_af *af; in sctp_setsockopt_peer_primary_addr() local
3218 af = sctp_get_af_specific(prim.sspp_addr.ss_family); in sctp_setsockopt_peer_primary_addr()
3219 if (!af) in sctp_setsockopt_peer_primary_addr()
3222 if (!af->addr_valid((union sctp_addr *)&prim.sspp_addr, sp, NULL)) in sctp_setsockopt_peer_primary_addr()
3754 struct sctp_af *af = sctp_sk(sk)->pf->af; in sctp_setsockopt() local
3755 retval = af->setsockopt(sk, level, optname, optval, optlen); in sctp_setsockopt()
3912 struct sctp_af *af; in sctp_connect() local
3920 af = sctp_get_af_specific(addr->sa_family); in sctp_connect()
3921 if (!af || addr_len < af->sockaddr_len) { in sctp_connect()
3927 err = __sctp_connect(sk, addr, af->sockaddr_len, NULL); in sctp_connect()
6020 struct sctp_af *af = sctp_sk(sk)->pf->af; in sctp_getsockopt() local
6022 retval = af->getsockopt(sk, level, optname, optval, optlen); in sctp_getsockopt()
6351 struct sctp_af *af = sctp_sk(sk)->pf->af; in sctp_get_port() local
6354 af->from_sk(&addr, sk); in sctp_get_port()
6603 struct sctp_af *af; in sctp_autobind() local
6607 af = sctp_sk(sk)->pf->af; in sctp_autobind()
6610 af->inaddr_any(&autoaddr, port); in sctp_autobind()
6612 return sctp_do_bind(sk, &autoaddr, af->sockaddr_len); in sctp_autobind()