Searched refs:ctlv (Results 1 – 6 of 6) sorted by relevance
| /NextBSD/sys/netpfil/ipfw/ |
| HD | ip_fw_sockopt.c | 1927 ipfw_obj_ctlv *ctlv; in dump_static_rules() local 1935 ctlv = (ipfw_obj_ctlv *)ipfw_get_sopt_space(sd, sizeof(*ctlv)); in dump_static_rules() 1936 if (ctlv == NULL) in dump_static_rules() 1938 ctlv->head.type = IPFW_TLV_TBLNAME_LIST; in dump_static_rules() 1939 ctlv->head.length = da->tcount * sizeof(ipfw_obj_ntlv) + in dump_static_rules() 1940 sizeof(*ctlv); in dump_static_rules() 1941 ctlv->count = da->tcount; in dump_static_rules() 1942 ctlv->objsize = sizeof(ipfw_obj_ntlv); in dump_static_rules() 1969 ctlv = (ipfw_obj_ctlv *)ipfw_get_sopt_space(sd, sizeof(*ctlv)); in dump_static_rules() 1970 if (ctlv == NULL) in dump_static_rules() [all …]
|
| HD | ip_fw_table.c | 964 ipfw_obj_ctlv *ctlv; in manage_table_ent_v1() local 971 if (sd->valsize < (sizeof(*oh) + sizeof(*ctlv))) in manage_table_ent_v1() 986 ctlv = (ipfw_obj_ctlv *)(oh + 1); in manage_table_ent_v1() 987 if (ctlv->head.length + read != sd->valsize) in manage_table_ent_v1() 990 read += sizeof(*ctlv); in manage_table_ent_v1() 991 tent = (ipfw_obj_tentry *)(ctlv + 1); in manage_table_ent_v1() 992 if (ctlv->count * sizeof(*tent) + read != sd->valsize) in manage_table_ent_v1() 995 if (ctlv->count == 0) in manage_table_ent_v1() 1008 for (i = 0; i < ctlv->count; i++, ptent++) { in manage_table_ent_v1() 1021 if (ctlv->count == 1) { in manage_table_ent_v1() [all …]
|
| HD | ip_fw_dynamic.c | 1532 ipfw_obj_ctlv *ctlv; in ipfw_dump_states() local 1541 ctlv = (ipfw_obj_ctlv *)ipfw_get_sopt_space(sd, sizeof(*ctlv)); in ipfw_dump_states() 1542 if (ctlv == NULL) in ipfw_dump_states() 1545 ctlv->head.type = IPFW_TLV_DYNSTATE_LIST; in ipfw_dump_states() 1546 ctlv->objsize = sz; in ipfw_dump_states()
|
| HD | ip_fw_private.h | 458 ipfw_obj_ctlv *ctlv; /* name TLV containter */ member
|
| /NextBSD/sbin/ipfw/ |
| HD | ipfw2.c | 382 static char *table_search_ctlv(ipfw_obj_ctlv *ctlv, uint16_t idx); 383 static void object_sort_ctlv(ipfw_obj_ctlv *ctlv); 2330 ipfw_obj_ctlv *ctlv; in foreach_state() local 2336 ctlv = (ipfw_obj_ctlv *)base; in foreach_state() 2337 switch (ctlv->head.type) { in foreach_state() 2339 base += sizeof(*ctlv); in foreach_state() 2340 sz -= sizeof(*ctlv); in foreach_state() 2546 ipfw_obj_ctlv *ctlv, *tstate; in ipfw_show_config() local 2561 ctlv = (ipfw_obj_ctlv *)(cfg + 1); in ipfw_show_config() 2565 if (ctlv->head.type == IPFW_TLV_TBLNAME_LIST) { in ipfw_show_config() [all …]
|
| HD | tables.c | 827 ipfw_obj_ctlv *ctlv; in table_do_modify_record() local 834 sz = sizeof(*ctlv) + sizeof(*tent) * count; in table_do_modify_record() 847 ctlv = (ipfw_obj_ctlv *)(oh + 1); in table_do_modify_record() 848 ctlv->count = count; in table_do_modify_record() 849 ctlv->head.length = sz; in table_do_modify_record() 851 ctlv->flags |= IPFW_CTF_ATOMIC; in table_do_modify_record() 854 memcpy(ctlv + 1, tent, sizeof(*tent) * count); in table_do_modify_record() 855 tent = (ipfw_obj_tentry *)(ctlv + 1); in table_do_modify_record() 863 tent = (ipfw_obj_tentry *)(ctlv + 1); in table_do_modify_record() 865 memcpy(tent_base, ctlv + 1, sizeof(*tent) * count); in table_do_modify_record()
|