Lines Matching refs:addrcnt
505 static int sctp_bindx_add(struct sock *sk, struct sockaddr *addrs, int addrcnt) in sctp_bindx_add() argument
514 addrs, addrcnt); in sctp_bindx_add()
517 for (cnt = 0; cnt < addrcnt; cnt++) { in sctp_bindx_add()
557 int addrcnt) in sctp_send_asconf_add_ip() argument
580 __func__, sk, addrs, addrcnt); in sctp_send_asconf_add_ip()
598 for (i = 0; i < addrcnt; i++) { in sctp_send_asconf_add_ip()
611 if (i < addrcnt) in sctp_send_asconf_add_ip()
621 addrcnt, SCTP_PARAM_ADD_IP); in sctp_send_asconf_add_ip()
631 for (i = 0; i < addrcnt; i++) { in sctp_send_asconf_add_ip()
678 static int sctp_bindx_rem(struct sock *sk, struct sockaddr *addrs, int addrcnt) in sctp_bindx_rem() argument
690 __func__, sk, addrs, addrcnt); in sctp_bindx_rem()
693 for (cnt = 0; cnt < addrcnt; cnt++) { in sctp_bindx_rem()
759 int addrcnt) in sctp_send_asconf_del_ip() argument
783 __func__, sk, addrs, addrcnt); in sctp_send_asconf_del_ip()
802 for (i = 0; i < addrcnt; i++) { in sctp_send_asconf_del_ip()
815 if (i < addrcnt) in sctp_send_asconf_del_ip()
825 addrcnt, sp); in sctp_send_asconf_del_ip()
826 if ((laddr == NULL) && (addrcnt == 1)) { in sctp_send_asconf_del_ip()
867 chunk = sctp_make_asconf_update_ip(asoc, laddr, addrs, addrcnt, in sctp_send_asconf_del_ip()
879 for (i = 0; i < addrcnt; i++) { in sctp_send_asconf_del_ip()
1003 int addrcnt = 0; in sctp_setsockopt_bindx() local
1028 addrcnt++; in sctp_setsockopt_bindx()
1041 err = sctp_bindx_add(sk, addrs, addrcnt); in sctp_setsockopt_bindx()
1044 return sctp_send_asconf_add_ip(sk, addrs, addrcnt); in sctp_setsockopt_bindx()
1046 err = sctp_bindx_rem(sk, addrs, addrcnt); in sctp_setsockopt_bindx()
1049 return sctp_send_asconf_del_ip(sk, addrs, addrcnt); in sctp_setsockopt_bindx()