Lines Matching refs:hdr
89 pflog_print(netdissect_options *ndo, const struct pfloghdr *hdr)
93 rulenr = EXTRACT_32BITS(&hdr->rulenr);
94 subrulenr = EXTRACT_32BITS(&hdr->subrulenr);
98 ND_PRINT((ndo, "rule %u.%s.%u/", rulenr, hdr->ruleset, subrulenr));
100 ND_PRINT((ndo, "%s", tok2str(pf_reasons, "unkn(%u)", hdr->reason)));
102 if (hdr->uid != UID_MAX)
103 ND_PRINT((ndo, " [uid %u]", (unsigned)hdr->uid));
106 tok2str(pf_actions, "unkn(%u)", hdr->action),
107 tok2str(pf_directions, "unkn(%u)", hdr->dir),
108 hdr->ifname));
118 const struct pfloghdr *hdr;
128 hdr = (const struct pfloghdr *)p;
129 if (hdr->length < MIN_PFLOG_HDRLEN) {
131 return (hdr->length); /* XXX: not really */
133 hdrlen = BPF_WORDALIGN(hdr->length);
141 ND_TCHECK(*hdr);
143 pflog_print(ndo, hdr);
146 af = hdr->af;
173 pflog_print(ndo, hdr);