This file is indexed.

/usr/share/z88dk/include/net/netstats.h is in z88dk-data 1.8.ds1-10.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
#ifndef __NET_NETSTATS_H__
#define __NET_NETSTATS_H__

#include <sys/types.h>
#include <net/inet.h>

/*
 *	This file contains definitions for the stats
 *	for TCP stack - pkts recvd etc
 *
 *	djm 28/1/2000
 *
 *	$Id: netstats.h,v 1.4 2001/10/16 18:30:32 dom Exp $
 */

typedef unsigned int nstat_t;
typedef unsigned long nlen_t;

struct sysstat_s {
/* IP layer */
	nstat_t	ip_recvd;
	nlen_t	ip_recvlen;
	nstat_t	ip_badck;
	nstat_t ip_badlen;
	nstat_t ip_sent;
/* UDP layer */
	nstat_t	udp_recvd;
	nlen_t	udp_recvlen;
	nstat_t	udp_badck;
	nstat_t	udp_sent;
	nlen_t	udp_sentlen;
/* TCP layer */
	nstat_t	tcp_recvd;
	nlen_t	tcp_recvdlen;
	nstat_t	tcp_badck;
	nstat_t tcp_rstrecvd;
	nstat_t	tcp_sent;
	nlen_t	tcp_sentlen;
	nstat_t	tcp_rstsent;
	nstat_t	tcp_connreqs;
	nstat_t	tcp_connaccs;
	nstat_t	tcp_estab;
	nstat_t	tcp_closed;
/* ICMP layer */
	nstat_t	icmp_recvd;
	nstat_t	icmp_badck;
	nstat_t	icmp_sent;
	nstat_t	icmp_icmp;
	nstat_t	icmp_inp[MAX_ICMPMSGS];
	nstat_t	icmp_out[MAX_ICMPMSGS];
};

/* Length of the netstat structure */
#define NETSTAT_SIZE 128
/* Number of values (excluding icmp_inp/_out */
#define NETSTAT_NUM   25

/*
 *	Text for netstats, if there's an 'l' in the first column it
 *	means the value we print is long
 */

#ifdef NETSTAT_TXT
static char *netstat_txt[]= {
	"IP:   %u pkts recvd",
	"lIP:   %lu bytes recvd",
	"IP:   %u bad cksums",
	"IP:   %u bad lengths",
	"IP:   %u pkts sent",

	"UDP:  %u pkts recvd",
	"lUDP:  %lu bytes recvd",
	"UDP:  %u bad cksums",
	"UDP:  %u pkts sent",
	"lUDP:  %lu bytes sent",

	"TCP:  %u pkts recvd",
	"lTCP:  %lu bytes recvd",
	"TCP:  %u bad cksums",
	"TCP:  %u rsts recvd",
	"TCP:  %u pkts sent",
	"lTCP:  %lu bytes sent",  
	"TCP:  %u rsts sent",
	"TCP:  %u conns requests",
	"TCP:  %u conn accepts",
	"TCP:  %u conns established",
	"TCP:  %u conns closed",

	"ICMP: %u pkts recvd",
	"ICMP: %u cksum errors",
	"ICMP: %u ICMP msgs sent",
	"ICMP: %u msgs not sent cos old msg was icmp"};
#endif
	


#endif