Lines Matching refs:hdr
98 pflog_print(const struct pfloghdr *hdr)
102 rulenr = ntohl(hdr->rulenr);
103 subrulenr = ntohl(hdr->subrulenr);
107 printf("rule %u.%s.%u/", rulenr, hdr->ruleset, subrulenr);
110 tok2str(pf_reasons, "unkn(%u)", hdr->reason),
111 tok2str(pf_actions, "unkn(%u)", hdr->action),
112 tok2str(pf_directions, "unkn(%u)", hdr->dir),
113 hdr->ifname);
122 const struct pfloghdr *hdr;
132 hdr = (struct pfloghdr *)p;
133 if (hdr->length < MIN_PFLOG_HDRLEN) {
135 return (hdr->length); /* XXX: not really */
137 hdrlen = BPF_WORDALIGN(hdr->length);
145 hdr = (struct pfloghdr *)p;
146 TCHECK(*hdr);
148 pflog_print(hdr);
151 af = hdr->af;
176 pflog_print(hdr);