annotate packages/net/httpd/current/src/monitor.c @ 2863:7d8c61e6225c default tip

* Added execute permissions to files missed in conversion from CVS
author alexs
date Thu, 26 Mar 2009 20:39:18 +0000
parents 74dbf4c3f2e1
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
468
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1 /* =================================================================
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
2 *
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
3 * monitor.c
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
4 *
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
5 * An HTTP system monitor
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
6 *
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
7 * =================================================================
2729
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2271
diff changeset
8 * ####ECOSGPLCOPYRIGHTBEGIN####
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2271
diff changeset
9 * -------------------------------------------
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2271
diff changeset
10 * This file is part of eCos, the Embedded Configurable Operating System.
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2271
diff changeset
11 * Copyright (C) 2002, 2003 Free Software Foundation, Inc.
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2271
diff changeset
12 *
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2271
diff changeset
13 * eCos is free software; you can redistribute it and/or modify it under
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2271
diff changeset
14 * the terms of the GNU General Public License as published by the Free
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2271
diff changeset
15 * Software Foundation; either version 2 or (at your option) any later
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2271
diff changeset
16 * version.
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2271
diff changeset
17 *
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2271
diff changeset
18 * eCos is distributed in the hope that it will be useful, but WITHOUT
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2271
diff changeset
19 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2271
diff changeset
20 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2271
diff changeset
21 * for more details.
468
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
22 *
2729
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2271
diff changeset
23 * You should have received a copy of the GNU General Public License
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2271
diff changeset
24 * along with eCos; if not, write to the Free Software Foundation, Inc.,
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2271
diff changeset
25 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2271
diff changeset
26 *
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2271
diff changeset
27 * As a special exception, if other files instantiate templates or use
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2271
diff changeset
28 * macros or inline functions from this file, or you compile this file
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2271
diff changeset
29 * and link it with other works to produce a work based on this file,
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2271
diff changeset
30 * this file does not by itself cause the resulting work to be covered by
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2271
diff changeset
31 * the GNU General Public License. However the source code for this file
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2271
diff changeset
32 * must still be made available in accordance with section (3) of the GNU
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2271
diff changeset
33 * General Public License v2.
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2271
diff changeset
34 *
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2271
diff changeset
35 * This exception does not invalidate any other reasons why a work based
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2271
diff changeset
36 * on this file might be covered by the GNU General Public License.
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2271
diff changeset
37 * -------------------------------------------
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2271
diff changeset
38 * ####ECOSGPLCOPYRIGHTEND####
468
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
39 * =================================================================
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
40 * #####DESCRIPTIONBEGIN####
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
41 *
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
42 * Author(s): nickg@calivar.com
1008
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
43 * Contributors: nickg@calivar.com, andrew.lunn@ascom.ch
468
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
44 * Date: 2002-10-14
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
45 * Purpose:
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
46 * Description:
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
47 *
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
48 * ####DESCRIPTIONEND####
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
49 *
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
50 * =================================================================
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
51 */
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
52
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
53 #include <pkgconf/system.h>
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
54 #include <pkgconf/isoinfra.h>
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
55 #include <pkgconf/net.h>
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
56 #include <pkgconf/httpd.h>
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
57 #include <pkgconf/kernel.h>
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
58
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
59 #include <cyg/infra/cyg_trac.h> /* tracing macros */
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
60 #include <cyg/infra/cyg_ass.h> /* assertion macros */
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
61
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
62 #include <cyg/httpd/httpd.h>
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
63
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
64 #include <cyg/kernel/kapi.h>
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
65 #ifdef CYGPKG_KERNEL_INSTRUMENT
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
66 #include <cyg/kernel/instrmnt.h>
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
67 #include <cyg/kernel/instrument_desc.h>
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
68 #endif
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
69
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
70 #include <unistd.h>
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
71 #include <ctype.h>
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
72
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
73 /* ================================================================= */
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
74 /* Include all the necessary network headers by hand. We need to do
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
75 * this so that _KERNEL is correctly defined, or not, for specific
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
76 * headers so we can use both the external API and get at internal
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
77 * kernel structures.
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
78 */
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
79
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
80 #define _KERNEL
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
81 #include <sys/param.h>
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
82 #undef _KERNEL
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
83 #include <sys/socket.h>
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
84 #include <sys/ioctl.h>
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
85 #include <sys/errno.h>
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
86 #include <sys/time.h>
1008
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
87 #include <netdb.h>
468
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
88 #define _KERNEL
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
89
1788
eb9d23483db9 * src/monitor.c: include sys/sysctl.h to prevent compiler
asl
parents: 1718
diff changeset
90 #include <sys/sysctl.h>
468
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
91 #include <net/if.h>
1008
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
92 #include <ifaddrs.h>
468
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
93 #include <netinet/in.h>
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
94 #include <netinet/ip.h>
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
95 #include <netinet/ip_icmp.h>
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
96 #include <net/route.h>
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
97 #include <net/if_dl.h>
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
98
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
99 #include <sys/protosw.h>
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
100 #include <netinet/in_pcb.h>
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
101 #include <netinet/udp.h>
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
102 #include <netinet/tcp.h>
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
103 #include <netinet/tcp_timer.h>
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
104 #include <netinet/ip_var.h>
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
105 #include <netinet/icmp_var.h>
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
106 #include <netinet/udp_var.h>
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
107 #include <netinet/tcp_var.h>
1008
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
108 #ifdef CYGPKG_NET_INET6
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
109 #include <netinet/ip6.h>
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
110 #include <net/if_var.h>
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
111 #include <netinet6/ip6_var.h>
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
112 #include <netinet6/in6_var.h>
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
113 #include <netinet/icmp6.h>
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
114 #endif
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
115
468
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
116
831
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
117 #include <sys/mbuf.h>
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
118
468
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
119 #include <cyg/io/eth/eth_drv_stats.h>
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
120
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
121 /* ================================================================= */
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
122 /* Use this when a thread appears to have no name.
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
123 */
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
124
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
125 #define NULL_THREAD_NAME "----------"
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
126
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
127 /* ================================================================= */
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
128 /* Draw navigation bar
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
129 *
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
130 * This draws a simple table containing links to the various monitor
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
131 * pages at the current position in the HTML stream.
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
132 */
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
133
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
134 static void draw_navbar( FILE *client )
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
135 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
136 html_para_begin( client, "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
137
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
138 html_table_begin( client, "border cellpadding=\"4\"" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
139 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
140 html_table_row_begin(client, "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
141 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
142 html_table_data_begin( client, "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
143 html_image( client, "/monitor/ecos.gif", "eCos logo", "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
144 html_table_data_begin( client, "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
145 html_url( client, "Threads", "/monitor/threads.html");
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
146 html_table_data_begin( client, "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
147 html_url( client, "Interrupts", "/monitor/interrupts.html");
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
148 html_table_data_begin( client, "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
149 html_url( client, "Memory", "/monitor/memory.html");
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
150 html_table_data_begin( client, "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
151 html_url( client, "Network", "/monitor/network.html");
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
152 #ifdef CYGPKG_KERNEL_INSTRUMENT
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
153 html_table_data_begin( client, "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
154 html_url( client, "Instrumentation", "/monitor/instrument.html");
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
155 #endif
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
156 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
157 html_table_row_end( client );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
158 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
159 html_table_end( client );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
160 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
161
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
162 /* ================================================================= */
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
163 /* Index page
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
164 *
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
165 * A simple introductory page matching "/monitor" and
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
166 * "/monitor/index.html".
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
167 */
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
168
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
169 static char monitor_index_blurb[] =
1718
81ee8c3c3d7b * src/monitor.c: Added missing spaces in multi-line HTML strings.
asl
parents: 1325
diff changeset
170 "<p>This is the eCos System Monitor. It presents a simple web monitor "
1053
657f409c5dfe * src/httpd.c: Fixed a problem with closing the client socket --
nickg
parents: 1008
diff changeset
171 "and control interface for eCos systems.\n"
468
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
172 "<p>Use the navigation bar at the bottom of each page to explore."
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
173 ;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
174
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
175 static cyg_bool cyg_monitor_index( FILE * client, char *filename,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
176 char *formdata, void *arg )
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
177 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
178 html_begin(client);
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
179
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
180 html_head(client,"eCos System Monitor", "");
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
181
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
182 html_body_begin(client,"");
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
183 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
184 html_heading(client, 2, "eCos System Monitor" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
185
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
186 fputs( monitor_index_blurb, client );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
187
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
188 draw_navbar(client);
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
189 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
190 html_body_end(client);
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
191
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
192 html_end(client);
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
193
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
194 return 1;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
195 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
196
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
197 CYG_HTTPD_TABLE_ENTRY( cyg_monitor_entry,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
198 "/monitor",
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
199 cyg_monitor_index,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
200 NULL );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
201
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
202 CYG_HTTPD_TABLE_ENTRY( cyg_monitor_index_entry,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
203 "/monitor/index.html",
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
204 cyg_monitor_index,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
205 NULL );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
206
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
207 /* ================================================================= */
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
208 /* Thread Monitor
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
209 *
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
210 * Uses the kapi thread info API to enumerate all the current threads
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
211 * and generate a table showing their state.
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
212 */
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
213
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
214 static cyg_bool cyg_monitor_threads( FILE * client, char *filename,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
215 char *formdata, void *arg )
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
216 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
217
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
218 html_begin(client);
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
219
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
220 /* html_head(client,"Thread Monitor", "<meta http-equiv=\"refresh\" content=\"10\">"); */
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
221 html_head(client,"eCos Thread Monitor", "");
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
222
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
223 html_body_begin(client,"");
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
224 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
225 html_heading(client, 2, "Thread Monitor" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
226
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
227 html_table_begin( client, "border" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
228 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
229 cyg_handle_t thread = 0;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
230 cyg_uint16 id = 0;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
231
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
232 html_table_header( client, "Id", "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
233 html_table_header( client, "State", "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
234 html_table_header( client, "Set<br>Priority", "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
235 html_table_header( client, "Current<br>Priority", "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
236 html_table_header( client, "Name", "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
237 html_table_header( client, "Stack Base", "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
238 html_table_header( client, "Stack Size", "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
239 #ifdef CYGFUN_KERNEL_THREADS_STACK_MEASUREMENT
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
240 html_table_header( client, "Stack Used", "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
241 #endif
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
242 /* Loop over the threads, and generate a table row for
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
243 * each.
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
244 */
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
245 while( cyg_thread_get_next( &thread, &id ) )
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
246 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
247 cyg_thread_info info;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
248 char *state_string;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
249
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
250 cyg_thread_get_info( thread, id, &info );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
251
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
252 if( info.name == NULL )
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
253 info.name = NULL_THREAD_NAME;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
254
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
255 /* Translate the state into a string.
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
256 */
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
257 if( info.state == 0 )
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
258 state_string = "RUN";
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
259 else if( info.state & 0x04 )
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
260 state_string = "SUSP";
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
261 else switch( info.state & 0x1b )
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
262 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
263 case 0x01: state_string = "SLEEP"; break;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
264 case 0x02: state_string = "CNTSLEEP"; break;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
265 case 0x08: state_string = "CREATE"; break;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
266 case 0x10: state_string = "EXIT"; break;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
267 default: state_string = "????"; break;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
268 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
269
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
270 /* Now generate the row.
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
271 */
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
272 html_table_row_begin(client, "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
273 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
274 html_table_data_begin( client, "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
275 fprintf( client, "<a href=\"/monitor/thread-%04x.html\">%04x</a>\n", id,id);
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
276 html_table_data_begin( client, "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
277 fprintf( client, "%s", state_string);
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
278 html_table_data_begin( client, "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
279 fprintf( client, "%d", info.set_pri);
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
280 html_table_data_begin( client, "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
281 fprintf( client, "%d", info.cur_pri);
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
282 html_table_data_begin( client, "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
283 fputs( info.name, client );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
284 html_table_data_begin( client, "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
285 fprintf( client, "%08x", info.stack_base );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
286 html_table_data_begin( client, "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
287 fprintf( client, "%d", info.stack_size );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
288 #ifdef CYGFUN_KERNEL_THREADS_STACK_MEASUREMENT
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
289 html_table_data_begin( client, "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
290 fprintf( client, "%d", info.stack_used );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
291 #endif
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
292 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
293 html_table_row_end(client);
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
294
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
295 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
296 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
297 html_table_end( client );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
298
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
299 draw_navbar(client);
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
300 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
301 html_body_end(client);
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
302
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
303 html_end(client);
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
304
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
305 return 1;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
306 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
307
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
308 CYG_HTTPD_TABLE_ENTRY( cyg_monitor_show_threads,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
309 "/monitor/threads.htm*",
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
310 cyg_monitor_threads,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
311 NULL );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
312
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
313 /* ================================================================= */
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
314 /* Thread edit page
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
315 *
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
316 * A page on which the thread's state may be edited. This tests forms
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
317 * handling.
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
318 */
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
319
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
320 static char thread_edit_blurb[] =
1718
81ee8c3c3d7b * src/monitor.c: Added missing spaces in multi-line HTML strings.
asl
parents: 1325
diff changeset
321 "<p>This table contains an entry for each property of the thread "
1053
657f409c5dfe * src/httpd.c: Fixed a problem with closing the client socket --
nickg
parents: 1008
diff changeset
322 "that you can edit. The properties are:\n"
1718
81ee8c3c3d7b * src/monitor.c: Added missing spaces in multi-line HTML strings.
asl
parents: 1325
diff changeset
323 "<p><b>State:</b> Change thread's state. The <em>Suspend</em> button "
81ee8c3c3d7b * src/monitor.c: Added missing spaces in multi-line HTML strings.
asl
parents: 1325
diff changeset
324 "will suspend the thread. The <em>Run</em> button will undo any previous "
81ee8c3c3d7b * src/monitor.c: Added missing spaces in multi-line HTML strings.
asl
parents: 1325
diff changeset
325 "suspends. The <em>Release</em> button will release the thread out of "
1053
657f409c5dfe * src/httpd.c: Fixed a problem with closing the client socket --
nickg
parents: 1008
diff changeset
326 "any sleep it is currently in.\n"
468
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
327 "<p><b>Priority:</b> Change the thread's priority.\n"
1718
81ee8c3c3d7b * src/monitor.c: Added missing spaces in multi-line HTML strings.
asl
parents: 1325
diff changeset
328 "<p>Once the new state has been selected, press the <em>Submit</em> "
1053
657f409c5dfe * src/httpd.c: Fixed a problem with closing the client socket --
nickg
parents: 1008
diff changeset
329 "button to make the change, or <em>Reset</em> to clear it."
468
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
330 ;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
331
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
332 static cyg_bool cyg_monitor_thread_edit( FILE * client, char *filename,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
333 char *formdata, void *arg )
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
334 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
335 /* If any form data has been supplied, then change the thread's
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
336 * state accordingly.
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
337 */
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
338 if( formdata != NULL )
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
339 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
340 char *formlist[6];
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
341 char *state;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
342 char *pri_string;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
343 char *id_string;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
344 cyg_handle_t thread = 0;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
345 cyg_uint16 id;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
346
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
347 /* Parse the data */
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
348 cyg_formdata_parse( formdata, formlist, 6 );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
349
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
350 /* Get the thread id from the hidden control */
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
351 id_string = cyg_formlist_find( formlist, "thread");
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
352
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
353 sscanf( id_string, "%04hx", &id );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
354
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
355 thread = cyg_thread_find( id );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
356
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
357 /* If there is a pri field, change the priority */
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
358 pri_string = cyg_formlist_find( formlist, "pri");
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
359
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
360 if( pri_string != NULL )
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
361 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
362 cyg_priority_t pri;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
363
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
364 sscanf( pri_string, "%d", &pri );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
365
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
366 cyg_thread_set_priority( thread, pri );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
367 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
368
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
369 /* If there is a state field, change the thread state */
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
370 state = cyg_formlist_find( formlist, "state");
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
371
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
372 if( state != NULL )
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
373 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
374 if( strcmp( state, "run" ) == 0 )
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
375 cyg_thread_resume( thread );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
376 if( strcmp( state, "suspend" ) == 0 )
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
377 cyg_thread_suspend( thread );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
378 if( strcmp( state, "release" ) == 0 )
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
379 cyg_thread_release( thread );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
380 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
381 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
382
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
383 /* Now generate a page showing the current thread state, and
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
384 * including form controls to change it.
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
385 */
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
386
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
387 html_begin(client);
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
388
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
389 html_head(client,"eCos Thread Editor", "");
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
390
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
391 html_body_begin(client,"");
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
392 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
393 cyg_uint16 id;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
394 cyg_thread_info info;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
395 cyg_handle_t thread = 0;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
396 char idbuf[16];
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
397
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
398 sscanf( filename, "/monitor/thread-%04hx.html", &id );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
399
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
400 thread = cyg_thread_find( id );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
401 cyg_thread_get_info(thread, id, &info );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
402
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
403 html_heading(client, 2, "Thread State Editor" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
404
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
405 html_para_begin( client, "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
406
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
407 fprintf( client, "Editing Thread %04x %s\n",id,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
408 info.name?info.name:NULL_THREAD_NAME);
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
409
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
410 fputs( thread_edit_blurb, client );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
411
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
412 html_form_begin( client, filename, "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
413 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
414 html_table_begin( client, "border" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
415 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
416 html_table_header( client, "Property", "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
417 html_table_header( client, "Value", "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
418
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
419 html_table_row_begin(client, "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
420 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
421 html_table_data_begin( client, "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
422 fputs( "State", client );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
423
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
424 html_table_data_begin( client, "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
425
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
426 html_form_input_radio( client, "state", "run", (info.state&0x04)==0 );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
427 fputs( "Run", client );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
428 html_form_input_radio( client, "state", "suspend", (info.state&0x04)!=0 );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
429 fputs( "Suspend", client );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
430 html_form_input_radio( client, "state", "release", 0 );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
431 fputs( "Release", client );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
432 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
433 html_table_row_end( client );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
434
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
435 html_table_row_begin(client, "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
436 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
437 html_table_data_begin( client, "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
438 fputs( "Priority", client );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
439
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
440 html_table_data_begin( client, "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
441 fprintf(client,"<input type=\"text\" name=\"pri\" size=\"10\" value=\"%d\">\n",
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
442 info.set_pri);
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
443 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
444 html_table_row_end( client );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
445
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
446 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
447 html_table_end( client );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
448
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
449 /* Add submit and reset buttons */
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
450 html_form_input(client, "submit", "submit", "Submit", "");
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
451 html_form_input(client, "reset", "reset", "Reset", "");
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
452
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
453 /* Pass the thread ID through to our next incarnation */
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
454 sprintf( idbuf, "%04x", id );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
455 html_form_input_hidden(client, "thread", idbuf );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
456
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
457 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
458 html_form_end( client );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
459
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
460 draw_navbar(client);
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
461 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
462 html_body_end(client);
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
463
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
464 html_end(client);
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
465
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
466 return 1;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
467 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
468
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
469 CYG_HTTPD_TABLE_ENTRY( cyg_monitor_thread_edit_entry,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
470 "/monitor/thread-*",
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
471 cyg_monitor_thread_edit,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
472 NULL );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
473
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
474 /* ================================================================= */
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
475 /* Interrupt monitor
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
476 *
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
477 * At present this just generates a table showing which interrupts
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
478 * have an ISR attached.
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
479 */
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
480
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
481 static cyg_bool cyg_monitor_interrupts( FILE * client, char *filename,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
482 char *formdata, void *arg )
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
483 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
484 html_begin(client);
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
485
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
486 html_head(client,"eCos Interrupt Monitor", "");
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
487
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
488 html_body_begin(client,"");
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
489 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
490 html_heading(client, 2, "Interrupt Monitor" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
491
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
492 html_table_begin( client, "border" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
493 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
494 int i;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
495 int maxint = CYGNUM_HAL_ISR_MAX;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
496
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
497 #ifdef CYGPKG_HAL_I386
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
498 maxint = CYGNUM_HAL_ISR_MIN+16;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
499 #endif
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
500
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
501 html_table_header( client, "ISR", "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
502 html_table_header( client, "State", "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
503
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
504 for( i = CYGNUM_HAL_ISR_MIN; i <= maxint ; i++ )
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
505 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
506 cyg_bool_t inuse;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
507 HAL_INTERRUPT_IN_USE( i, inuse );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
508
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
509 html_table_row_begin(client, "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
510 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
511 html_table_data_begin( client, "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
512 fprintf( client, "%d", i);
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
513 html_table_data_begin( client, "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
514 fprintf( client, "%s", inuse?"In Use":"Free");
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
515 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
516 html_table_row_end( client );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
517 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
518 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
519 html_table_end( client );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
520
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
521 draw_navbar(client);
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
522 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
523 html_body_end(client);
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
524
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
525 html_end(client);
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
526
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
527 return 1;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
528
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
529 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
530
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
531 CYG_HTTPD_TABLE_ENTRY( cyg_monitor_interrupts_entry,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
532 "/monitor/interrupts.htm*",
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
533 cyg_monitor_interrupts,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
534 NULL );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
535
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
536 /* ================================================================= */
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
537 /* Memory monitor
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
538 *
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
539 * Generates a table showing a 256 byte page of memory. Form controls
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
540 * allow changes to the base address and display element size.
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
541 */
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
542
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
543 static cyg_bool cyg_monitor_memory( FILE * client, char *filename,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
544 char *formdata, void *arg )
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
545 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
546 char *formlist[10];
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
547 cyg_uint32 base = 0;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
548 unsigned int datasize = 1;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
549 int size = 256;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
550 char *p;
1325
921f9882bd6d * src/monitor.c (cyg_monitor_memory): Check if the request
asl
parents: 1053
diff changeset
551 bool valid_base = true;
921f9882bd6d * src/monitor.c (cyg_monitor_memory): Check if the request
asl
parents: 1053
diff changeset
552
468
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
553
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
554 cyg_formdata_parse( formdata, formlist, 10 );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
555
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
556 p = cyg_formlist_find( formlist, "base" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
557
1325
921f9882bd6d * src/monitor.c (cyg_monitor_memory): Check if the request
asl
parents: 1053
diff changeset
558 /* If the page is requested without a 'base' parameter, do not attempt
921f9882bd6d * src/monitor.c (cyg_monitor_memory): Check if the request
asl
parents: 1053
diff changeset
559 * to access any memory locations to prevent illegal memory accesses
921f9882bd6d * src/monitor.c (cyg_monitor_memory): Check if the request
asl
parents: 1053
diff changeset
560 * on targets where '0' is not a valid address.
921f9882bd6d * src/monitor.c (cyg_monitor_memory): Check if the request
asl
parents: 1053
diff changeset
561 */
468
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
562 if( p != NULL )
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
563 sscanf( p, "%x", &base );
1325
921f9882bd6d * src/monitor.c (cyg_monitor_memory): Check if the request
asl
parents: 1053
diff changeset
564 else
921f9882bd6d * src/monitor.c (cyg_monitor_memory): Check if the request
asl
parents: 1053
diff changeset
565 valid_base = false;
468
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
566
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
567 p = cyg_formlist_find( formlist, "datasize" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
568
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
569 if( p != NULL )
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
570 sscanf( p, "%x", &datasize );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
571
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
572 if( cyg_formlist_find( formlist, "next" ) != NULL )
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
573 base += size;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
574
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
575 if( cyg_formlist_find( formlist, "prev" ) != NULL )
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
576 base -= size;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
577
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
578 html_begin(client);
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
579
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
580 html_head(client,"eCos Memory Monitor", "");
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
581
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
582 html_body_begin(client,"");
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
583 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
584 html_heading(client, 2, "Memory Monitor" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
585
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
586 html_form_begin( client, "/monitor/memory.html", "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
587 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
588
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
589 /* Text input control for base address
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
590 */
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
591 html_para_begin( client, "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
592 fprintf(client,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
593 "Base Address: 0x<input type=\"text\" name=\"base\" size=\"10\" value=\"%x\">\n",
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
594 base);
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
595
1325
921f9882bd6d * src/monitor.c (cyg_monitor_memory): Check if the request
asl
parents: 1053
diff changeset
596 fprintf(client,
921f9882bd6d * src/monitor.c (cyg_monitor_memory): Check if the request
asl
parents: 1053
diff changeset
597 "WARNING: entering an illegal base address can crash the system.\n");
921f9882bd6d * src/monitor.c (cyg_monitor_memory): Check if the request
asl
parents: 1053
diff changeset
598
468
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
599 /* A little menu for the element size
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
600 */
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
601 html_para_begin( client, "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
602
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
603 fputs( "Element Size: ", client );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
604 html_form_select_begin( client, "datasize", "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
605 html_form_option( client, "1", "bytes", datasize==1 );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
606 html_form_option( client, "2", "words", datasize==2 );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
607 html_form_option( client, "4", "dwords", datasize==4 );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
608 html_form_select_end( client );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
609
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
610 html_para_begin( client, "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
611
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
612 /* Submit and reset buttons
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
613 */
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
614 html_form_input(client, "submit", "submit", "Submit", "");
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
615 html_form_input(client, "reset", "reset", "Reset", "");
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
616
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
617 html_para_begin( client, "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
618
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
619 /* Previous page button */
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
620 html_form_input(client, "submit", "prev", "Prev Page", "");
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
621
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
622 /* Switch to monospaced font */
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
623 cyg_html_tag_begin( client, "font", "face=\"monospace\"" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
624
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
625 html_table_begin( client, "" );
1325
921f9882bd6d * src/monitor.c (cyg_monitor_memory): Check if the request
asl
parents: 1053
diff changeset
626
921f9882bd6d * src/monitor.c (cyg_monitor_memory): Check if the request
asl
parents: 1053
diff changeset
627 if (valid_base == true) {
468
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
628 cyg_addrword_t loc;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
629 cyg_addrword_t oloc;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
630
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
631 for( oloc = loc = base; loc <= (base+size) ; loc++ )
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
632 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
633 if( ( loc % 16 ) == 0 )
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
634 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
635 if( loc != base )
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
636 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
637 html_table_data_begin( client, "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
638 for( ; oloc < loc; oloc++ )
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
639 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
640 char c = *(char *)oloc;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
641 if( !isprint(c) )
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
642 c = '.';
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
643 putc( c, client );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
644 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
645 html_table_row_end( client );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
646 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
647 if( loc == (base+size) )
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
648 break;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
649 html_table_row_begin(client, "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
650 html_table_data_begin( client, "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
651 fprintf( client, "%08x:",loc);
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
652 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
653
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
654 html_table_data_begin( client, "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
655
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
656 if( (loc % datasize) == 0 )
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
657 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
658 switch( datasize )
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
659 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
660 case 1: fprintf( client, "%02x", *(cyg_uint8 *)loc ); break;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
661 case 2: fprintf( client, "%04x", *(cyg_uint16 *)loc ); break;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
662 case 4: fprintf( client, "%08x", *(cyg_uint32 *)loc ); break;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
663 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
664 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
665 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
666 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
667 html_table_end( client );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
668 cyg_html_tag_end( client, "font" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
669
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
670 html_form_input(client, "submit", "next", "Next Page", "");
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
671 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
672 html_form_end( client );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
673
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
674 draw_navbar(client);
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
675 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
676 html_body_end(client);
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
677
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
678 html_end(client);
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
679
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
680 return 1;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
681
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
682 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
683
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
684 CYG_HTTPD_TABLE_ENTRY( cyg_monitor_memory_entry,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
685 "/monitor/memory.htm*",
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
686 cyg_monitor_memory,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
687 NULL );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
688
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
689 /* ================================================================= */
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
690 /* Network Monitor
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
691 *
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
692 * This function generates a page containing information about the
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
693 * network interfaces and the protocols.
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
694 */
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
695
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
696 static cyg_bool cyg_monitor_network( FILE * client, char *filename,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
697 char *formdata, void *arg )
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
698 {
1008
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
699 struct ifaddrs *iflist, *ifp;
468
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
700
2271
fd2c3f3def9d * src/monitor.c (cyg_monitor_network): Calling the network monitor
asl
parents: 1788
diff changeset
701 if(getifaddrs(&iflist)!=0)
fd2c3f3def9d * src/monitor.c (cyg_monitor_network): Calling the network monitor
asl
parents: 1788
diff changeset
702 return 0;
468
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
703
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
704 html_begin(client);
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
705
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
706 html_head(client,"eCos Network Monitor", "");
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
707
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
708 html_body_begin(client,"");
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
709 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
710 html_heading(client, 2, "Network Monitor" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
711
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
712 html_heading(client, 3, "Interfaces" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
713
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
714 html_table_begin( client, "border" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
715 {
1008
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
716 char addr[64];
468
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
717 int i;
1008
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
718 ifp = iflist;
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
719
468
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
720 html_table_header( client, "Interface", "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
721 html_table_header( client, "Status", "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
722
1008
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
723 while( ifp != (struct ifaddrs *)NULL)
468
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
724 {
1008
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
725 if (ifp->ifa_addr->sa_family != AF_LINK)
468
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
726 {
1008
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
727
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
728 html_table_row_begin(client, "" );
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
729 {
468
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
730 html_table_data_begin( client, "" );
1008
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
731 fprintf( client, "%s", ifp->ifa_name);
468
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
732
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
733 html_table_data_begin( client, "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
734 html_table_begin( client, "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
735 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
736 /* Get the interface's flags and display
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
737 * the interesting ones.
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
738 */
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
739
1008
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
740 html_table_row_begin(client, "" );
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
741 fprintf( client, "<td>Flags<td>\n" );
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
742 for( i = 0; i < 16; i++ )
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
743 {
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
744 switch( ifp->ifa_flags & (1<<i) )
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
745 {
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
746 default: break;
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
747 case IFF_UP: fputs( " UP", client ); break;
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
748 case IFF_BROADCAST: fputs( " BROADCAST", client ); break;
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
749 case IFF_DEBUG: fputs( " DEBUG", client ); break;
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
750 case IFF_LOOPBACK: fputs( " LOOPBACK", client ); break;
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
751 case IFF_PROMISC: fputs( " PROMISCUOUS", client ); break;
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
752 case IFF_RUNNING: fputs( " RUNNING", client ); break;
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
753 case IFF_SIMPLEX: fputs( " SIMPLEX", client ); break;
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
754 case IFF_MULTICAST: fputs( " MULTICAST", client ); break;
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
755 }
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
756 }
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
757 html_table_row_end( client );
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
758
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
759 html_table_row_begin(client, "" );
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
760 getnameinfo(ifp->ifa_addr, sizeof(*ifp->ifa_addr),
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
761 addr, sizeof(addr), NULL, 0, NI_NUMERICHOST);
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
762 fprintf( client, "<td>Address<td>%s\n", addr);
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
763 html_table_row_end( client );
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
764
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
765 if (ifp->ifa_netmask)
468
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
766 {
1008
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
767 html_table_row_begin(client, "" );
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
768 getnameinfo(ifp->ifa_netmask, sizeof(*ifp->ifa_netmask),
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
769 addr, sizeof(addr), NULL, 0, NI_NUMERICHOST);
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
770 fprintf( client, "<td>Mask<td>%s\n", addr);
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
771 html_table_row_end( client );
468
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
772 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
773
1008
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
774 if (ifp->ifa_broadaddr)
468
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
775 {
1008
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
776 html_table_row_begin(client, "" );
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
777 getnameinfo(ifp->ifa_broadaddr, sizeof(*ifp->ifa_broadaddr),
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
778 addr, sizeof(addr), NULL, 0, NI_NUMERICHOST);
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
779 fprintf( client, "<td>Broadcast<td>%s\n", addr);
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
780 html_table_row_end( client );
468
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
781 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
782 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
783 html_table_end( client );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
784 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
785 html_table_row_end( client );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
786
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
787 }
1008
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
788 ifp = ifp->ifa_next;
468
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
789 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
790 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
791 html_table_end( client );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
792
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
793 /* Now the protocols. For each of the main protocols: IP,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
794 * ICMP, UDP, TCP print a table of useful information derived
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
795 * from the in-kernel data structures. Note that this only
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
796 * works for the BSD stacks.
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
797 */
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
798
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
799 html_para_begin( client, "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
800 html_heading(client, 3, "Protocols" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
801
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
802 html_para_begin( client, "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
803 html_table_begin( client, "border");
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
804 {
1008
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
805 html_table_header( client, "IPv4", "" );
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
806 #ifdef CYGPKG_NET_INET6
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
807 html_table_header( client, "IPv6", "" );
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
808 #endif
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
809 html_table_header( client, "ICMPv4", "" );
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
810 #ifdef CYGPKG_NET_INET6
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
811 html_table_header( client, "ICMPv6", "" );
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
812 #endif
468
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
813 html_table_header( client, "UDP", "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
814 html_table_header( client, "TCP", "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
815
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
816 html_table_row_begin(client, "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
817 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
818 html_table_data_begin( client, "valign=\"top\"" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
819 html_table_begin( client, "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
820 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
821
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
822 fprintf( client, "<tr><td><b>%s:</b><td></tr>\n", "Received" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
823 fprintf( client, "<tr><td>%s<td>%ld</tr>\n", "Total",
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
824 ipstat.ips_total );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
825 fprintf( client, "<tr><td>%s<td>%ld</tr>\n", "Bad",
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
826 ipstat.ips_badsum+
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
827 ipstat.ips_tooshort+
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
828 ipstat.ips_toosmall+
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
829 ipstat.ips_badhlen+
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
830 ipstat.ips_badlen+
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
831 ipstat.ips_noproto+
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
832 ipstat.ips_toolong
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
833 );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
834 fprintf( client, "<tr><td>%s<td>%ld</tr>\n", "Reassembled",
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
835 ipstat.ips_reassembled );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
836 fprintf( client, "<tr><td>%s<td>%ld</tr>\n", "Delivered",
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
837 ipstat.ips_delivered );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
838
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
839 fprintf( client, "<tr><td><b>%s:</b><td></tr>\n", "Sent" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
840 fprintf( client, "<tr><td>%s<td>%ld</tr>\n", "Total",
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
841 ipstat.ips_localout );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
842 fprintf( client, "<tr><td>%s<td>%ld</tr>\n", "Raw",
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
843 ipstat.ips_rawout );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
844 fprintf( client, "<tr><td>%s<td>%ld</tr>\n", "Fragmented",
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
845 ipstat.ips_fragmented );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
846 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
847 html_table_end( client );
1008
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
848 #ifdef CYGPKG_NET_INET6
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
849 html_table_data_begin( client, "valign=\"top\"" );
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
850 html_table_begin( client, "" );
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
851 {
468
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
852
1008
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
853 fprintf( client, "<tr><td><b>%s:</b><td></tr>\n", "Received" );
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
854 fprintf( client, "<tr><td>%s<td>%lld</tr>\n", "Total",
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
855 ip6stat.ip6s_total );
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
856 fprintf( client, "<tr><td>%s<td>%lld</tr>\n", "Bad",
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
857 ip6stat.ip6s_tooshort+
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
858 ip6stat.ip6s_toosmall
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
859 );
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
860 fprintf( client, "<tr><td>%s<td>%lld</tr>\n", "Reassembled",
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
861 ip6stat.ip6s_reassembled );
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
862 fprintf( client, "<tr><td>%s<td>%lld</tr>\n", "Delivered",
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
863 ip6stat.ip6s_delivered );
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
864
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
865 fprintf( client, "<tr><td><b>%s:</b><td></tr>\n", "Sent" );
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
866 fprintf( client, "<tr><td>%s<td>%lld</tr>\n", "Total",
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
867 ip6stat.ip6s_localout );
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
868 fprintf( client, "<tr><td>%s<td>%lld</tr>\n", "Raw",
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
869 ip6stat.ip6s_rawout );
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
870 fprintf( client, "<tr><td>%s<td>%lld</tr>\n", "Fragmented",
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
871 ip6stat.ip6s_fragmented );
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
872 }
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
873 html_table_end( client );
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
874 #endif
468
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
875 html_table_data_begin( client, "valign=\"top\"" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
876 html_table_begin( client, "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
877 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
878
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
879 fprintf( client, "<tr><td><b>%s:</b><td></tr>\n", "Received" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
880 fprintf( client, "<tr><td>%s<td>%ld</tr>\n", "ECHO",
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
881 icmpstat.icps_inhist[ICMP_ECHO] );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
882 fprintf( client, "<tr><td>%s<td>%ld</tr>\n", "ECHO REPLY",
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
883 icmpstat.icps_inhist[ICMP_ECHOREPLY] );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
884 fprintf( client, "<tr><td>%s<td>%ld</tr>\n", "UNREACH",
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
885 icmpstat.icps_inhist[ICMP_UNREACH] );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
886 fprintf( client, "<tr><td>%s<td>%ld</tr>\n", "REDIRECT",
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
887 icmpstat.icps_inhist[ICMP_REDIRECT] );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
888 fprintf( client, "<tr><td>%s<td>%ld</tr>\n", "Other",
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
889 icmpstat.icps_inhist[ICMP_SOURCEQUENCH]+
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
890 icmpstat.icps_inhist[ICMP_ROUTERADVERT]+
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
891 icmpstat.icps_inhist[ICMP_ROUTERSOLICIT]+
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
892 icmpstat.icps_inhist[ICMP_TIMXCEED]+
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
893 icmpstat.icps_inhist[ICMP_PARAMPROB]+
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
894 icmpstat.icps_inhist[ICMP_TSTAMP]+
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
895 icmpstat.icps_inhist[ICMP_TSTAMPREPLY]+
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
896 icmpstat.icps_inhist[ICMP_IREQ]+
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
897 icmpstat.icps_inhist[ICMP_IREQREPLY]+
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
898 icmpstat.icps_inhist[ICMP_MASKREQ]+
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
899 icmpstat.icps_inhist[ICMP_MASKREPLY]
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
900 );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
901 fprintf( client, "<tr><td>%s<td>%ld</tr>\n", "Bad",
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
902 icmpstat.icps_badcode+
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
903 icmpstat.icps_tooshort+
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
904 icmpstat.icps_checksum+
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
905 icmpstat.icps_badlen+
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
906 icmpstat.icps_bmcastecho
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
907 );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
908
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
909 fprintf( client, "<tr><td><b>%s:</b><td></tr>\n", "Sent" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
910 fprintf( client, "<tr><td>%s<td>%ld</tr>\n", "ECHO",
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
911 icmpstat.icps_outhist[ICMP_ECHO] );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
912 fprintf( client, "<tr><td>%s<td>%ld</tr>\n", "ECHO REPLY",
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
913 icmpstat.icps_outhist[ICMP_ECHOREPLY] );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
914 fprintf( client, "<tr><td>%s<td>%ld</tr>\n", "UNREACH",
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
915 icmpstat.icps_outhist[ICMP_UNREACH] );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
916 fprintf( client, "<tr><td>%s<td>%ld</tr>\n", "REDIRECT",
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
917 icmpstat.icps_outhist[ICMP_REDIRECT] );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
918 fprintf( client, "<tr><td>%s<td>%ld</tr>\n", "Other",
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
919 icmpstat.icps_inhist[ICMP_SOURCEQUENCH]+
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
920 icmpstat.icps_outhist[ICMP_ROUTERADVERT]+
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
921 icmpstat.icps_outhist[ICMP_ROUTERSOLICIT]+
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
922 icmpstat.icps_outhist[ICMP_TIMXCEED]+
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
923 icmpstat.icps_outhist[ICMP_PARAMPROB]+
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
924 icmpstat.icps_outhist[ICMP_TSTAMP]+
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
925 icmpstat.icps_outhist[ICMP_TSTAMPREPLY]+
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
926 icmpstat.icps_outhist[ICMP_IREQ]+
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
927 icmpstat.icps_outhist[ICMP_IREQREPLY]+
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
928 icmpstat.icps_outhist[ICMP_MASKREQ]+
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
929 icmpstat.icps_outhist[ICMP_MASKREPLY]
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
930 );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
931 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
932 html_table_end( client );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
933
1008
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
934 #ifdef CYGPKG_NET_INET6
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
935 html_table_data_begin( client, "valign=\"top\"" );
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
936 html_table_begin( client, "" );
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
937 {
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
938
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
939 fprintf( client, "<tr><td><b>%s:</b><td></tr>\n", "Received" );
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
940 fprintf( client, "<tr><td>%s<td>%lld</tr>\n", "ECHO",
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
941 icmp6stat.icp6s_inhist[ICMP_ECHO] );
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
942 fprintf( client, "<tr><td>%s<td>%lld</tr>\n", "ECHO REPLY",
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
943 icmp6stat.icp6s_inhist[ICMP_ECHOREPLY] );
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
944 fprintf( client, "<tr><td>%s<td>%lld</tr>\n", "UNREACH",
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
945 icmp6stat.icp6s_inhist[ICMP_UNREACH] );
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
946 fprintf( client, "<tr><td>%s<td>%lld</tr>\n", "REDIRECT",
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
947 icmp6stat.icp6s_inhist[ICMP_REDIRECT] );
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
948 fprintf( client, "<tr><td>%s<td>%lld</tr>\n", "Other",
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
949 icmp6stat.icp6s_inhist[ICMP_SOURCEQUENCH]+
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
950 icmp6stat.icp6s_inhist[ICMP_ROUTERADVERT]+
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
951 icmp6stat.icp6s_inhist[ICMP_ROUTERSOLICIT]+
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
952 icmp6stat.icp6s_inhist[ICMP_TIMXCEED]+
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
953 icmp6stat.icp6s_inhist[ICMP_PARAMPROB]+
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
954 icmp6stat.icp6s_inhist[ICMP_TSTAMP]+
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
955 icmp6stat.icp6s_inhist[ICMP_TSTAMPREPLY]+
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
956 icmp6stat.icp6s_inhist[ICMP_IREQ]+
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
957 icmp6stat.icp6s_inhist[ICMP_IREQREPLY]+
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
958 icmp6stat.icp6s_inhist[ICMP_MASKREQ]+
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
959 icmp6stat.icp6s_inhist[ICMP_MASKREPLY]
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
960 );
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
961 fprintf( client, "<tr><td>%s<td>%lld</tr>\n", "Bad",
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
962 icmp6stat.icp6s_badcode+
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
963 icmp6stat.icp6s_tooshort+
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
964 icmp6stat.icp6s_checksum+
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
965 icmp6stat.icp6s_badlen
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
966 );
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
967
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
968 fprintf( client, "<tr><td><b>%s:</b><td></tr>\n", "Sent" );
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
969 fprintf( client, "<tr><td>%s<td>%lld</tr>\n", "ECHO",
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
970 icmp6stat.icp6s_outhist[ICMP_ECHO] );
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
971 fprintf( client, "<tr><td>%s<td>%lld</tr>\n", "ECHO REPLY",
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
972 icmp6stat.icp6s_outhist[ICMP_ECHOREPLY] );
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
973 fprintf( client, "<tr><td>%s<td>%lld</tr>\n", "UNREACH",
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
974 icmp6stat.icp6s_outhist[ICMP_UNREACH] );
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
975 fprintf( client, "<tr><td>%s<td>%lld</tr>\n", "REDIRECT",
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
976 icmp6stat.icp6s_outhist[ICMP_REDIRECT] );
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
977 fprintf( client, "<tr><td>%s<td>%lld</tr>\n", "Other",
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
978 icmp6stat.icp6s_inhist[ICMP_SOURCEQUENCH]+
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
979 icmp6stat.icp6s_outhist[ICMP_ROUTERADVERT]+
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
980 icmp6stat.icp6s_outhist[ICMP_ROUTERSOLICIT]+
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
981 icmp6stat.icp6s_outhist[ICMP_TIMXCEED]+
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
982 icmp6stat.icp6s_outhist[ICMP_PARAMPROB]+
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
983 icmp6stat.icp6s_outhist[ICMP_TSTAMP]+
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
984 icmp6stat.icp6s_outhist[ICMP_TSTAMPREPLY]+
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
985 icmp6stat.icp6s_outhist[ICMP_IREQ]+
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
986 icmp6stat.icp6s_outhist[ICMP_IREQREPLY]+
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
987 icmp6stat.icp6s_outhist[ICMP_MASKREQ]+
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
988 icmp6stat.icp6s_outhist[ICMP_MASKREPLY]
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
989 );
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
990 }
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
991 html_table_end( client );
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
992 #endif
468
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
993 html_table_data_begin( client, "valign=\"top\"" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
994 html_table_begin( client, "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
995 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
996
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
997 fprintf( client, "<tr><td><b>%s:</b><td></tr>\n", "Received" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
998 fprintf( client, "<tr><td>%s<td>%ld</tr>\n", "Total",
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
999 udpstat.udps_ipackets );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1000 fprintf( client, "<tr><td>%s<td>%ld</tr>\n", "Bad",
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1001 udpstat.udps_hdrops+
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1002 udpstat.udps_badsum+
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1003 udpstat.udps_badlen+
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1004 udpstat.udps_noport+
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1005 udpstat.udps_noportbcast+
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1006 udpstat.udps_fullsock
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1007 );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1008 fprintf( client, "<tr><td><b>%s:</b><td></tr>\n", "Sent" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1009 fprintf( client, "<tr><td>%s<td>%ld</tr>\n", "Total",
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1010 udpstat.udps_opackets );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1011 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1012 html_table_end( client );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1013
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1014 html_table_data_begin( client, "valign=\"top\"" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1015 html_table_begin( client, "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1016 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1017
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1018 fprintf( client, "<tr><td><b>%s:</b><td></tr>\n", "Connections" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1019 fprintf( client, "<tr><td>%s<td>%ld</tr>\n", "Initiated",
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1020 tcpstat.tcps_connattempt );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1021 fprintf( client, "<tr><td>%s<td>%ld</tr>\n", "Accepted",
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1022 tcpstat.tcps_accepts );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1023 fprintf( client, "<tr><td>%s<td>%ld</tr>\n", "Established",
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1024 tcpstat.tcps_connects );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1025 fprintf( client, "<tr><td>%s<td>%ld</tr>\n", "Closed",
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1026 tcpstat.tcps_closed );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1027
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1028 fprintf( client, "<tr><td><b>%s:</b><td></tr>\n", "Received" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1029 fprintf( client, "<tr><td>%s<td>%ld</tr>\n", "Packets",
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1030 tcpstat.tcps_rcvtotal );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1031 fprintf( client, "<tr><td>%s<td>%ld</tr>\n", "Data Packets",
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1032 tcpstat.tcps_rcvpack );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1033 fprintf( client, "<tr><td>%s<td>%ld</tr>\n", "Bytes",
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1034 tcpstat.tcps_rcvbyte );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1035
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1036 fprintf( client, "<tr><td><b>%s:</b><td></tr>\n", "Sent" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1037 fprintf( client, "<tr><td>%s<td>%ld</tr>\n", "Packets",
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1038 tcpstat.tcps_sndtotal );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1039 fprintf( client, "<tr><td>%s<td>%ld</tr>\n", "Data Packets",
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1040 tcpstat.tcps_sndpack );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1041 fprintf( client, "<tr><td>%s<td>%ld</tr>\n", "Bytes",
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1042 tcpstat.tcps_sndbyte );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1043
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1044
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1045 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1046 html_table_end( client );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1047
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1048
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1049 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1050 html_table_row_end( client );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1051
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1052 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1053 html_table_end( client );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1054
831
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1055 html_para_begin( client, "" );
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1056 html_heading(client, 3, "Mbufs" );
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1057
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1058 html_table_begin( client, "border" );
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1059 {
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1060 html_table_header( client, "Summary", "" );
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1061 html_table_header( client, "Types", "" );
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1062
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1063 html_table_row_begin( client, "" );
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1064 {
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1065 html_table_data_begin( client, "valign=\"top\"" );
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1066 html_table_begin( client, "" );
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1067 {
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1068 fprintf( client, "<tr><td>%s<td>%ld</tr>\n", "Mbufs",
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1069 mbstat.m_mbufs );
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1070 fprintf( client, "<tr><td>%s<td>%ld</tr>\n", "Clusters",
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1071 mbstat.m_clusters );
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1072 fprintf( client, "<tr><td>%s<td>%ld</tr>\n", "Free Clusters",
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1073 mbstat.m_clfree );
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1074 fprintf( client, "<tr><td>%s<td>%ld</tr>\n", "Drops",
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1075 mbstat.m_drops );
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1076 fprintf( client, "<tr><td>%s<td>%ld</tr>\n", "Waits",
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1077 mbstat.m_wait );
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1078 fprintf( client, "<tr><td>%s<td>%ld</tr>\n", "Drains",
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1079 mbstat.m_drain );
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1080 #if defined(CYGPKG_NET_FREEBSD_STACK)
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1081 fprintf( client, "<tr><td>%s<td>%ld</tr>\n", "Copy Fails",
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1082 mbstat.m_mcfail );
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1083 fprintf( client, "<tr><td>%s<td>%ld</tr>\n", "Pullup Fails",
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1084 mbstat.m_mpfail );
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1085 #endif
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1086
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1087 }
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1088 html_table_end( client );
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1089
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1090 html_table_data_begin( client, "valign=\"top\"" );
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1091 html_table_begin( client, "" );
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1092 {
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1093 u_long *mtypes;
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1094 #if defined(CYGPKG_NET_FREEBSD_STACK)
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1095 mtypes = mbtypes;
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1096 #else
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1097 mtypes = mbstat.m_mtypes;
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1098 #endif
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1099
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1100 fprintf( client, "<tr><td>%s<td>%ld</tr>\n", "FREE",
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1101 mtypes[MT_FREE] );
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1102 fprintf( client, "<tr><td>%s<td>%ld</tr>\n", "DATA",
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1103 mtypes[MT_DATA] );
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1104 fprintf( client, "<tr><td>%s<td>%ld</tr>\n", "HEADER",
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1105 mtypes[MT_HEADER] );
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1106 #if !defined(CYGPKG_NET_FREEBSD_STACK)
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1107 fprintf( client, "<tr><td>%s<td>%ld</tr>\n", "SOCKET",
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1108 mtypes[MT_SOCKET] );
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1109 fprintf( client, "<tr><td>%s<td>%ld</tr>\n", "PCB",
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1110 mtypes[MT_PCB] );
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1111 fprintf( client, "<tr><td>%s<td>%ld</tr>\n", "RTABLE",
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1112 mtypes[MT_RTABLE] );
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1113 fprintf( client, "<tr><td>%s<td>%ld</tr>\n", "HTABLE",
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1114 mtypes[MT_HTABLE] );
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1115 fprintf( client, "<tr><td>%s<td>%ld</tr>\n", "ATABLE",
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1116 mtypes[MT_ATABLE] );
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1117 #endif
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1118 fprintf( client, "<tr><td>%s<td>%ld</tr>\n", "SONAME",
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1119 mtypes[MT_SONAME] );
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1120 #if !defined(CYGPKG_NET_FREEBSD_STACK)
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1121 fprintf( client, "<tr><td>%s<td>%ld</tr>\n", "SOOPTS",
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1122 mtypes[MT_SOOPTS] );
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1123 #endif
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1124 fprintf( client, "<tr><td>%s<td>%ld</tr>\n", "FTABLE",
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1125 mtypes[MT_FTABLE] );
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1126
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1127 /* Ignore the rest for now... */
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1128
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1129 }
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1130 html_table_end( client );
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1131
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1132 }
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1133 html_table_row_end( client );
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1134
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1135 }
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1136 html_table_end( client );
0b41b42148e9 * src/monitor.c (cyg_monitor_network): Added monitoring of Mbufs
nickg
parents: 468
diff changeset
1137
468
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1138
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1139 draw_navbar(client);
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1140 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1141 html_body_end(client);
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1142
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1143 html_end(client);
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1144
1008
4ca8a5f30c03 * src/monitor.c (cyg_monitor_network): Added IPv6 information to
asl
parents: 831
diff changeset
1145 freeifaddrs(iflist);
468
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1146 return 1;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1147
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1148 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1149
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1150 CYG_HTTPD_TABLE_ENTRY( cyg_monitor_network_entry,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1151 "/monitor/network.htm*",
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1152 cyg_monitor_network,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1153 NULL );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1154
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1155
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1156 /* ================================================================= */
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1157 /* Instrumentation Monitor
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1158 *
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1159 * If the CYGPKG_KERNEL_INSTRUMENT option is set, we generate a table
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1160 * showing the current instrumentation buffer. If the FLAGS option is
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1161 * enabled we also print a table giving control of the flags.
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1162 *
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1163 */
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1164
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1165 #ifdef CYGPKG_KERNEL_INSTRUMENT
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1166
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1167 /* Instrumentation record. */
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1168 struct Instrument_Record
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1169 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1170 CYG_WORD16 type; // record type
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1171 CYG_WORD16 thread; // current thread id
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1172 CYG_WORD timestamp; // 32 bit timestamp
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1173 CYG_WORD arg1; // first arg
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1174 CYG_WORD arg2; // second arg
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1175 };
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1176 typedef struct Instrument_Record Instrument_Record;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1177
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1178 /* Instrumentation variables, these live in the
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1179 * instrumentation files in the kernel
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1180 */
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1181 __externC Instrument_Record *instrument_buffer_pointer;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1182 __externC Instrument_Record instrument_buffer[];
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1183 __externC cyg_uint32 instrument_buffer_size;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1184
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1185 #if defined(CYGDBG_KERNEL_INSTRUMENT_FLAGS) && \
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1186 defined(CYGDBG_KERNEL_INSTRUMENT_MSGS)
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1187
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1188 static cyg_uint32 instrument_flags[(CYG_INSTRUMENT_CLASS_MAX>>8)+1];
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1189
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1190 #endif
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1191
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1192 static char cyg_monitor_instrument_blurb1[] =
1718
81ee8c3c3d7b * src/monitor.c: Added missing spaces in multi-line HTML strings.
asl
parents: 1325
diff changeset
1193 "<p>Use the checkboxes to enable the events to be recorded. Click "
81ee8c3c3d7b * src/monitor.c: Added missing spaces in multi-line HTML strings.
asl
parents: 1325
diff changeset
1194 "the <em>Submit</em> button to start recording. Click the <em>Clear</em> "
1053
657f409c5dfe * src/httpd.c: Fixed a problem with closing the client socket --
nickg
parents: 1008
diff changeset
1195 "button to clear all instrumentation and to stop recording."
468
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1196 ;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1197
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1198 static cyg_bool cyg_monitor_instrument( FILE * client, char *filename,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1199 char *formdata, void *arg )
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1200 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1201
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1202 #if defined(CYGDBG_KERNEL_INSTRUMENT_FLAGS) && \
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1203 defined(CYGDBG_KERNEL_INSTRUMENT_MSGS)
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1204
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1205 /* Disable all instrumentation while we generate the page.
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1206 * Otherwise we could swamp the information we are really after.
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1207 */
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1208
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1209 cyg_scheduler_lock();
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1210 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1211 struct instrument_desc_s *id = instrument_desc;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1212 CYG_WORD cl = 0, ev = 0;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1213
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1214 for( ; id->msg != 0; id++ )
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1215 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1216 if( id->num > 0xff )
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1217 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1218 cl = id->num>>8;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1219 instrument_flags[cl] = 0;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1220 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1221 else
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1222 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1223 ev = id->num;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1224 cyg_instrument_disable( cl<<8, ev );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1225 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1226 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1227 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1228 cyg_scheduler_unlock();
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1229
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1230 #endif
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1231
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1232 /* If we have some form data, deal with it.
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1233 */
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1234 if( formdata != NULL )
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1235 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1236 char *list[40];
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1237
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1238 cyg_formdata_parse( formdata, list, sizeof(list)/sizeof(*list) );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1239
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1240 #if defined(CYGDBG_KERNEL_INSTRUMENT_FLAGS) && \
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1241 defined(CYGDBG_KERNEL_INSTRUMENT_MSGS)
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1242
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1243 if( cyg_formlist_find( list, "clear" ) != NULL )
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1244 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1245 /* If the clear button is set, then disable all instrumentation flags.
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1246 */
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1247 int i;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1248 for( i = 0; i < sizeof(instrument_flags)/sizeof(*instrument_flags); i++ )
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1249 instrument_flags[i] = 0;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1250 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1251 else
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1252 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1253 /* Otherwise all the set checkboxes have been reported to
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1254 * us in the form of class=event inputs.
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1255 */
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1256 char **p;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1257 for( p = list; *p != NULL; p++ )
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1258 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1259 int cl,ev;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1260 if( sscanf( *p, "%02x=%02x", &cl, &ev ) == 2 )
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1261 instrument_flags[cl] |= 1<<ev;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1262 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1263 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1264 #endif
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1265
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1266 /* If the cleartable button has been pressed, clear all the
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1267 * table entries.
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1268 */
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1269 if( cyg_formlist_find( list, "cleartable" ) != NULL )
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1270 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1271 cyg_scheduler_lock();
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1272 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1273 Instrument_Record *ibp = instrument_buffer_pointer;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1274 do
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1275 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1276 ibp->type = 0;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1277 ibp++;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1278 if( ibp == &instrument_buffer[instrument_buffer_size] )
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1279 ibp = instrument_buffer;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1280
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1281 } while( ibp != instrument_buffer_pointer );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1282
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1283 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1284 cyg_scheduler_unlock();
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1285 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1286 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1287
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1288 /* Now start generating the HTML page.
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1289 */
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1290 html_begin(client);
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1291
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1292 html_head(client,"eCos Instrumentation Buffer", "");
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1293
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1294 html_body_begin(client,"");
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1295 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1296 html_heading(client, 2, "Instrumentation Buffer" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1297
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1298 html_form_begin( client, "/monitor/instrument.html", "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1299
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1300 #if defined(CYGDBG_KERNEL_INSTRUMENT_FLAGS) && \
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1301 defined(CYGDBG_KERNEL_INSTRUMENT_MSGS)
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1302
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1303 /* If we have the flags enabled, generate a table showing all
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1304 * the flag names with a checkbox against each.
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1305 */
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1306
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1307 fputs( cyg_monitor_instrument_blurb1, client );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1308
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1309 html_para_begin( client, "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1310 /* Add submit,clear and reset buttons */
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1311 html_form_input(client, "submit", "submit", "Submit", "");
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1312 html_form_input(client, "submit", "clear", "Clear", "");
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1313 html_form_input(client, "reset", "reset", "Reset", "");
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1314
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1315 html_table_begin( client, "border width=100%" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1316 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1317 struct instrument_desc_s *id = instrument_desc;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1318 CYG_WORD cl = 0, ev = 0;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1319 int clc = 0;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1320 char class[5], event[5];
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1321
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1322 html_table_row_begin( client, "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1323
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1324 for( ; id->msg != 0; id++ )
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1325 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1326 if( id->num > 0xff )
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1327 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1328 cl = id->num;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1329 sprintf( class, "%02x", cl>>8 );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1330 clc = 0;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1331
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1332 if( id != instrument_desc )
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1333 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1334 html_table_end( client );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1335 html_table_row_end( client );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1336 html_table_row_begin( client, "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1337 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1338
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1339 html_table_data_begin( client, "valign=\"top\" width=100%" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1340 html_table_begin( client, "width=100%" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1341 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1342 else
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1343 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1344 ev = id->num;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1345 sprintf( event, "%02x", ev );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1346
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1347 if( (clc%4) == 0 )
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1348 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1349 if( clc != 0 )
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1350 html_table_row_end( client );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1351
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1352 html_table_row_begin( client, "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1353 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1354 clc++;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1355 html_table_data_begin( client, "width=25%" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1356 html_form_input_checkbox( client, class, event,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1357 instrument_flags[cl>>8] & (1<<ev) );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1358 fputs( id->msg, client );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1359 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1360 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1361 html_table_end( client );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1362 html_table_row_end( client );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1363 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1364 html_table_end( client );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1365
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1366 /* Add submit,clear and reset buttons */
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1367 html_form_input(client, "submit", "submit", "Submit", "");
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1368 html_form_input(client, "submit", "clear", "Clear", "");
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1369 html_form_input(client, "reset", "reset", "Reset", "");
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1370
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1371 #endif
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1372
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1373 html_para_begin( client, "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1374
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1375 html_form_input(client, "submit", "cleartable", "Clear Table", "");
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1376
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1377
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1378 /*
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1379 */
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1380
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1381 html_table_begin( client, "border" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1382 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1383 Instrument_Record *ibp = instrument_buffer_pointer;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1384
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1385 html_table_header( client, "TIME", "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1386 html_table_header( client, "THREAD", "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1387 html_table_header( client, "EVENT", "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1388 html_table_header( client, "ARG1", "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1389 html_table_header( client, "ARG2", "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1390
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1391 do
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1392 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1393 if( ibp->type != 0 )
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1394 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1395 html_table_row_begin(client, "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1396 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1397 cyg_handle_t thread = cyg_thread_find(ibp->thread);
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1398 cyg_thread_info info;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1399
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1400 html_table_data_begin( client, "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1401 fprintf( client, "%08x",ibp->timestamp);
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1402 html_table_data_begin( client, "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1403 if( thread != 0 &&
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1404 cyg_thread_get_info( thread, ibp->thread, &info ) &&
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1405 info.name != NULL )
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1406 fputs( info.name, client );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1407 else fprintf( client, "[%04x]", ibp->thread);
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1408 html_table_data_begin( client, "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1409 #if defined(CYGDBG_KERNEL_INSTRUMENT_MSGS)
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1410 fprintf( client, "%s", cyg_instrument_msg(ibp->type));
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1411 #else
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1412 fprintf( client, "%04x", ibp->type );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1413 #endif
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1414 html_table_data_begin( client, "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1415 fprintf( client, "%08x", ibp->arg1);
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1416 html_table_data_begin( client, "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1417 fprintf( client, "%08x", ibp->arg2);
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1418 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1419 html_table_row_end( client );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1420 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1421 ibp++;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1422 if( ibp == &instrument_buffer[instrument_buffer_size] )
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1423 ibp = instrument_buffer;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1424
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1425 } while( ibp != instrument_buffer_pointer );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1426 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1427 html_table_end( client );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1428
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1429 html_para_begin( client, "" );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1430
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1431 html_form_input(client, "submit", "cleartable", "Clear Table", "");
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1432
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1433 html_form_end( client );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1434
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1435 draw_navbar(client);
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1436 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1437 html_body_end(client);
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1438
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1439 html_end(client);
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1440
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1441
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1442 #if defined(CYGDBG_KERNEL_INSTRUMENT_FLAGS) && \
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1443 defined(CYGDBG_KERNEL_INSTRUMENT_MSGS)
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1444
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1445 /*
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1446 */
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1447
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1448 cyg_scheduler_lock();
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1449 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1450 struct instrument_desc_s *id = instrument_desc;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1451 CYG_WORD cl = 0, ev = 0;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1452
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1453 for( ; id->msg != 0; id++ )
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1454 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1455 if( id->num > 0xff )
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1456 cl = id->num>>8;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1457 else
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1458 {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1459 ev = id->num;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1460 if( (instrument_flags[cl] & (1<<ev)) != 0 )
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1461 cyg_instrument_enable( cl<<8, ev );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1462 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1463 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1464 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1465 cyg_scheduler_unlock();
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1466 #endif
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1467
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1468 return true;
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1469 }
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1470
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1471 CYG_HTTPD_TABLE_ENTRY( cyg_monitor_instrument_entry,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1472 "/monitor/instrument.htm*",
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1473 cyg_monitor_instrument,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1474 NULL );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1475
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1476 #endif
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1477
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1478 /* ================================================================= */
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1479 /* eCos Logo
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1480 *
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1481 * Define the logo as a byte array, and then define the data structure
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1482 * and table entry to allow it to be fetched by the client.
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1483 */
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1484
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1485 static cyg_uint8 ecos_logo_gif[] = {
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1486 0x47, 0x49, 0x46, 0x38, 0x39, 0x61, 0x6f, 0x00, 0x23, 0x00, 0xf7, 0x00, 0x00, 0x00, 0x00, 0x00,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1487 0xff, 0xff, 0xff, 0xea, 0x19, 0x00, 0xcc, 0x00, 0x00, 0xfd, 0xfd, 0xfd, 0x83, 0x00, 0x00, 0xf6,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1488 0xf6, 0xf6, 0x2f, 0x2f, 0x2f, 0xef, 0xef, 0xef, 0x19, 0x00, 0x19, 0x45, 0x45, 0x45, 0xbb, 0xbb,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1489 0xbb, 0xe2, 0x3e, 0x3e, 0xe8, 0xbb, 0xd3, 0x3e, 0x3e, 0x3e, 0xfb, 0xfb, 0xfb, 0xbe, 0xbe, 0xbe,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1490 0xf1, 0xed, 0xed, 0xe5, 0x7b, 0x8e, 0xe5, 0x6b, 0x7b, 0xcc, 0xcc, 0xcc, 0x98, 0x95, 0x98, 0xc6,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1491 0xc3, 0xc6, 0x19, 0x19, 0x19, 0xf1, 0xf1, 0xf1, 0x98, 0x98, 0x98, 0xd6, 0xd3, 0xd6, 0x83, 0x83,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1492 0x83, 0xde, 0xde, 0xde, 0xe5, 0x25, 0x25, 0x73, 0x6f, 0x73, 0xea, 0xea, 0xea, 0xe5, 0x8e, 0xa2,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1493 0xe8, 0xe8, 0xe8, 0x7f, 0x7b, 0x7f, 0xe2, 0x56, 0x66, 0x8b, 0x8b, 0x8b, 0x19, 0x19, 0x00, 0xf8,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1494 0xf8, 0xf8, 0x73, 0x73, 0x73, 0xd3, 0xd1, 0xd1, 0x9c, 0x9c, 0x9c, 0x50, 0x50, 0x50, 0xef, 0xce,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1495 0xea, 0x92, 0x8e, 0x92, 0x6f, 0x6f, 0x6f, 0xe2, 0x2f, 0x2f, 0x61, 0x61, 0x61, 0xe5, 0xe5, 0xe5,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1496 0xe8, 0x9f, 0xb8, 0x37, 0x2f, 0x37, 0x66, 0x66, 0x66, 0xe2, 0x4b, 0x50, 0x56, 0x50, 0x56, 0xa9,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1497 0xa5, 0xa9, 0xce, 0xce, 0xce, 0x56, 0x50, 0x50, 0xd9, 0xd9, 0xd9, 0x77, 0x73, 0x77, 0x25, 0x25,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1498 0x2f, 0x6b, 0x6b, 0x6b, 0x9f, 0x9f, 0x9f, 0x87, 0x83, 0x87, 0x3e, 0x37, 0x37, 0xf4, 0xf4, 0xf4,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1499 0x25, 0x25, 0x25, 0xc1, 0xc1, 0xc1, 0x83, 0x7f, 0x83, 0xe5, 0xe2, 0xe2, 0x4b, 0x45, 0x4b, 0xd1,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1500 0xce, 0xd1, 0xaf, 0xac, 0xaf, 0xcc, 0xc9, 0xcc, 0x5b, 0x56, 0x5b, 0xdb, 0xd9, 0xdb, 0x66, 0x61,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1501 0x66, 0xe2, 0xe2, 0xe2, 0xb8, 0xb5, 0xb8, 0x2f, 0x25, 0x2f, 0xc3, 0xc1, 0xc3, 0xe0, 0xde, 0xe0,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1502 0xd3, 0xd3, 0xd3, 0xde, 0xdb, 0xde, 0xac, 0xac, 0xac, 0xce, 0xcc, 0xce, 0x77, 0x6f, 0x73, 0x4b,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1503 0x45, 0x45, 0xc9, 0xc6, 0xc9, 0x45, 0x3e, 0x45, 0x61, 0x5b, 0x61, 0xb5, 0xb2, 0xb5, 0x3e, 0x00,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1504 0x00, 0x8b, 0x87, 0x87, 0x95, 0x92, 0x95, 0xa2, 0x9f, 0xa2, 0xb8, 0xb8, 0xb8, 0x7b, 0x77, 0x7b,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1505 0x9c, 0x98, 0x9c, 0x50, 0x4b, 0x50, 0x6f, 0x6b, 0x6f, 0x6b, 0x66, 0x6b, 0xac, 0xa9, 0xac, 0x8e,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1506 0x8b, 0x8e, 0x8e, 0x00, 0x00, 0xdb, 0xdb, 0xdb, 0xed, 0xed, 0xed, 0x50, 0x4b, 0x4b, 0x3e, 0x37,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1507 0x3e, 0x95, 0x95, 0x95, 0xa5, 0xa2, 0xa5, 0x9f, 0x9c, 0x9f, 0xc1, 0xbe, 0xbe, 0x2f, 0x25, 0x25,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1508 0xd3, 0xd1, 0xd3, 0xf4, 0xf1, 0xf4, 0xc6, 0xc6, 0xc6, 0x8e, 0x8e, 0x8e, 0x25, 0x19, 0x19, 0x66,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1509 0x61, 0x61, 0xb2, 0xaf, 0xb2, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1510 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1511 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1512 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1513 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1514 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1515 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1516 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1517 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1518 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1519 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1520 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1521 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1522 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1523 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1524 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1525 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1526 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1527 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1528 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1529 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1530 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1531 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1532 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1533 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1534 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x2c, 0x00, 0x00,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1535 0x00, 0x00, 0x6f, 0x00, 0x23, 0x00, 0x40, 0x08, 0xff, 0x00, 0x03, 0x08, 0x1c, 0x28, 0x10, 0x41,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1536 0x8a, 0x17, 0x0e, 0x1c, 0x00, 0x58, 0xc8, 0xb0, 0xa1, 0xc3, 0x87, 0x10, 0x21, 0x12, 0x14, 0x28,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1537 0xa0, 0xa2, 0xc5, 0x8b, 0x18, 0x33, 0x6a, 0xdc, 0xb8, 0x91, 0x01, 0x83, 0x11, 0x31, 0x26, 0x12,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1538 0x44, 0x10, 0x91, 0xe1, 0x09, 0x91, 0x28, 0x03, 0x4c, 0xb9, 0x50, 0x72, 0xa1, 0x0a, 0x04, 0x29,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1539 0x09, 0x72, 0x6c, 0x10, 0x73, 0xe2, 0x88, 0x8d, 0x2e, 0x0c, 0xd4, 0x0c, 0x70, 0x73, 0x63, 0x80,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1540 0x88, 0x10, 0x76, 0x0a, 0x6d, 0x18, 0x94, 0x60, 0x03, 0x8e, 0x1a, 0x27, 0x4a, 0x40, 0x5a, 0x51,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1541 0xa9, 0xc5, 0x0e, 0x3b, 0x0d, 0x30, 0x40, 0xca, 0x40, 0x45, 0xc9, 0x14, 0x42, 0x45, 0x72, 0x60,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1542 0xf9, 0xf0, 0x64, 0xd6, 0x00, 0x19, 0x3b, 0xe8, 0xfc, 0x3a, 0x70, 0xe9, 0x45, 0x10, 0x59, 0x0d,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1543 0x70, 0x9c, 0x30, 0xf1, 0x44, 0xcb, 0xb7, 0x70, 0x4b, 0x8a, 0x64, 0x4a, 0xb7, 0xae, 0x5d, 0x01,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1544 0x6c, 0x51, 0xbe, 0x88, 0xcb, 0xb7, 0xef, 0xc2, 0xb9, 0x77, 0x03, 0x0b, 0xbe, 0x98, 0x37, 0xc0,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1545 0x81, 0x88, 0x58, 0x09, 0xde, 0xe0, 0xea, 0xf0, 0xc5, 0x44, 0x0e, 0x0f, 0x13, 0x13, 0x34, 0x30,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1546 0x21, 0x23, 0xdb, 0x8c, 0x63, 0x07, 0x4a, 0xcd, 0x88, 0xd6, 0xa9, 0x45, 0x9a, 0x04, 0x69, 0x60,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1547 0xec, 0xc0, 0x94, 0x41, 0x44, 0xaf, 0x03, 0x53, 0xf8, 0xdd, 0xd1, 0x10, 0xf5, 0xc0, 0xa9, 0x76,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1548 0x41, 0x0f, 0x24, 0xcd, 0xb1, 0xf3, 0xc0, 0x9e, 0x1c, 0x25, 0x88, 0xac, 0xac, 0x91, 0x41, 0x00,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1549 0xc8, 0x6f, 0x77, 0x48, 0x9e, 0x78, 0xc3, 0xaa, 0xdf, 0x03, 0x27, 0xa6, 0x40, 0x28, 0x2a, 0x13,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1550 0xe9, 0x08, 0xd9, 0x93, 0x41, 0xd0, 0xe6, 0xd8, 0x41, 0x42, 0x83, 0x15, 0x02, 0x0d, 0x34, 0xe0,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1551 0x8d, 0x34, 0x73, 0x6a, 0xc6, 0x7e, 0xc3, 0x3b, 0xff, 0x04, 0x3c, 0xb8, 0x3c, 0x5d, 0xdb, 0x03,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1552 0xb7, 0xc2, 0x7d, 0x91, 0x02, 0xa6, 0xe2, 0x13, 0xe0, 0xf9, 0x22, 0x3f, 0xe1, 0x9a, 0x22, 0xd3,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1553 0x09, 0xd0, 0x03, 0x18, 0x00, 0x01, 0x9b, 0x2e, 0x48, 0xec, 0x01, 0x34, 0x10, 0xc3, 0x04, 0xd3,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1554 0x69, 0xa4, 0xd3, 0x5e, 0x11, 0x39, 0x46, 0x96, 0x40, 0x53, 0x44, 0xa4, 0x02, 0x59, 0x1a, 0xe5,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1555 0x97, 0x95, 0x68, 0x17, 0xd1, 0x80, 0x92, 0x77, 0xfd, 0x69, 0x34, 0x81, 0x83, 0x6d, 0x25, 0xe4,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1556 0xe1, 0x87, 0x0e, 0x3c, 0x48, 0x90, 0x6a, 0x0c, 0x89, 0x48, 0x10, 0x77, 0x74, 0x85, 0x44, 0x10,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1557 0x6e, 0x11, 0x4e, 0xd4, 0x9f, 0x84, 0x2b, 0x10, 0x68, 0x97, 0x69, 0x10, 0x31, 0x27, 0xd0, 0x72,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1558 0x38, 0xe6, 0xa8, 0x63, 0x8e, 0x44, 0x4d, 0x74, 0xd4, 0x5d, 0x13, 0xa1, 0xe8, 0x13, 0x41, 0x31,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1559 0x60, 0xe4, 0x02, 0x7a, 0x22, 0xa9, 0xd5, 0xd1, 0x61, 0x35, 0x4e, 0x84, 0x80, 0x42, 0x0e, 0x5d,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1560 0x70, 0x83, 0x48, 0xac, 0xf5, 0xe8, 0xa3, 0x46, 0x2e, 0xac, 0x30, 0x9a, 0x48, 0x45, 0x66, 0xc4,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1561 0x80, 0x77, 0x01, 0x74, 0x69, 0x91, 0x75, 0x05, 0x0a, 0x80, 0xa4, 0x59, 0x5e, 0x92, 0x54, 0x92,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1562 0x94, 0x5f, 0x3d, 0xf9, 0x16, 0x09, 0x59, 0x6d, 0x44, 0x03, 0x98, 0x31, 0xfd, 0x48, 0x58, 0x56,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1563 0x20, 0x20, 0x45, 0x90, 0x71, 0xe2, 0xf5, 0x39, 0xde, 0x44, 0xe6, 0x05, 0xea, 0xdf, 0x4e, 0x1c,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1564 0x90, 0xe0, 0x40, 0x95, 0x7e, 0xf2, 0x45, 0x9e, 0xa0, 0xe6, 0x75, 0xc0, 0x80, 0x04, 0x00, 0x0a,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1565 0x85, 0x00, 0x82, 0x89, 0x86, 0xb7, 0x28, 0xa3, 0x82, 0x4e, 0x40, 0x27, 0x41, 0x94, 0x56, 0x2a,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1566 0xde, 0xa5, 0x98, 0x32, 0x5a, 0x58, 0x6a, 0x7d, 0xed, 0x90, 0x10, 0x93, 0x9e, 0x02, 0x00, 0x2a,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1567 0x47, 0x2e, 0x78, 0x14, 0x2a, 0x53, 0xb6, 0x75, 0xff, 0x0a, 0x91, 0x03, 0x53, 0xc6, 0x84, 0x00,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1568 0x09, 0x7c, 0x5d, 0x70, 0x82, 0x7b, 0x29, 0x21, 0x25, 0xc1, 0xa6, 0x03, 0x35, 0x90, 0x61, 0x46,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1569 0x2e, 0x48, 0x18, 0xec, 0xb0, 0x16, 0xb1, 0x45, 0x62, 0x44, 0x70, 0x92, 0xb5, 0x58, 0x49, 0x0a,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1570 0x0a, 0xb5, 0x91, 0xb1, 0x31, 0xa1, 0x79, 0x11, 0xb5, 0x03, 0x69, 0xc9, 0x51, 0x0c, 0x50, 0x3e,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1571 0x74, 0x01, 0xaf, 0x05, 0x9d, 0x80, 0xaa, 0x0a, 0x36, 0x0a, 0x24, 0x2b, 0x00, 0xdf, 0xa2, 0xb4,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1572 0x82, 0x04, 0x13, 0x4c, 0x00, 0x02, 0x80, 0x96, 0xa1, 0xb4, 0x5d, 0xbb, 0x20, 0xd0, 0xa9, 0xe4,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1573 0x98, 0x3e, 0xd2, 0x46, 0x43, 0x03, 0x76, 0x76, 0x24, 0x17, 0x41, 0xea, 0x31, 0x3b, 0x11, 0x9f,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1574 0xe8, 0xa2, 0xe4, 0xc2, 0x46, 0x2c, 0x0a, 0x30, 0xc2, 0x44, 0x06, 0x1c, 0xac, 0x21, 0xc3, 0xd7,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1575 0x4e, 0x24, 0xe6, 0x8c, 0x02, 0x2f, 0xe8, 0x64, 0x43, 0xcd, 0x36, 0x67, 0xd7, 0x44, 0xda, 0x72,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1576 0x64, 0x21, 0x41, 0x68, 0xea, 0x96, 0xd2, 0x76, 0x74, 0xd1, 0xf8, 0x50, 0xb9, 0x16, 0xff, 0xc4,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1577 0x50, 0xb9, 0xfd, 0x32, 0xe5, 0x42, 0x90, 0x74, 0x5d, 0x69, 0xd1, 0xc2, 0x3b, 0x21, 0x6b, 0x91,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1578 0xc9, 0x0e, 0x65, 0x2c, 0x10, 0xaa, 0xe2, 0x4d, 0xc1, 0x71, 0x60, 0x32, 0xb3, 0xea, 0x59, 0x46,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1579 0x20, 0x6d, 0x6a, 0xb3, 0x00, 0x38, 0x37, 0xb4, 0x83, 0x48, 0xdd, 0x46, 0x09, 0x62, 0x42, 0x4a,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1580 0x8b, 0xd4, 0x31, 0xb1, 0x18, 0x89, 0x1c, 0x2c, 0x47, 0xbe, 0x01, 0x7a, 0xde, 0xd0, 0x18, 0x31,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1581 0xd0, 0x74, 0x43, 0x0e, 0xa0, 0x34, 0x85, 0x0a, 0x87, 0x39, 0x40, 0x02, 0xb8, 0x02, 0xe1, 0xea,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1582 0x50, 0xd8, 0x49, 0x4a, 0x00, 0x1b, 0x0d, 0x9d, 0x71, 0x96, 0xe4, 0x04, 0x53, 0x75, 0x00, 0x37,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1583 0x4a, 0x05, 0x42, 0xa5, 0x9f, 0xdb, 0x15, 0x8d, 0x61, 0x2a, 0xd0, 0xd1, 0x0c, 0x2c, 0x0b, 0x51,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1584 0xad, 0x6d, 0xf2, 0xec, 0xd0, 0x70, 0x35, 0x61, 0x69, 0x71, 0xcb, 0x7a, 0x0b, 0x65, 0x2d, 0x46,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1585 0x21, 0x11, 0x0c, 0x91, 0xce, 0x29, 0x41, 0x80, 0x68, 0x4b, 0x0e, 0xa0, 0xac, 0x35, 0x96, 0xd8,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1586 0x96, 0xd5, 0x51, 0xe7, 0x8f, 0x63, 0x44, 0x73, 0x00, 0x6e, 0xc5, 0xa5, 0x02, 0x09, 0xa8, 0x93,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1587 0xf0, 0xc2, 0xe5, 0x7e, 0xae, 0x1a, 0xd6, 0x08, 0x12, 0xc4, 0x2e, 0x01, 0x85, 0xaf, 0x66, 0x64,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1588 0x75, 0x41, 0x5f, 0xa7, 0xaa, 0xe8, 0xe6, 0xb5, 0x0b, 0x3a, 0x3a, 0x4a, 0x37, 0xe4, 0xae, 0xfb,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1589 0xbf, 0x1a, 0xf7, 0x3e, 0x18, 0x0d, 0x91, 0x0e, 0x14, 0x10, 0x00, 0x3b
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1590 };
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1591
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1592 CYG_HTTPD_DATA( cyg_monitor_ecos_logo_data,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1593 "image/gif",
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1594 sizeof(ecos_logo_gif), ecos_logo_gif );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1595
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1596 CYG_HTTPD_TABLE_ENTRY( cyg_monitor_ecos_logo,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1597 "/monitor/ecos.gif",
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1598 cyg_httpd_send_data,
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1599 &cyg_monitor_ecos_logo_data );
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1600
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1601 /*------------------------------------------------------------------ */
ca4f29d41b18 Created new HTTPD package.
nickg
parents:
diff changeset
1602 /* end of monitor.c */