Lines Matching defs:hdr
290 struct pfloghdr hdr;
302 bzero(&hdr, sizeof (hdr));
303 hdr.length = PFLOG_REAL_HDRLEN;
304 hdr.af = af;
305 hdr.action = rm->action;
306 hdr.reason = reason;
307 memcpy(hdr.ifname, kif->pfik_name, sizeof (hdr.ifname));
310 hdr.rulenr = htonl(rm->nr);
311 hdr.subrulenr = -1;
313 hdr.rulenr = htonl(am->nr);
314 hdr.subrulenr = htonl(rm->nr);
316 strlcpy(hdr.ruleset, ruleset->anchor->name,
317 sizeof (hdr.ruleset));
322 hdr.uid = pd->lookup.uid;
323 hdr.pid = pd->lookup.pid;
325 hdr.uid = UID_MAX;
326 hdr.pid = NO_PID;
328 hdr.rule_uid = rm->cuid;
329 hdr.rule_pid = rm->cpid;
330 hdr.dir = dir;
347 bpf_tap_in(ifn, DLT_PFLOG, m, &hdr, PFLOG_HDRLEN);
351 bpf_tap_out(ifn, DLT_PFLOG, m, &hdr, PFLOG_HDRLEN);