Home
last modified time | relevance | path

Searched refs:vrf (Results 1 – 8 of 8) sorted by relevance

/trueos/sys/netinet/
HDsctp_pcb.c150 struct sctp_vrf *vrf = NULL; in sctp_allocate_vrf() local
154 vrf = sctp_find_vrf(vrf_id); in sctp_allocate_vrf()
155 if (vrf) { in sctp_allocate_vrf()
157 return (vrf); in sctp_allocate_vrf()
159 SCTP_MALLOC(vrf, struct sctp_vrf *, sizeof(struct sctp_vrf), in sctp_allocate_vrf()
161 if (vrf == NULL) { in sctp_allocate_vrf()
169 memset(vrf, 0, sizeof(struct sctp_vrf)); in sctp_allocate_vrf()
170 vrf->vrf_id = vrf_id; in sctp_allocate_vrf()
171 LIST_INIT(&vrf->ifnlist); in sctp_allocate_vrf()
172 vrf->total_ifa_count = 0; in sctp_allocate_vrf()
[all …]
HDsctp_sysctl.c143 struct sctp_vrf *vrf; in sctp_sysctl_number_of_addresses() local
150 if ((vrf = sctp_find_vrf(inp->def_vrf_id)) == NULL) { in sctp_sysctl_number_of_addresses()
154 LIST_FOREACH(sctp_ifn, &vrf->ifnlist, next_ifn) { in sctp_sysctl_number_of_addresses()
196 struct sctp_vrf *vrf; in sctp_sysctl_copy_out_local_addresses() local
230 if ((vrf = sctp_find_vrf(inp->def_vrf_id)) == NULL) { in sctp_sysctl_copy_out_local_addresses()
236 LIST_FOREACH(sctp_ifn, &vrf->ifnlist, next_ifn) { in sctp_sysctl_copy_out_local_addresses()
HDsctp_asconf.c2437 struct sctp_vrf *vrf = NULL; in sctp_find_valid_localaddr() local
2443 vrf = sctp_find_vrf(stcb->asoc.vrf_id); in sctp_find_valid_localaddr()
2444 if (vrf == NULL) { in sctp_find_valid_localaddr()
2449 LIST_FOREACH(sctp_ifn, &vrf->ifnlist, next_ifn) { in sctp_find_valid_localaddr()
3063 struct sctp_vrf *vrf = NULL; in sctp_check_address_list_all() local
3083 vrf = sctp_find_vrf(vrf_id); in sctp_check_address_list_all()
3084 if (vrf == NULL) { in sctp_check_address_list_all()
3089 LIST_FOREACH(sctp_ifn, &vrf->ifnlist, next_ifn) { in sctp_check_address_list_all()
3401 struct sctp_vrf *vrf = NULL; in sctp_asconf_send_nat_state_update() local
3406 vrf = sctp_find_vrf(vrf_id); in sctp_asconf_send_nat_state_update()
[all …]
HDsctp_pcb.h74 struct sctp_vrf *vrf; member
501 void sctp_free_vrf(struct sctp_vrf *vrf);
HDsctp_os_bsd.h212 #define SCTP_INIT_VRF_TABLEID(vrf) argument
HDsctp_output.c2034 struct sctp_vrf *vrf = NULL; in sctp_add_addresses_to_i_ia() local
2040 vrf = sctp_find_vrf(vrf_id); in sctp_add_addresses_to_i_ia()
2041 if (vrf == NULL) { in sctp_add_addresses_to_i_ia()
2050 if (vrf->total_ifa_count > SCTP_COUNT_LIMIT) { in sctp_add_addresses_to_i_ia()
2055 LIST_FOREACH(sctp_ifnp, &vrf->ifnlist, next_ifn) { in sctp_add_addresses_to_i_ia()
2097 LIST_FOREACH(sctp_ifnp, &vrf->ifnlist, next_ifn) { in sctp_add_addresses_to_i_ia()
2468 struct sctp_vrf *vrf; in sctp_choose_boundspecific_inp() local
2471 vrf = sctp_find_vrf(vrf_id); in sctp_choose_boundspecific_inp()
2472 if (vrf == NULL) in sctp_choose_boundspecific_inp()
2600 struct sctp_vrf *vrf; in sctp_choose_boundspecific_stcb() local
[all …]
HDsctputil.c5046 struct sctp_vrf *vrf; in sctp_find_ifa_by_addr() local
5053 vrf = sctp_find_vrf(vrf_id); in sctp_find_ifa_by_addr()
5054 if (vrf == NULL) { in sctp_find_ifa_by_addr()
5061 hash_head = &vrf->vrf_addr_hash[(hash_of_addr & vrf->vrf_addr_hashmark)]; in sctp_find_ifa_by_addr()
5064 hash_of_addr, (uint32_t) vrf->vrf_addr_hashmark, in sctp_find_ifa_by_addr()
5065 (uint32_t) (hash_of_addr & vrf->vrf_addr_hashmark)); in sctp_find_ifa_by_addr()
6695 struct sctp_vrf *vrf; in sctp_local_addr_count() local
6712 vrf = sctp_find_vrf(stcb->asoc.vrf_id); in sctp_local_addr_count()
6713 if (vrf == NULL) { in sctp_local_addr_count()
6722 LIST_FOREACH(sctp_ifn, &vrf->ifnlist, next_ifn) { in sctp_local_addr_count()
HDsctp_usrreq.c1113 struct sctp_vrf *vrf; in sctp_fill_up_addresses_vrf() local
1161 vrf = sctp_find_vrf(vrf_id); in sctp_fill_up_addresses_vrf()
1162 if (vrf == NULL) { in sctp_fill_up_addresses_vrf()
1166 LIST_FOREACH(sctp_ifn, &vrf->ifnlist, next_ifn) { in sctp_fill_up_addresses_vrf()
1355 struct sctp_vrf *vrf = NULL; in sctp_count_max_addresses_vrf() local
1364 vrf = sctp_find_vrf(vrf_id); in sctp_count_max_addresses_vrf()
1365 if (vrf == NULL) { in sctp_count_max_addresses_vrf()
1372 LIST_FOREACH(sctp_ifn, &vrf->ifnlist, next_ifn) { in sctp_count_max_addresses_vrf()