Home
last modified time | relevance | path

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

/freebsd/contrib/tcpdump/
H A Dprint-pfsync.c140 struct pfsync_subheader *subh; in pfsync_print() local
154 if (len < sizeof(*subh)) in pfsync_print()
157 subh = (struct pfsync_subheader *)bp; in pfsync_print()
158 bp += sizeof(*subh); in pfsync_print()
159 len -= sizeof(*subh); in pfsync_print()
160 plen -= sizeof(*subh); in pfsync_print()
162 if (subh->action >= PFSYNC_ACT_MAX) { in pfsync_print()
164 subh->action); in pfsync_print()
168 count = ntohs(subh->count); in pfsync_print()
169 ND_PRINT("\n %s count %d", actions[subh->action].name, in pfsync_print()
[all …]
/freebsd/sys/netpfil/pf/
H A Dif_pfsync.c762 struct pfsync_subheader subh; in pfsync_input() local
828 while (offset <= len - sizeof(subh)) { in pfsync_input()
829 m_copydata(m, offset, sizeof(subh), (caddr_t)&subh); in pfsync_input()
830 offset += sizeof(subh); in pfsync_input()
832 if (subh.action >= PFSYNC_ACT_MAX) { in pfsync_input()
838 count = ntohs(subh.count); in pfsync_input()
839 V_pfsyncstats.pfsyncs_iacts[subh.action] += count; in pfsync_input()
840 rv = (*pfsync_acts[subh.action])(m, offset, count, flags, subh.action); in pfsync_input()
864 struct pfsync_subheader subh; in pfsync6_input() local
931 while (offset <= len - sizeof(subh)) { in pfsync6_input()
[all …]