if.c (cd9e5d43333c859edb77604be9ca8f4c44dac35c) if.c (4bf98559d9d6fa7c3571d26ed6f2b18823e3a30b)
1/*-
2 * SPDX-License-Identifier: BSD-3-Clause
3 *
4 * Copyright (c) 2013 Gleb Smirnoff <glebius@FreeBSD.org>
5 * Copyright (c) 1983, 1988, 1993
6 * The Regents of the University of California. All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 67 unchanged lines hidden (view full) ---

76
77#include "netstat.h"
78
79static void sidewaysintpr(void);
80
81#ifdef PF
82static const char* pfsyncacts[] = {
83 /* PFSYNC_ACT_CLR */ "clear all request",
1/*-
2 * SPDX-License-Identifier: BSD-3-Clause
3 *
4 * Copyright (c) 2013 Gleb Smirnoff <glebius@FreeBSD.org>
5 * Copyright (c) 1983, 1988, 1993
6 * The Regents of the University of California. All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 67 unchanged lines hidden (view full) ---

76
77#include "netstat.h"
78
79static void sidewaysintpr(void);
80
81#ifdef PF
82static const char* pfsyncacts[] = {
83 /* PFSYNC_ACT_CLR */ "clear all request",
84 /* PFSYNC_ACT_INS */ "state insert",
84 /* PFSYNC_ACT_INS_1301 */ "13.1 state insert",
85 /* PFSYNC_ACT_INS_ACK */ "state inserted ack",
85 /* PFSYNC_ACT_INS_ACK */ "state inserted ack",
86 /* PFSYNC_ACT_UPD */ "state update",
86 /* PFSYNC_ACT_UPD_1301 */ "13.1 state update",
87 /* PFSYNC_ACT_UPD_C */ "compressed state update",
88 /* PFSYNC_ACT_UPD_REQ */ "uncompressed state request",
89 /* PFSYNC_ACT_DEL */ "state delete",
90 /* PFSYNC_ACT_DEL_C */ "compressed state delete",
91 /* PFSYNC_ACT_INS_F */ "fragment insert",
92 /* PFSYNC_ACT_DEL_F */ "fragment delete",
93 /* PFSYNC_ACT_BUS */ "bulk update mark",
94 /* PFSYNC_ACT_TDB */ "TDB replay counter update",
95 /* PFSYNC_ACT_EOF */ "end of frame mark",
87 /* PFSYNC_ACT_UPD_C */ "compressed state update",
88 /* PFSYNC_ACT_UPD_REQ */ "uncompressed state request",
89 /* PFSYNC_ACT_DEL */ "state delete",
90 /* PFSYNC_ACT_DEL_C */ "compressed state delete",
91 /* PFSYNC_ACT_INS_F */ "fragment insert",
92 /* PFSYNC_ACT_DEL_F */ "fragment delete",
93 /* PFSYNC_ACT_BUS */ "bulk update mark",
94 /* PFSYNC_ACT_TDB */ "TDB replay counter update",
95 /* PFSYNC_ACT_EOF */ "end of frame mark",
96 /* PFSYNC_ACT_INS_1400 */ "state insert",
97 /* PFSYNC_ACT_UPD_1400 */ "state update",
96};
97
98static const char* pfsyncacts_name[] = {
99 /* PFSYNC_ACT_CLR */ "clear-all-request",
98};
99
100static const char* pfsyncacts_name[] = {
101 /* PFSYNC_ACT_CLR */ "clear-all-request",
100 /* PFSYNC_ACT_INS */ "state-insert",
102 /* PFSYNC_ACT_INS_1301 */ "state-insert-1301",
101 /* PFSYNC_ACT_INS_ACK */ "state-inserted-ack",
103 /* PFSYNC_ACT_INS_ACK */ "state-inserted-ack",
102 /* PFSYNC_ACT_UPD */ "state-update",
104 /* PFSYNC_ACT_UPD_1301 */ "state-update-1301",
103 /* PFSYNC_ACT_UPD_C */ "compressed-state-update",
104 /* PFSYNC_ACT_UPD_REQ */ "uncompressed-state-request",
105 /* PFSYNC_ACT_DEL */ "state-delete",
106 /* PFSYNC_ACT_DEL_C */ "compressed-state-delete",
107 /* PFSYNC_ACT_INS_F */ "fragment-insert",
108 /* PFSYNC_ACT_DEL_F */ "fragment-delete",
109 /* PFSYNC_ACT_BUS */ "bulk-update-mark",
110 /* PFSYNC_ACT_TDB */ "TDB-replay-counter-update",
111 /* PFSYNC_ACT_EOF */ "end-of-frame-mark",
105 /* PFSYNC_ACT_UPD_C */ "compressed-state-update",
106 /* PFSYNC_ACT_UPD_REQ */ "uncompressed-state-request",
107 /* PFSYNC_ACT_DEL */ "state-delete",
108 /* PFSYNC_ACT_DEL_C */ "compressed-state-delete",
109 /* PFSYNC_ACT_INS_F */ "fragment-insert",
110 /* PFSYNC_ACT_DEL_F */ "fragment-delete",
111 /* PFSYNC_ACT_BUS */ "bulk-update-mark",
112 /* PFSYNC_ACT_TDB */ "TDB-replay-counter-update",
113 /* PFSYNC_ACT_EOF */ "end-of-frame-mark",
114 /* PFSYNC_ACT_INS_1400 */ "state-insert",
115 /* PFSYNC_ACT_UPD_1400 */ "state-update",
112};
113
114static void
115pfsync_acts_stats(const char *list, const char *desc, uint64_t *a)
116{
117 int i;
118
119 xo_open_list(list);

--- 538 unchanged lines hidden ---
116};
117
118static void
119pfsync_acts_stats(const char *list, const char *desc, uint64_t *a)
120{
121 int i;
122
123 xo_open_list(list);

--- 538 unchanged lines hidden ---