Lines Matching refs:oh
576 ipfw_obj_header *oh; in nat44_cfg() local
583 if (sd->valsize < (sizeof(*oh) + sizeof(*ucfg))) in nat44_cfg()
586 oh = (ipfw_obj_header *)sd->kbuf; in nat44_cfg()
589 if (oh->ntlv.head.length != sizeof(oh->ntlv)) in nat44_cfg()
592 ucfg = (struct nat44_cfg_nat *)(oh + 1); in nat44_cfg()
601 read = sizeof(*oh) + sizeof(*ucfg); in nat44_cfg()
621 ipfw_obj_header *oh; in nat44_destroy() local
626 if (sd->valsize < sizeof(*oh)) in nat44_destroy()
629 oh = (ipfw_obj_header *)sd->kbuf; in nat44_destroy()
632 if (oh->ntlv.head.length != sizeof(oh->ntlv)) in nat44_destroy()
635 ntlv = &oh->ntlv; in nat44_destroy()
681 ipfw_obj_header *oh; in nat44_get_cfg() local
690 sz = sizeof(*oh) + sizeof(*ucfg); in nat44_get_cfg()
695 oh = (struct _ipfw_obj_header *)ipfw_get_sopt_header(sd, sz); in nat44_get_cfg()
698 if (oh->ntlv.head.length != sizeof(oh->ntlv)) in nat44_get_cfg()
701 ucfg = (struct nat44_cfg_nat *)(oh + 1); in nat44_get_cfg()
825 ipfw_obj_header *oh; in nat44_get_log() local
831 sz = sizeof(*oh) + sizeof(*ucfg); in nat44_get_log()
836 oh = (struct _ipfw_obj_header *)ipfw_get_sopt_header(sd, sz); in nat44_get_log()
839 if (oh->ntlv.head.length != sizeof(oh->ntlv)) in nat44_get_log()
842 ucfg = (struct nat44_cfg_nat *)(oh + 1); in nat44_get_log()
864 if (sd->valsize < sz + sizeof(*oh)) { in nat44_get_log()