Changeset View
Changeset View
Standalone View
Standalone View
sys/netpfil/ipfw/nat64/nat64clat.c
Show First 20 Lines • Show All 65 Lines • ▼ Show 20 Lines | |||||
static void | static void | ||||
nat64clat_log(struct pfloghdr *plog, struct mbuf *m, sa_family_t family, | nat64clat_log(struct pfloghdr *plog, struct mbuf *m, sa_family_t family, | ||||
uint32_t kidx) | uint32_t kidx) | ||||
{ | { | ||||
static uint32_t pktid = 0; | static uint32_t pktid = 0; | ||||
memset(plog, 0, sizeof(*plog)); | memset(plog, 0, sizeof(*plog)); | ||||
plog->length = PFLOG_REAL_HDRLEN; | plog->length = PFLOG_HDRLEN; | ||||
plog->af = family; | plog->af = family; | ||||
plog->action = PF_NAT; | plog->action = PF_NAT; | ||||
plog->dir = PF_IN; | plog->dir = PF_IN; | ||||
plog->rulenr = htonl(kidx); | plog->rulenr = htonl(kidx); | ||||
pktid++; | pktid++; | ||||
plog->subrulenr = htonl(pktid); | plog->subrulenr = htonl(pktid); | ||||
plog->ruleset[0] = '\0'; | plog->ruleset[0] = '\0'; | ||||
strlcpy(plog->ifname, "NAT64CLAT", sizeof(plog->ifname)); | strlcpy(plog->ifname, "NAT64CLAT", sizeof(plog->ifname)); | ||||
▲ Show 20 Lines • Show All 173 Lines • Show Last 20 Lines |