Lines Matching refs:oh
758 ipfw_obj_header *oh;
778 len = sizeof(*oh) + sizeof(*n);
850 off = sizeof(*oh) + sizeof(*n);
852 oh = (ipfw_obj_header *)buf;
853 n = (struct nat44_cfg_nat *)(oh + 1);
854 oh->ntlv.head.length = sizeof(oh->ntlv);
855 snprintf(oh->ntlv.name, sizeof(oh->ntlv.name), "%d", i);
930 i = do_set3(IP_FW_NAT44_XCONFIG, &oh->opheader, len);
956 ipfw_obj_header oh;
959 memset(&oh, 0, sizeof(oh));
960 nat_fill_ntlv(&oh.ntlv, i);
961 ret = do_set3(IP_FW_NAT44_DESTROY, &oh.opheader, sizeof(oh));
979 ipfw_obj_header *oh;
985 if (nat_get_cmd(cfg->name, nla->cmd, &oh) != 0) {
989 nat_show_cfg((struct nat44_cfg_nat *)(oh + 1), NULL);
990 free(oh);
993 if (nat_get_cmd(cfg->name, nla->cmd, &oh) == 0) {
994 nat_show_log((struct nat44_cfg_nat *)(oh + 1), NULL);
995 free(oh);
1072 ipfw_obj_header *oh;
1077 sz = sizeof(*oh) + sizeof(*cfg) + 128;
1080 if ((oh = calloc(1, sz)) == NULL)
1082 cfg = (struct nat44_cfg_nat *)(oh + 1);
1083 oh->ntlv.head.length = sizeof(oh->ntlv);
1084 strlcpy(oh->ntlv.name, name, sizeof(oh->ntlv.name));
1087 if (do_get3(cmd, &oh->opheader, &sz) != 0) {
1089 free(oh);
1095 *ooh = oh;
1105 ipfw_obj_header *oh;
1142 if (nat_get_cmd(name, cmd, &oh) != 0)
1144 nat_show_cfg((struct nat44_cfg_nat *)(oh + 1), NULL);
1145 free(oh);