Searched refs:sctp_ifap (Results 1 – 5 of 5) sorted by relevance
/freebsd/sys/netinet/ |
H A D | sctp_pcb.c | 251 sctp_free_ifa(struct sctp_ifa *sctp_ifap) in sctp_free_ifa() argument 253 if (SCTP_DECREMENT_AND_CHECK_REFCOUNT(&sctp_ifap->refcount)) { in sctp_free_ifa() 255 if (sctp_ifap->ifn_p) { in sctp_free_ifa() 256 sctp_free_ifn(sctp_ifap->ifn_p); in sctp_free_ifa() 258 SCTP_FREE(sctp_ifap, SCTP_M_IFA); in sctp_free_ifa() 283 sctp_add_ifa_to_ifn(struct sctp_ifn *sctp_ifnp, struct sctp_ifa *sctp_ifap) in sctp_add_ifa_to_ifn() argument 288 LIST_INSERT_HEAD(&sctp_ifnp->ifalist, sctp_ifap, next_ifa); in sctp_add_ifa_to_ifn() 289 sctp_ifap->ifn_p = sctp_ifnp; in sctp_add_ifa_to_ifn() 290 atomic_add_int(&sctp_ifap->ifn_p->refcount, 1); in sctp_add_ifa_to_ifn() 293 ifa_af = sctp_ifap->address.sa.sa_family; in sctp_add_ifa_to_ifn() [all …]
|
H A D | sctp_asconf.c | 3274 struct sctp_ifa *sctp_ifap; in sctp_asconf_send_nat_state_update() local 3381 LIST_FOREACH(sctp_ifap, &sctp_ifnp->ifalist, next_ifa) { in sctp_asconf_send_nat_state_update() 3382 switch (sctp_ifap->address.sa.sa_family) { in sctp_asconf_send_nat_state_update() 3385 to = &sctp_ifap->address.sin; in sctp_asconf_send_nat_state_update() 3400 to6 = &sctp_ifap->address.sin6; in sctp_asconf_send_nat_state_update() 3416 sctp_asconf_queue_mgmt(stcb, sctp_ifap, SCTP_ADD_IP_ADDRESS); in sctp_asconf_send_nat_state_update() 3440 sctp_ifap = laddr->ifa; in sctp_asconf_send_nat_state_update() 3441 switch (sctp_ifap->address.sa.sa_family) { in sctp_asconf_send_nat_state_update() 3444 to = &sctp_ifap->address.sin; in sctp_asconf_send_nat_state_update() 3455 to6 = &sctp_ifap->address.sin6; in sctp_asconf_send_nat_state_update() [all …]
|
H A D | sctp_pcb.h | 497 void sctp_free_ifa(struct sctp_ifa *sctp_ifap);
|
H A D | sctp_output.c | 2041 struct sctp_ifa *sctp_ifap; in sctp_add_addresses_to_i_ia() local 2059 LIST_FOREACH(sctp_ifap, &sctp_ifnp->ifalist, next_ifa) { in sctp_add_addresses_to_i_ia() 2061 if ((sctp_ifap->address.sa.sa_family == AF_INET) && in sctp_add_addresses_to_i_ia() 2063 &sctp_ifap->address.sin.sin_addr) != 0)) { in sctp_add_addresses_to_i_ia() 2068 if ((sctp_ifap->address.sa.sa_family == AF_INET6) && in sctp_add_addresses_to_i_ia() 2070 &sctp_ifap->address.sin6.sin6_addr) != 0)) { in sctp_add_addresses_to_i_ia() 2074 if (sctp_is_addr_restricted(stcb, sctp_ifap)) { in sctp_add_addresses_to_i_ia() 2077 if (sctp_is_address_in_scope(sctp_ifap, scope, 1) == 0) { in sctp_add_addresses_to_i_ia() 2102 LIST_FOREACH(sctp_ifap, &sctp_ifnp->ifalist, next_ifa) { in sctp_add_addresses_to_i_ia() 2104 if ((sctp_ifap->address.sa.sa_family == AF_INET) && in sctp_add_addresses_to_i_ia() [all …]
|
H A D | sctputil.c | 5366 struct sctp_ifa *sctp_ifap; in sctp_find_ifa_by_addr() local 5398 LIST_FOREACH(sctp_ifap, hash_head, next_bucket) { in sctp_find_ifa_by_addr() 5399 if (addr->sa_family != sctp_ifap->address.sa.sa_family) in sctp_find_ifa_by_addr() 5404 sctp_ifap->address.sin.sin_addr.s_addr) { in sctp_find_ifa_by_addr() 5413 &sctp_ifap->address.sin6)) { in sctp_find_ifa_by_addr() 5422 return (sctp_ifap); in sctp_find_ifa_by_addr()
|