main.c (9c79794016d679440487dea61b3b986397c9ecbb) main.c (54fc657d59324e260dd5cde0d6e7f60d43a41c60)
1/*-
2 * Copyright (c) 1983, 1988, 1993
3 * Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

179#define N_UNP_SHEAD 51
180 { .n_name = "_unp_shead" },
181#define N_RIP6STAT 52
182 { .n_name = "_rip6stat" },
183#define N_SCTPSTAT 53
184 { .n_name = "_sctpstat" },
185#define N_MFCTABLESIZE 54
186 { .n_name = "_mfctablesize" },
1/*-
2 * Copyright (c) 1983, 1988, 1993
3 * Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

179#define N_UNP_SHEAD 51
180 { .n_name = "_unp_shead" },
181#define N_RIP6STAT 52
182 { .n_name = "_rip6stat" },
183#define N_SCTPSTAT 53
184 { .n_name = "_sctpstat" },
185#define N_MFCTABLESIZE 54
186 { .n_name = "_mfctablesize" },
187#define N_ARPSTAT 55
188 { .n_name = "_arpstat" },
187 { .n_name = NULL },
188};
189
190struct protox {
191 int pr_index; /* index into nlist of cb head */
192 int pr_sindex; /* index into nlist of stat block */
193 u_char pr_wanted; /* 1 if wanted, 0 otherwise */
194 void (*pr_cblocks)(u_long, const char *, int, int);

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

227 ipcomp_stats, NULL, "ipcomp", 0, 0},
228#endif
229 { N_RIPCBINFO, N_PIMSTAT, 1, protopr,
230 pim_stats, NULL, "pim", 1, IPPROTO_PIM },
231 { -1, N_CARPSTAT, 1, NULL,
232 carp_stats, NULL, "carp", 1, 0 },
233 { -1, N_PFSYNCSTAT, 1, NULL,
234 pfsync_stats, NULL, "pfsync", 1, 0 },
189 { .n_name = NULL },
190};
191
192struct protox {
193 int pr_index; /* index into nlist of cb head */
194 int pr_sindex; /* index into nlist of stat block */
195 u_char pr_wanted; /* 1 if wanted, 0 otherwise */
196 void (*pr_cblocks)(u_long, const char *, int, int);

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

229 ipcomp_stats, NULL, "ipcomp", 0, 0},
230#endif
231 { N_RIPCBINFO, N_PIMSTAT, 1, protopr,
232 pim_stats, NULL, "pim", 1, IPPROTO_PIM },
233 { -1, N_CARPSTAT, 1, NULL,
234 carp_stats, NULL, "carp", 1, 0 },
235 { -1, N_PFSYNCSTAT, 1, NULL,
236 pfsync_stats, NULL, "pfsync", 1, 0 },
237 { -1, N_ARPSTAT, 1, NULL,
238 arp_stats, NULL, "arp", 1, 0 },
235 { -1, -1, 0, NULL,
236 NULL, NULL, NULL, 0, 0 }
237};
238
239#ifdef INET6
240struct protox ip6protox[] = {
241 { N_TCBINFO, N_TCPSTAT, 1, protopr,
242 tcp_stats, NULL, "tcp", 1, IPPROTO_TCP },

--- 549 unchanged lines hidden ---
239 { -1, -1, 0, NULL,
240 NULL, NULL, NULL, 0, 0 }
241};
242
243#ifdef INET6
244struct protox ip6protox[] = {
245 { N_TCBINFO, N_TCPSTAT, 1, protopr,
246 tcp_stats, NULL, "tcp", 1, IPPROTO_TCP },

--- 549 unchanged lines hidden ---