/freebsd-13-stable/sbin/ipfw/ |
H A D | nat64clat.c | 184 ipfw_obj_lheader *olh; local 191 olh = (ipfw_obj_lheader *)buf; 192 cfg = (ipfw_nat64clat_cfg *)(olh + 1); 253 olh->count = 1; 254 olh->objsize = sizeof(*cfg); 255 olh->size = sizeof(buf); 257 if (do_set3(IP_FW_NAT64CLAT_CREATE, &olh->opheader, sizeof(buf)) != 0) 504 ipfw_obj_lheader *olh; local 511 sz = sizeof(*olh) + 16 * sizeof(*cfg); 513 if ((olh [all...] |
H A D | nat64stl.c | 218 ipfw_obj_lheader *olh; local 223 olh = (ipfw_obj_lheader *)buf; 224 cfg = (ipfw_nat64stl_cfg *)(olh + 1); 289 olh->count = 1; 290 olh->objsize = sizeof(*cfg); 291 olh->size = sizeof(buf); 293 if (do_set3(IP_FW_NAT64STL_CREATE, &olh->opheader, sizeof(buf)) != 0) 520 ipfw_obj_lheader *olh; local 527 sz = sizeof(*olh) + 16 * sizeof(*cfg); 529 if ((olh [all...] |
H A D | nptv6.c | 194 ipfw_obj_lheader *olh; local 200 olh = (ipfw_obj_lheader *)buf; 201 cfg = (ipfw_nptv6_cfg *)(olh + 1); 273 olh->count = 1; 274 olh->objsize = sizeof(*cfg); 275 olh->size = sizeof(buf); 277 if (do_set3(IP_FW_NPTV6_CREATE, &olh->opheader, sizeof(buf)) != 0) 419 ipfw_obj_lheader *olh; local 426 sz = sizeof(*olh) + 16 * sizeof(*cfg); 428 if ((olh [all...] |
H A D | nat64lsn.c | 404 ipfw_obj_lheader *olh; local 409 olh = (ipfw_obj_lheader *)buf; 410 cfg = (ipfw_nat64lsn_cfg *)(olh + 1); 527 olh->count = 1; 528 olh->objsize = sizeof(*cfg); 529 olh->size = sizeof(buf); 531 if (do_set3(IP_FW_NAT64LSN_CREATE, &olh->opheader, sizeof(buf)) != 0) 852 ipfw_obj_lheader *olh; local 859 sz = sizeof(*olh) + 16 * sizeof(ipfw_nat64lsn_cfg); 862 if ((olh [all...] |
H A D | tables.c | 1684 ipfw_obj_lheader *olh; local 1691 sz = sizeof(*olh) + 16 * sizeof(ipfw_xtable_info); 1694 if ((olh = calloc(1, sz)) == NULL) 1697 olh->size = sz; 1698 if (do_get3(IP_FW_TABLES_XLIST, &olh->opheader, &sz) != 0) { 1699 sz = olh->size; 1700 free(olh); 1707 qsort(olh + 1, olh->count, olh 1943 ipfw_obj_lheader req, *olh; local 1984 ipfw_obj_lheader *olh; local 2048 ipfw_obj_lheader *olh; local [all...] |
H A D | nat.c | 1073 ipfw_obj_lheader *olh; local 1080 sz = sizeof(*olh) + 16 * sizeof(struct nat44_cfg_nat); 1083 if ((olh = calloc(1, sz)) == NULL) 1086 olh->size = sz; 1087 if (do_get3(IP_FW_NAT44_LIST_NAT, &olh->opheader, &sz) != 0) { 1088 sz = olh->size; 1089 free(olh); 1096 qsort(olh + 1, olh->count, olh [all...] |
H A D | ipfw2.c | 5513 ipfw_obj_lheader req, *olh; local 5526 if ((olh = calloc(1, sz)) == NULL) 5529 olh->size = sz; 5530 if (do_get3(IP_FW_DUMP_SRVOBJECTS, &olh->opheader, &sz) != 0) { 5531 free(olh); 5535 if (olh->count > 0) 5539 ntlv = (ipfw_obj_ntlv *)(olh + 1); 5540 for (i = 0; i < olh->count; i++) { 5544 (ipfw_obj_ntlv *)(olh + 1), olh 5587 ipfw_obj_lheader req, *olh; local 5631 ipfw_obj_lheader *olh = NULL; local [all...] |
/freebsd-13-stable/sys/netpfil/ipfw/ |
H A D | ip_fw_iface.c | 500 struct _ipfw_obj_lheader *olh; local 504 olh = (struct _ipfw_obj_lheader *)ipfw_get_sopt_header(sd,sizeof(*olh)); 505 if (olh == NULL) 507 if (sd->valsize < olh->size) 519 olh->count = count; 520 olh->objsize = sizeof(ipfw_iface_info); 522 if (size > olh->size) { 523 olh->size = size; 527 olh [all...] |
H A D | ip_fw_table_value.c | 724 struct _ipfw_obj_lheader *olh; local 729 olh = (struct _ipfw_obj_lheader *)ipfw_get_sopt_header(sd,sizeof(*olh)); 730 if (olh == NULL) 732 if (sd->valsize < olh->size) 742 olh->count = count; 743 olh->objsize = sizeof(ipfw_table_value); 745 if (size > olh->size) { 746 olh->size = size; 750 olh [all...] |
H A D | ip_fw_table.c | 110 static int export_tables(struct ip_fw_chain *ch, ipfw_obj_lheader *olh, 1701 struct _ipfw_obj_lheader *olh; local 1704 olh = (struct _ipfw_obj_lheader *)ipfw_get_sopt_header(sd,sizeof(*olh)); 1705 if (olh == NULL) 1707 if (sd->valsize < olh->size) 1711 error = export_tables(ch, olh, sd); 2128 export_tables(struct ip_fw_chain *ch, ipfw_obj_lheader *olh, argument 2139 olh->count = count; 2140 olh 2698 struct _ipfw_obj_lheader *olh; local [all...] |
H A D | ip_fw_nat.c | 780 ipfw_obj_lheader *olh; local 789 olh = (ipfw_obj_lheader *)ipfw_get_sopt_header(sd, sizeof(*olh)); 795 olh->count = nat_count; 796 olh->objsize = sizeof(struct nat44_cfg_nat); 797 olh->size = sizeof(*olh) + olh->count * olh->objsize; 799 if (sd->valsize < olh [all...] |
H A D | ip_fw_sockopt.c | 3099 struct _ipfw_obj_lheader *olh; local 3104 olh = (struct _ipfw_obj_lheader *)ipfw_get_sopt_header(sd,sizeof(*olh)); 3105 if (olh == NULL) 3107 if (sd->valsize < olh->size) 3115 olh->count = count; 3116 olh->objsize = sizeof(ipfw_sopt_info); 3118 if (size > olh->size) { 3119 olh->size = size; 3123 olh [all...] |
/freebsd-13-stable/sys/netpfil/ipfw/nat64/ |
H A D | nat64clat_control.c | 147 ipfw_obj_lheader *olh; local 152 if (sd->valsize != sizeof(*olh) + sizeof(*uc)) 155 olh = (ipfw_obj_lheader *)sd->kbuf; 156 uc = (ipfw_nat64clat_cfg *)(olh + 1); 361 ipfw_obj_lheader *olh; local 368 olh = (ipfw_obj_lheader *)ipfw_get_sopt_header(sd, sizeof(*olh)); 371 olh->count = ipfw_objhash_count_type(CHAIN_TO_SRV(ch), 373 olh->objsize = sizeof(ipfw_nat64clat_cfg); 374 olh [all...] |
H A D | nat64stl_control.c | 178 ipfw_obj_lheader *olh; local 184 if (sd->valsize != sizeof(*olh) + sizeof(*uc)) 187 olh = (ipfw_obj_lheader *)sd->kbuf; 188 uc = (ipfw_nat64stl_cfg *)(olh + 1); 366 ipfw_obj_lheader *olh; local 373 olh = (ipfw_obj_lheader *)ipfw_get_sopt_header(sd, sizeof(*olh)); 376 olh->count = ipfw_objhash_count_type(CHAIN_TO_SRV(ch), 378 olh->objsize = sizeof(ipfw_nat64stl_cfg); 379 olh [all...] |
H A D | nat64lsn_control.c | 116 ipfw_obj_lheader *olh; local 122 if (sd->valsize != sizeof(*olh) + sizeof(*uc)) 125 olh = (ipfw_obj_lheader *)sd->kbuf; 126 uc = (ipfw_nat64lsn_cfg *)(olh + 1); 363 ipfw_obj_lheader *olh; local 370 olh = (ipfw_obj_lheader *)ipfw_get_sopt_header(sd, sizeof(*olh)); 373 olh->count = ipfw_objhash_count_type(CHAIN_TO_SRV(ch), 375 olh->objsize = sizeof(ipfw_nat64lsn_cfg); 376 olh [all...] |
/freebsd-13-stable/sys/netpfil/ipfw/nptv6/ |
H A D | nptv6.c | 654 ipfw_obj_lheader *olh; local 659 if (sd->valsize != sizeof(*olh) + sizeof(*uc)) 662 olh = (ipfw_obj_lheader *)sd->kbuf; 663 uc = (ipfw_nptv6_cfg *)(olh + 1); 784 ipfw_obj_lheader *olh; local 791 olh = (ipfw_obj_lheader *)ipfw_get_sopt_header(sd, sizeof(*olh)); 794 olh->count = ipfw_objhash_count_type(CHAIN_TO_SRV(ch), 796 olh->objsize = sizeof(ipfw_nptv6_cfg); 797 olh [all...] |