Home | History | Annotate | Download | only in tcpdump

Lines Matching refs:hdr

94 pflog_print(const struct pfloghdr *hdr)
98 rulenr = EXTRACT_32BITS(&hdr->rulenr);
99 subrulenr = EXTRACT_32BITS(&hdr->subrulenr);
103 printf("rule %u.%s.%u/", rulenr, hdr->ruleset, subrulenr);
106 tok2str(pf_reasons, "unkn(%u)", hdr->reason),
107 tok2str(pf_actions, "unkn(%u)", hdr->action),
108 tok2str(pf_directions, "unkn(%u)", hdr->dir),
109 hdr->ifname);
118 const struct pfloghdr *hdr;
128 hdr = (struct pfloghdr *)p;
129 if (hdr->length < MIN_PFLOG_HDRLEN) {
131 return (hdr->length); /* XXX: not really */
133 hdrlen = BPF_WORDALIGN(hdr->length);
141 hdr = (struct pfloghdr *)p;
142 TCHECK(*hdr);
144 pflog_print(hdr);
147 af = hdr->af;
172 pflog_print(hdr);