Changeset View
Changeset View
Standalone View
Standalone View
usr.bin/netstat/if.c
Context not available. | |||||
#define p(f, m) if (pfsyncstat.f || sflag <= 1) \ | #define p(f, m) if (pfsyncstat.f || sflag <= 1) \ | ||||
xo_emit(m, (uintmax_t)pfsyncstat.f, plural(pfsyncstat.f)) | xo_emit(m, (uintmax_t)pfsyncstat.f, plural(pfsyncstat.f)) | ||||
p(pfsyncs_ipackets, "\t{:received-inet-packets/%ju} " | p(pfsyncs_ipackets, "\t{:received-inet-packets/%ju} " | ||||
"{N:/packet%s received (IPv4)}\n"); | "{N:/packet%s received (IPv4)}\n"); | ||||
p(pfsyncs_ipackets6, "\t{:received-inet6-packets/%ju} " | p(pfsyncs_ipackets6, "\t{:received-inet6-packets/%ju} " | ||||
"{N:/packet%s received (IPv6)}\n"); | "{N:/packet%s received (IPv6)}\n"); | ||||
pfsync_acts_stats("input-histogram", "received", | pfsync_acts_stats("input-histogram", "received", | ||||
&pfsyncstat.pfsyncs_iacts[0]); | &pfsyncstat.pfsyncs_iacts[0]); | ||||
p(pfsyncs_badif, "\t\t/{:dropped-bad-interface/%ju} " | p(pfsyncs_badif, "\t\t{:dropped-bad-interface/%ju} " | ||||
"{N:/packet%s discarded for bad interface}\n"); | "{N:/packet%s discarded for bad interface}\n"); | ||||
p(pfsyncs_badttl, "\t\t{:dropped-bad-ttl/%ju} " | p(pfsyncs_badttl, "\t\t{:dropped-bad-ttl/%ju} " | ||||
"{N:/packet%s discarded for bad ttl}\n"); | "{N:/packet%s discarded for bad ttl}\n"); | ||||
p(pfsyncs_hdrops, "\t\t{:dropped-short-header/%ju} " | p(pfsyncs_hdrops, "\t\t{:dropped-short-header/%ju} " | ||||
"{N:/packet%s shorter than header}\n"); | "{N:/packet%s shorter than header}\n"); | ||||
p(pfsyncs_badver, "\t\t{:dropped-bad-version/%ju} " | p(pfsyncs_badver, "\t\t{:dropped-bad-version/%ju} " | ||||
"{N:/packet%s discarded for bad version}\n"); | "{N:/packet%s discarded for bad version}\n"); | ||||
p(pfsyncs_badauth, "\t\t{:dropped-bad-auth/%ju} " | p(pfsyncs_badauth, "\t\t{:dropped-bad-auth/%ju} " | ||||
"{N:/packet%s discarded for bad HMAC}\n"); | "{N:/packet%s discarded for bad HMAC}\n"); | ||||
p(pfsyncs_badact,"\t\t{:dropped-bad-action/%ju} " | p(pfsyncs_badact,"\t\t{:dropped-bad-action/%ju} " | ||||
Context not available. |