Lines Matching refs:oh

125 static void objheader_to_ti(struct _ipfw_obj_header *oh, struct tid_info *ti);
910 ipfw_obj_header *oh; in manage_table_ent_v1() local
917 if (sd->valsize < (sizeof(*oh) + sizeof(*ctlv))) in manage_table_ent_v1()
924 oh = (ipfw_obj_header *)sd->kbuf; in manage_table_ent_v1()
927 if (oh->ntlv.head.length != sizeof(oh->ntlv)) in manage_table_ent_v1()
930 read = sizeof(*oh); in manage_table_ent_v1()
932 ctlv = (ipfw_obj_ctlv *)(oh + 1); in manage_table_ent_v1()
962 objheader_to_ti(oh, &ti); in manage_table_ent_v1()
963 ti.type = oh->ntlv.type; in manage_table_ent_v1()
987 error = (oh->opheader.opcode == IP_FW_TABLE_XADD) ? in manage_table_ent_v1()
1031 ipfw_obj_header *oh; in find_table_entry() local
1042 sz = sizeof(*oh) + sizeof(*tent); in find_table_entry()
1046 oh = (struct _ipfw_obj_header *)ipfw_get_sopt_header(sd, sz); in find_table_entry()
1047 tent = (ipfw_obj_tentry *)(oh + 1); in find_table_entry()
1050 if (oh->ntlv.head.length != sizeof(oh->ntlv)) in find_table_entry()
1053 objheader_to_ti(oh, &ti); in find_table_entry()
1054 ti.type = oh->ntlv.type; in find_table_entry()
1103 struct _ipfw_obj_header *oh; in flush_table_v0() local
1106 if (sd->valsize != sizeof(*oh)) in flush_table_v0()
1109 oh = (struct _ipfw_obj_header *)op3; in flush_table_v0()
1110 objheader_to_ti(oh, &ti); in flush_table_v0()
1279 struct _ipfw_obj_header *oh; in swap_table() local
1282 if (sd->valsize != sizeof(*oh) + sizeof(ipfw_obj_ntlv)) in swap_table()
1285 oh = (struct _ipfw_obj_header *)op3; in swap_table()
1286 ntlv_to_ti(&oh->ntlv, &ti_a); in swap_table()
1287 ntlv_to_ti((ipfw_obj_ntlv *)(oh + 1), &ti_b); in swap_table()
1654 struct _ipfw_obj_header *oh; in describe_table() local
1659 sz = sizeof(*oh) + sizeof(ipfw_xtable_info); in describe_table()
1660 oh = (struct _ipfw_obj_header *)ipfw_get_sopt_header(sd, sz); in describe_table()
1661 if (oh == NULL) in describe_table()
1664 objheader_to_ti(oh, &ti); in describe_table()
1672 export_table_info(ch, tc, (ipfw_xtable_info *)(oh + 1)); in describe_table()
1689 struct _ipfw_obj_header *oh; in modify_table() local
1696 if (sd->valsize != sizeof(*oh) + sizeof(ipfw_xtable_info)) in modify_table()
1699 oh = (struct _ipfw_obj_header *)sd->kbuf; in modify_table()
1700 i = (ipfw_xtable_info *)(oh + 1); in modify_table()
1706 tname = oh->ntlv.name; in modify_table()
1710 objheader_to_ti(oh, &ti); in modify_table()
1746 struct _ipfw_obj_header *oh; in create_table() local
1752 if (sd->valsize != sizeof(*oh) + sizeof(ipfw_xtable_info)) in create_table()
1755 oh = (struct _ipfw_obj_header *)sd->kbuf; in create_table()
1756 i = (ipfw_xtable_info *)(oh + 1); in create_table()
1762 tname = oh->ntlv.name; in create_table()
1773 objheader_to_ti(oh, &ti); in create_table()
1883 objheader_to_ti(struct _ipfw_obj_header *oh, struct tid_info *ti) in objheader_to_ti() argument
1886 ntlv_to_ti(&oh->ntlv, ti); in objheader_to_ti()
2093 struct _ipfw_obj_header *oh; in dump_table_v1() local
2102 oh = (struct _ipfw_obj_header *)ipfw_get_sopt_header(sd, sz); in dump_table_v1()
2103 if (oh == NULL) in dump_table_v1()
2106 i = (ipfw_xtable_info *)(oh + 1); in dump_table_v1()
2107 objheader_to_ti(oh, &ti); in dump_table_v1()