Home
last modified time | relevance | path

Searched refs:subh (Results 1 – 2 of 2) sorted by relevance

/src/contrib/tcpdump/
H A Dprint-pfsync.c143 struct pfsync_subheader *subh; in pfsync_print() local
157 if (len < sizeof(*subh)) in pfsync_print()
160 subh = (struct pfsync_subheader *)bp; in pfsync_print()
161 bp += sizeof(*subh); in pfsync_print()
162 len -= sizeof(*subh); in pfsync_print()
163 plen -= sizeof(*subh); in pfsync_print()
165 if (subh->action >= PFSYNC_ACT_MAX) { in pfsync_print()
167 subh->action); in pfsync_print()
171 count = ntohs(subh->count); in pfsync_print()
172 ND_PRINT("\n %s count %d", actions[subh->action].name, in pfsync_print()
[all …]
/src/sys/netpfil/pf/
H A Dif_pfsync.c938 struct pfsync_subheader subh; in pfsync_input() local
1004 while (offset <= len - sizeof(subh)) { in pfsync_input()
1005 m_copydata(m, offset, sizeof(subh), (caddr_t)&subh); in pfsync_input()
1006 offset += sizeof(subh); in pfsync_input()
1008 if (subh.action >= PFSYNC_ACT_MAX) { in pfsync_input()
1014 count = ntohs(subh.count); in pfsync_input()
1015 V_pfsyncstats.pfsyncs_iacts[subh.action] += count; in pfsync_input()
1016 rv = (*pfsync_acts[subh.action])(m, offset, count, flags, subh.action); in pfsync_input()
1040 struct pfsync_subheader subh; in pfsync6_input() local
1107 while (offset <= len - sizeof(subh)) { in pfsync6_input()
[all …]