Lines Matching refs:oh
784 ipfw_obj_header *oh; in ipfw_config_nat() local
805 len = sizeof(*oh) + sizeof(*n); in ipfw_config_nat()
879 off = sizeof(*oh) + sizeof(*n); in ipfw_config_nat()
881 oh = (ipfw_obj_header *)buf; in ipfw_config_nat()
882 n = (struct nat44_cfg_nat *)(oh + 1); in ipfw_config_nat()
883 oh->ntlv.head.length = sizeof(oh->ntlv); in ipfw_config_nat()
884 snprintf(oh->ntlv.name, sizeof(oh->ntlv.name), "%d", i); in ipfw_config_nat()
978 i = do_set3(IP_FW_NAT44_XCONFIG, &oh->opheader, len); in ipfw_config_nat()
1004 ipfw_obj_header oh; in ipfw_delete_nat() local
1007 memset(&oh, 0, sizeof(oh)); in ipfw_delete_nat()
1008 nat_fill_ntlv(&oh.ntlv, i); in ipfw_delete_nat()
1009 ret = do_set3(IP_FW_NAT44_DESTROY, &oh.opheader, sizeof(oh)); in ipfw_delete_nat()
1027 ipfw_obj_header *oh; in nat_show_data() local
1033 if (nat_get_cmd(cfg->name, nla->cmd, &oh) != 0) { in nat_show_data()
1037 nat_show_cfg((struct nat44_cfg_nat *)(oh + 1), NULL); in nat_show_data()
1038 free(oh); in nat_show_data()
1041 if (nat_get_cmd(cfg->name, nla->cmd, &oh) == 0) { in nat_show_data()
1042 nat_show_log((struct nat44_cfg_nat *)(oh + 1), NULL); in nat_show_data()
1043 free(oh); in nat_show_data()
1120 ipfw_obj_header *oh; in nat_get_cmd() local
1125 sz = sizeof(*oh) + sizeof(*cfg) + 128; in nat_get_cmd()
1128 if ((oh = calloc(1, sz)) == NULL) in nat_get_cmd()
1130 cfg = (struct nat44_cfg_nat *)(oh + 1); in nat_get_cmd()
1131 oh->ntlv.head.length = sizeof(oh->ntlv); in nat_get_cmd()
1132 strlcpy(oh->ntlv.name, name, sizeof(oh->ntlv.name)); in nat_get_cmd()
1135 if (do_get3(cmd, &oh->opheader, &sz) != 0) { in nat_get_cmd()
1137 free(oh); in nat_get_cmd()
1143 *ooh = oh; in nat_get_cmd()
1153 ipfw_obj_header *oh; in ipfw_show_nat() local
1190 if (nat_get_cmd(name, cmd, &oh) != 0) in ipfw_show_nat()
1192 nat_show_cfg((struct nat44_cfg_nat *)(oh + 1), NULL); in ipfw_show_nat()
1193 free(oh); in ipfw_show_nat()