Lines Matching refs:laddr
1072 struct sctp_laddr *laddr; local
1074 LIST_FOREACH(laddr, &stcb->sctp_ep->sctp_addr_list, sctp_nxt_addr) {
1075 if (laddr->ifa->localifa_flags & SCTP_BEING_DELETED) {
1079 if (sctp_is_addr_restricted(stcb, laddr->ifa) &&
1080 (!sctp_is_addr_pending(stcb, laddr->ifa))) {
1087 if (laddr->ifa->address.sa.sa_family != to->sa_family) {
1096 sin = &laddr->ifa->address.sin;
1110 sin6 = &laddr->ifa->address.sin6;
1125 sconn = &laddr->ifa->address.sconn;
1158 struct sctp_laddr *laddr; local
1278 LIST_FOREACH(laddr, &inp->sctp_addr_list, sctp_nxt_addr) {
1280 if (laddr->ifa == NULL) {
1284 if (laddr->ifa->localifa_flags & SCTP_BEING_DELETED) {
1288 if (laddr->ifa->address.sa.sa_family ==
1295 intf_addr = &laddr->ifa->address.sin;
1311 intf_addr6 = &laddr->ifa->address.sin6;
1324 intf_addr = &laddr->ifa->address.sconn;
1894 struct sctp_laddr *laddr; local
2077 LIST_FOREACH(laddr, &inp->sctp_addr_list, sctp_nxt_addr) {
2078 if (laddr->ifa == NULL) {
2084 (void *)laddr->ifa);
2085 if (laddr->ifa->localifa_flags & SCTP_BEING_DELETED) {
2089 if (laddr->ifa->address.sa.sa_family == nam->sa_family) {
2101 laddr->ifa->address.sin.sin_addr.s_addr) {
2109 intf_addr6 = &laddr->ifa->address.sin6;
2119 if (sconn->sconn_addr == laddr->ifa->address.sconn.sconn_addr) {
3091 struct sctp_laddr *laddr, *oladdr; local
3158 laddr = SCTP_ZONE_GET(SCTP_BASE_INFO(ipi_zone_laddr), struct sctp_laddr);
3159 if (laddr == NULL) {
3169 memset(laddr, 0, sizeof(*laddr));
3170 (void)SCTP_GETTIME_TIMEVAL(&laddr->start_time);
3171 laddr->ifa = oladdr->ifa;
3172 atomic_add_int(&laddr->ifa->refcount, 1);
3173 LIST_INSERT_HEAD(&new_inp->sctp_addr_list, laddr,
3177 stcb->asoc.last_used_address = laddr;
3209 struct sctp_laddr *laddr; local
3211 laddr = SCTP_ZONE_GET(SCTP_BASE_INFO(ipi_zone_laddr), struct sctp_laddr);
3212 if (laddr == NULL) {
3218 memset(laddr, 0, sizeof(*laddr));
3219 (void)SCTP_GETTIME_TIMEVAL(&laddr->start_time);
3220 laddr->ifa = ifa;
3221 laddr->action = act;
3224 LIST_INSERT_HEAD(list, laddr, sctp_nxt_addr);
3233 sctp_remove_laddr(struct sctp_laddr *laddr) argument
3237 LIST_REMOVE(laddr, sctp_nxt_addr);
3238 sctp_free_ifa(laddr->ifa);
3239 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_laddr), laddr);
3886 struct sctp_laddr *laddr, *nladdr; local
4293 LIST_FOREACH_SAFE(laddr, &inp->sctp_addr_list, sctp_nxt_addr, nladdr) {
4294 sctp_remove_laddr(laddr);
5485 struct sctp_laddr *laddr, *naddr; local
5922 LIST_FOREACH_SAFE(laddr, &asoc->sctp_restricted_addrs, sctp_nxt_addr, naddr) {
5924 sctp_remove_laddr(laddr);
6092 struct sctp_laddr *laddr; local
6101 LIST_FOREACH(laddr, &inp->sctp_addr_list, sctp_nxt_addr) {
6102 if (laddr->ifa == NULL) {
6108 if (laddr->ifa->localifa_flags & SCTP_BEING_DELETED) {
6111 switch (laddr->ifa->address.sa.sa_family) {
6148 struct sctp_laddr *laddr; local
6167 LIST_FOREACH(laddr, &inp->sctp_addr_list, sctp_nxt_addr) {
6168 if (laddr->ifa == ifa) {
6247 struct sctp_laddr *laddr; local
6255 LIST_FOREACH(laddr, &inp->sctp_addr_list, sctp_nxt_addr) {
6256 if (laddr->ifa == ifa) {
6275 if (inp->next_addr_touse == laddr)
6284 if (stcb->asoc.last_used_address == laddr)
6289 if (net->ro._s_addr == laddr->ifa) {
6311 sctp_remove_laddr(laddr);
6327 struct sctp_laddr *laddr; local
6345 LIST_FOREACH(laddr, list, sctp_nxt_addr) {
6346 if (laddr->ifa == ifa) {
6363 struct sctp_laddr *laddr; local
6384 LIST_FOREACH(laddr, &stcb->asoc.sctp_restricted_addrs, sctp_nxt_addr) {
6386 if (laddr->ifa == NULL)
6388 if (laddr->ifa == ifa) {
6389 sctp_remove_laddr(laddr);