Home | History | Annotate | Download | only in npf

Lines Matching refs:hdr

89 	struct npfloghdr hdr;
91 memset(&hdr, 0, sizeof(hdr));
94 hdr.af = AF_INET;
96 hdr.af = AF_INET6;
98 hdr.af = AF_UNSPEC;
101 hdr.length = NPFLOG_REAL_HDRLEN;
102 hdr.action = *decision == NPF_DECISION_PASS ?
104 hdr.reason = 0; /* match */
108 hdr.ifname, sizeof(hdr.ifname));
110 hdr.rulenr = htonl((uint32_t)mi->mi_rid);
111 hdr.subrulenr = htonl((uint32_t)(mi->mi_rid >> 32));
112 strlcpy(hdr.ruleset, "rules", sizeof(hdr.ruleset));
114 hdr.uid = UID_MAX;
115 hdr.pid = (pid_t)-1;
116 hdr.rule_uid = UID_MAX;
117 hdr.rule_pid = (pid_t)-1;
122 hdr.dir = 0;
125 hdr.dir = 1;
128 hdr.dir = 2;
145 bpf_mtap2(ifp->if_bpf, &hdr, NPFLOG_HDRLEN, m, BPF_D_OUT);