Lines Matching refs:addrcnt
502 static int sctp_bindx_add(struct sock *sk, struct sockaddr *addrs, int addrcnt) in sctp_bindx_add() argument
511 addrs, addrcnt); in sctp_bindx_add()
514 for (cnt = 0; cnt < addrcnt; cnt++) { in sctp_bindx_add()
554 int addrcnt) in sctp_send_asconf_add_ip() argument
577 __func__, sk, addrs, addrcnt); in sctp_send_asconf_add_ip()
595 for (i = 0; i < addrcnt; i++) { in sctp_send_asconf_add_ip()
608 if (i < addrcnt) in sctp_send_asconf_add_ip()
618 addrcnt, SCTP_PARAM_ADD_IP); in sctp_send_asconf_add_ip()
628 for (i = 0; i < addrcnt; i++) { in sctp_send_asconf_add_ip()
675 static int sctp_bindx_rem(struct sock *sk, struct sockaddr *addrs, int addrcnt) in sctp_bindx_rem() argument
687 __func__, sk, addrs, addrcnt); in sctp_bindx_rem()
690 for (cnt = 0; cnt < addrcnt; cnt++) { in sctp_bindx_rem()
756 int addrcnt) in sctp_send_asconf_del_ip() argument
780 __func__, sk, addrs, addrcnt); in sctp_send_asconf_del_ip()
799 for (i = 0; i < addrcnt; i++) { in sctp_send_asconf_del_ip()
812 if (i < addrcnt) in sctp_send_asconf_del_ip()
822 addrcnt, sp); in sctp_send_asconf_del_ip()
823 if ((laddr == NULL) && (addrcnt == 1)) { in sctp_send_asconf_del_ip()
864 chunk = sctp_make_asconf_update_ip(asoc, laddr, addrs, addrcnt, in sctp_send_asconf_del_ip()
876 for (i = 0; i < addrcnt; i++) { in sctp_send_asconf_del_ip()
1000 int addrcnt = 0; in sctp_setsockopt_bindx() local
1025 addrcnt++; in sctp_setsockopt_bindx()
1038 err = sctp_bindx_add(sk, addrs, addrcnt); in sctp_setsockopt_bindx()
1041 return sctp_send_asconf_add_ip(sk, addrs, addrcnt); in sctp_setsockopt_bindx()
1043 err = sctp_bindx_rem(sk, addrs, addrcnt); in sctp_setsockopt_bindx()
1046 return sctp_send_asconf_del_ip(sk, addrs, addrcnt); in sctp_setsockopt_bindx()