Lines Matching refs:oh

770 	ipfw_obj_header *oh;  in ipfw_config_nat()  local
790 len = sizeof(*oh) + sizeof(*n); in ipfw_config_nat()
862 off = sizeof(*oh) + sizeof(*n); in ipfw_config_nat()
864 oh = (ipfw_obj_header *)buf; in ipfw_config_nat()
865 n = (struct nat44_cfg_nat *)(oh + 1); in ipfw_config_nat()
866 oh->ntlv.head.length = sizeof(oh->ntlv); in ipfw_config_nat()
867 snprintf(oh->ntlv.name, sizeof(oh->ntlv.name), "%d", i); in ipfw_config_nat()
942 i = do_set3(IP_FW_NAT44_XCONFIG, &oh->opheader, len); in ipfw_config_nat()
968 ipfw_obj_header oh; in ipfw_delete_nat() local
971 memset(&oh, 0, sizeof(oh)); in ipfw_delete_nat()
972 nat_fill_ntlv(&oh.ntlv, i); in ipfw_delete_nat()
973 ret = do_set3(IP_FW_NAT44_DESTROY, &oh.opheader, sizeof(oh)); in ipfw_delete_nat()
991 ipfw_obj_header *oh; in nat_show_data() local
997 if (nat_get_cmd(cfg->name, nla->cmd, &oh) != 0) { in nat_show_data()
1001 nat_show_cfg((struct nat44_cfg_nat *)(oh + 1), NULL); in nat_show_data()
1002 free(oh); in nat_show_data()
1005 if (nat_get_cmd(cfg->name, nla->cmd, &oh) == 0) { in nat_show_data()
1006 nat_show_log((struct nat44_cfg_nat *)(oh + 1), NULL); in nat_show_data()
1007 free(oh); in nat_show_data()
1085 ipfw_obj_header *oh; in nat_get_cmd() local
1090 sz = sizeof(*oh) + sizeof(*cfg) + 128; in nat_get_cmd()
1093 if ((oh = calloc(1, sz)) == NULL) in nat_get_cmd()
1095 cfg = (struct nat44_cfg_nat *)(oh + 1); in nat_get_cmd()
1096 oh->ntlv.head.length = sizeof(oh->ntlv); in nat_get_cmd()
1097 strlcpy(oh->ntlv.name, name, sizeof(oh->ntlv.name)); in nat_get_cmd()
1100 if (do_get3(cmd, &oh->opheader, &sz) != 0) { in nat_get_cmd()
1102 free(oh); in nat_get_cmd()
1108 *ooh = oh; in nat_get_cmd()
1118 ipfw_obj_header *oh; in ipfw_show_nat() local
1155 if (nat_get_cmd(name, cmd, &oh) != 0) in ipfw_show_nat()
1157 nat_show_cfg((struct nat44_cfg_nat *)(oh + 1), NULL); in ipfw_show_nat()
1158 free(oh); in ipfw_show_nat()