From be901e957e35d24e7bf0df49187eaa2d97f48172 Mon Sep 17 00:00:00 2001 From: Adam Dunkels Date: Wed, 27 Mar 2013 21:30:25 +0100 Subject: [PATCH] The original uIP 0.9 sources --- COPYRIGHT | 36 - README | 13 +- apps/httpd/cgi.c | 76 +- apps/httpd/cgi.h | 24 +- apps/httpd/fs.c | 22 +- apps/httpd/fs.h | 39 +- apps/httpd/fs/404.html | 1 + apps/httpd/fs/about.html | 18 + apps/httpd/fs/cgi/files | 17 +- apps/httpd/fs/control.html | 14 + apps/httpd/fs/files_footer.plain | 29 +- apps/httpd/fs/files_header.html | 13 +- apps/httpd/fs/img/bg.png | Bin 0 -> 1084 bytes apps/httpd/fs/index.html | 69 +- apps/httpd/fs/stats_footer.plain | 26 - apps/httpd/fs/stats_header.html | 17 +- apps/httpd/fs/tcp_footer.plain | 30 +- apps/httpd/fs/tcp_header.html | 15 +- apps/httpd/fsdata.c | 1056 ++++++++++----------- apps/httpd/fsdata.h | 8 +- apps/httpd/httpd.c | 110 ++- apps/httpd/httpd.h | 26 +- apps/httpd/makefsdata | 8 +- apps/resolv/resolv.c | 467 ++++++++++ cc65/rs232dev.h => apps/resolv/resolv.h | 54 +- apps/smtp/makesmtpstrings | 27 + apps/smtp/smtp-strings | 9 + apps/smtp/smtp-strings.c | 27 + apps/smtp/smtp-strings.h | 9 + apps/smtp/smtp.c | 422 +++++++++ unix/uip_arch.h => apps/smtp/smtp.h | 85 +- apps/telnet/telnet.c | 151 +++ cc65/uip_arch.h => apps/telnet/telnet.h | 51 +- apps/telnetd/memb.c | 152 +++ apps/telnetd/memb.h | 43 + apps/telnetd/telnetd-shell.c | 181 ++++ apps/telnetd/telnetd.c | 392 ++++++++ apps/telnetd/telnetd.h | 114 +++ apps/webclient/http-strings | 12 + apps/webclient/http-strings.c | 39 + apps/webclient/http-strings.h | 13 + apps/webclient/makehttpstrings | 27 + apps/webclient/webclient.c | 460 +++++++++ apps/webclient/webclient.h | 207 +++++ cc65/Makefile | 70 -- cc65/README | 5 - cc65/slipdev.c | 141 --- cc65/tunslip.c | 186 ---- cc65/uip_arch.c | 299 ------ cc65/uipopt.h | 189 ---- doc/Doxyfile | 234 +++++ doc/Makefile | 5 + doc/README | 12 + doc/html/a00030.html | 33 + doc/html/a00036.html | 24 + doc/html/a00037.html | 87 ++ doc/html/a00038.html | 24 + doc/html/a00039.html | 28 + doc/html/a00041.html | 448 +++++++++ doc/html/a00046.html | 37 + doc/html/a00049.html | 43 + doc/html/a00050.html | 34 + doc/html/a00051.html | 44 + doc/html/a00052.html | 51 + doc/html/a00053.html | 41 + doc/html/a00054.html | 38 + doc/html/a00055.html | 50 + doc/html/a00056.html | 58 ++ doc/html/a00057.html | 42 + doc/html/a00058.html | 59 ++ doc/html/a00059.html | 65 ++ doc/html/a00060.html | 46 + doc/html/a00061.html | 41 + doc/html/a00062.html | 49 + doc/html/a00063.html | 70 ++ doc/html/a00064.html | 60 ++ doc/html/a00065.html | 72 ++ doc/html/a00067.html | 41 + doc/html/a00068.html | 47 + doc/html/a00069.html | 61 ++ doc/html/a00070.html | 183 ++++ doc/html/a00071.html | 50 + doc/html/a00072.html | 50 + doc/html/a00073.html | 77 ++ doc/html/a00074.html | 209 +++++ doc/html/a00075.html | 358 +++++++ doc/html/a00076.html | 269 ++++++ doc/html/a00077.html | 287 ++++++ doc/html/a00078.html | 58 ++ doc/html/a00079.html | 303 ++++++ doc/html/a00080.html | 827 +++++++++++++++++ doc/html/a00081.html | 149 +++ doc/html/a00082.html | 213 +++++ doc/html/a00083.html | 190 ++++ doc/html/a00084.html | 239 +++++ doc/html/a00084_a8_cgraph.png | Bin 0 -> 730 bytes doc/html/a00084_a9_cgraph.png | Bin 0 -> 687 bytes doc/html/a00085.html | 44 + doc/html/a00086.html | 104 +++ doc/html/a00087.html | 180 ++++ doc/html/a00088.html | 83 ++ doc/html/a00089.html | 65 ++ doc/html/a00090.html | 293 ++++++ doc/html/a00091.html | 77 ++ doc/html/a00092.html | 167 ++++ doc/html/a00093.html | 51 + doc/html/a00094.html | 44 + doc/html/a00095.html | 447 +++++++++ doc/html/a00095_a20_cgraph.png | Bin 0 -> 1263 bytes doc/html/a00096.html | 206 ++++ doc/html/a00096_a23_cgraph.png | Bin 0 -> 559 bytes doc/html/a00097.html | 344 +++++++ doc/html/a00097_a22_cgraph.png | Bin 0 -> 737 bytes doc/html/a00097_a7_cgraph.png | Bin 0 -> 985 bytes doc/html/a00097_a8_cgraph.png | Bin 0 -> 615 bytes doc/html/a00098.html | 174 ++++ doc/html/a00098_a27_cgraph.png | Bin 0 -> 686 bytes doc/html/a00099.html | 245 +++++ doc/html/a00099_a29_cgraph.png | Bin 0 -> 594 bytes doc/html/a00103.png | Bin 0 -> 2479 bytes doc/html/a00104.png | Bin 0 -> 700 bytes doc/html/a00105.png | Bin 0 -> 2175 bytes doc/html/a00106.png | Bin 0 -> 616 bytes doc/html/a00107.png | Bin 0 -> 885 bytes doc/html/a00108.png | Bin 0 -> 2302 bytes doc/html/a00109.png | Bin 0 -> 2915 bytes doc/html/a00110.png | Bin 0 -> 1279 bytes doc/html/a00111.png | Bin 0 -> 681 bytes doc/html/a00112.png | Bin 0 -> 912 bytes doc/html/a00113.png | Bin 0 -> 2118 bytes doc/html/a00114.png | Bin 0 -> 584 bytes doc/html/a00115.png | Bin 0 -> 459 bytes doc/html/a00116.png | Bin 0 -> 820 bytes doc/html/a00117.png | Bin 0 -> 788 bytes doc/html/a00118.png | Bin 0 -> 1621 bytes doc/html/a00119.png | Bin 0 -> 2041 bytes doc/html/a00120.png | Bin 0 -> 678 bytes doc/html/a00121.png | Bin 0 -> 875 bytes doc/html/a00122.png | Bin 0 -> 3031 bytes doc/html/a00123.png | Bin 0 -> 1278 bytes doc/html/a00124.png | Bin 0 -> 600 bytes doc/html/a00125.png | Bin 0 -> 725 bytes doc/html/a00126.png | Bin 0 -> 718 bytes doc/html/a00127.png | Bin 0 -> 1492 bytes doc/html/a00128.png | Bin 0 -> 542 bytes doc/html/a00129.png | Bin 0 -> 6348 bytes doc/html/a00130.png | Bin 0 -> 718 bytes doc/html/a00131.png | Bin 0 -> 461 bytes doc/html/a00132.png | Bin 0 -> 1284 bytes doc/html/a00133.png | Bin 0 -> 711 bytes doc/html/a00134.png | Bin 0 -> 495 bytes doc/html/a00135.png | Bin 0 -> 447 bytes doc/html/a00136.png | Bin 0 -> 1085 bytes doc/html/a00137.png | Bin 0 -> 756 bytes doc/html/annotated.html | 22 + doc/html/classes.html | 17 + doc/html/doxygen.css | 160 ++++ doc/html/doxygen.png | Bin 0 -> 2352 bytes doc/html/files.html | 40 + doc/html/ftv2blank.png | Bin 0 -> 174 bytes doc/html/ftv2doc.png | Bin 0 -> 255 bytes doc/html/ftv2folderclosed.png | Bin 0 -> 259 bytes doc/html/ftv2folderopen.png | Bin 0 -> 261 bytes doc/html/ftv2lastnode.png | Bin 0 -> 233 bytes doc/html/ftv2link.png | Bin 0 -> 358 bytes doc/html/ftv2mlastnode.png | Bin 0 -> 160 bytes doc/html/ftv2mnode.png | Bin 0 -> 194 bytes doc/html/ftv2node.png | Bin 0 -> 235 bytes doc/html/ftv2plastnode.png | Bin 0 -> 165 bytes doc/html/ftv2pnode.png | Bin 0 -> 200 bytes doc/html/ftv2vertline.png | Bin 0 -> 229 bytes doc/html/functions.html | 95 ++ doc/html/functions_vars.html | 95 ++ doc/html/globals.html | 197 ++++ doc/html/globals_defs.html | 122 +++ doc/html/globals_func.html | 98 ++ doc/html/globals_type.html | 21 + doc/html/globals_vars.html | 23 + doc/html/graph_legend.dot | 22 + doc/html/graph_legend.html | 75 ++ doc/html/graph_legend.png | Bin 0 -> 3915 bytes doc/html/index.hhc | 126 +++ doc/html/index.hhk | 725 +++++++++++++++ doc/html/index.hhp | 86 ++ doc/html/index.html | 8 + doc/html/main.html | 351 +++++++ doc/html/modules.html | 46 + doc/html/tree.html | 191 ++++ doc/mobisys2003.pdf | Bin 0 -> 87513 bytes doc/uip-doc.txt | 911 ++++++++++++++++++ doc/uip-refman.pdf | Bin 0 -> 773550 bytes cc65/rs232dev.c => uip/slipdev.c | 179 ++-- cc65/main.c => uip/slipdev.h | 100 +- uip/uip.c | 1136 ++++++++++++++++------- uip/uip.h | 918 ++++++++++++++---- uip/uip_arch.h | 130 +++ uip/uip_arp.c | 287 ++++-- uip/uip_arp.h | 124 ++- unix/Makefile | 29 +- unix/main.c | 55 +- unix/tapdev.c | 57 +- unix/tapdev.h | 7 +- unix/uip_arch.c | 110 +-- unix/uipopt.h | 610 +++++++++--- 204 files changed, 17733 insertions(+), 2869 deletions(-) delete mode 100644 COPYRIGHT create mode 100644 apps/httpd/fs/404.html create mode 100644 apps/httpd/fs/about.html create mode 100644 apps/httpd/fs/control.html create mode 100644 apps/httpd/fs/img/bg.png create mode 100644 apps/resolv/resolv.c rename cc65/rs232dev.h => apps/resolv/resolv.h (59%) create mode 100755 apps/smtp/makesmtpstrings create mode 100644 apps/smtp/smtp-strings create mode 100644 apps/smtp/smtp-strings.c create mode 100644 apps/smtp/smtp-strings.h create mode 100644 apps/smtp/smtp.c rename unix/uip_arch.h => apps/smtp/smtp.h (53%) create mode 100644 apps/telnet/telnet.c rename cc65/uip_arch.h => apps/telnet/telnet.h (58%) create mode 100644 apps/telnetd/memb.c create mode 100644 apps/telnetd/memb.h create mode 100644 apps/telnetd/telnetd-shell.c create mode 100644 apps/telnetd/telnetd.c create mode 100644 apps/telnetd/telnetd.h create mode 100644 apps/webclient/http-strings create mode 100644 apps/webclient/http-strings.c create mode 100644 apps/webclient/http-strings.h create mode 100755 apps/webclient/makehttpstrings create mode 100644 apps/webclient/webclient.c create mode 100644 apps/webclient/webclient.h delete mode 100644 cc65/Makefile delete mode 100644 cc65/README delete mode 100644 cc65/slipdev.c delete mode 100644 cc65/tunslip.c delete mode 100644 cc65/uip_arch.c delete mode 100644 cc65/uipopt.h create mode 100644 doc/Doxyfile create mode 100644 doc/Makefile create mode 100644 doc/README create mode 100644 doc/html/a00030.html create mode 100644 doc/html/a00036.html create mode 100644 doc/html/a00037.html create mode 100644 doc/html/a00038.html create mode 100644 doc/html/a00039.html create mode 100644 doc/html/a00041.html create mode 100644 doc/html/a00046.html create mode 100644 doc/html/a00049.html create mode 100644 doc/html/a00050.html create mode 100644 doc/html/a00051.html create mode 100644 doc/html/a00052.html create mode 100644 doc/html/a00053.html create mode 100644 doc/html/a00054.html create mode 100644 doc/html/a00055.html create mode 100644 doc/html/a00056.html create mode 100644 doc/html/a00057.html create mode 100644 doc/html/a00058.html create mode 100644 doc/html/a00059.html create mode 100644 doc/html/a00060.html create mode 100644 doc/html/a00061.html create mode 100644 doc/html/a00062.html create mode 100644 doc/html/a00063.html create mode 100644 doc/html/a00064.html create mode 100644 doc/html/a00065.html create mode 100644 doc/html/a00067.html create mode 100644 doc/html/a00068.html create mode 100644 doc/html/a00069.html create mode 100644 doc/html/a00070.html create mode 100644 doc/html/a00071.html create mode 100644 doc/html/a00072.html create mode 100644 doc/html/a00073.html create mode 100644 doc/html/a00074.html create mode 100644 doc/html/a00075.html create mode 100644 doc/html/a00076.html create mode 100644 doc/html/a00077.html create mode 100644 doc/html/a00078.html create mode 100644 doc/html/a00079.html create mode 100644 doc/html/a00080.html create mode 100644 doc/html/a00081.html create mode 100644 doc/html/a00082.html create mode 100644 doc/html/a00083.html create mode 100644 doc/html/a00084.html create mode 100644 doc/html/a00084_a8_cgraph.png create mode 100644 doc/html/a00084_a9_cgraph.png create mode 100644 doc/html/a00085.html create mode 100644 doc/html/a00086.html create mode 100644 doc/html/a00087.html create mode 100644 doc/html/a00088.html create mode 100644 doc/html/a00089.html create mode 100644 doc/html/a00090.html create mode 100644 doc/html/a00091.html create mode 100644 doc/html/a00092.html create mode 100644 doc/html/a00093.html create mode 100644 doc/html/a00094.html create mode 100644 doc/html/a00095.html create mode 100644 doc/html/a00095_a20_cgraph.png create mode 100644 doc/html/a00096.html create mode 100644 doc/html/a00096_a23_cgraph.png create mode 100644 doc/html/a00097.html create mode 100644 doc/html/a00097_a22_cgraph.png create mode 100644 doc/html/a00097_a7_cgraph.png create mode 100644 doc/html/a00097_a8_cgraph.png create mode 100644 doc/html/a00098.html create mode 100644 doc/html/a00098_a27_cgraph.png create mode 100644 doc/html/a00099.html create mode 100644 doc/html/a00099_a29_cgraph.png create mode 100644 doc/html/a00103.png create mode 100644 doc/html/a00104.png create mode 100644 doc/html/a00105.png create mode 100644 doc/html/a00106.png create mode 100644 doc/html/a00107.png create mode 100644 doc/html/a00108.png create mode 100644 doc/html/a00109.png create mode 100644 doc/html/a00110.png create mode 100644 doc/html/a00111.png create mode 100644 doc/html/a00112.png create mode 100644 doc/html/a00113.png create mode 100644 doc/html/a00114.png create mode 100644 doc/html/a00115.png create mode 100644 doc/html/a00116.png create mode 100644 doc/html/a00117.png create mode 100644 doc/html/a00118.png create mode 100644 doc/html/a00119.png create mode 100644 doc/html/a00120.png create mode 100644 doc/html/a00121.png create mode 100644 doc/html/a00122.png create mode 100644 doc/html/a00123.png create mode 100644 doc/html/a00124.png create mode 100644 doc/html/a00125.png create mode 100644 doc/html/a00126.png create mode 100644 doc/html/a00127.png create mode 100644 doc/html/a00128.png create mode 100644 doc/html/a00129.png create mode 100644 doc/html/a00130.png create mode 100644 doc/html/a00131.png create mode 100644 doc/html/a00132.png create mode 100644 doc/html/a00133.png create mode 100644 doc/html/a00134.png create mode 100644 doc/html/a00135.png create mode 100644 doc/html/a00136.png create mode 100644 doc/html/a00137.png create mode 100644 doc/html/annotated.html create mode 100644 doc/html/classes.html create mode 100644 doc/html/doxygen.css create mode 100644 doc/html/doxygen.png create mode 100644 doc/html/files.html create mode 100644 doc/html/ftv2blank.png create mode 100644 doc/html/ftv2doc.png create mode 100644 doc/html/ftv2folderclosed.png create mode 100644 doc/html/ftv2folderopen.png create mode 100644 doc/html/ftv2lastnode.png create mode 100644 doc/html/ftv2link.png create mode 100644 doc/html/ftv2mlastnode.png create mode 100644 doc/html/ftv2mnode.png create mode 100644 doc/html/ftv2node.png create mode 100644 doc/html/ftv2plastnode.png create mode 100644 doc/html/ftv2pnode.png create mode 100644 doc/html/ftv2vertline.png create mode 100644 doc/html/functions.html create mode 100644 doc/html/functions_vars.html create mode 100644 doc/html/globals.html create mode 100644 doc/html/globals_defs.html create mode 100644 doc/html/globals_func.html create mode 100644 doc/html/globals_type.html create mode 100644 doc/html/globals_vars.html create mode 100644 doc/html/graph_legend.dot create mode 100644 doc/html/graph_legend.html create mode 100644 doc/html/graph_legend.png create mode 100644 doc/html/index.hhc create mode 100644 doc/html/index.hhk create mode 100644 doc/html/index.hhp create mode 100644 doc/html/index.html create mode 100644 doc/html/main.html create mode 100644 doc/html/modules.html create mode 100644 doc/html/tree.html create mode 100644 doc/mobisys2003.pdf create mode 100644 doc/uip-doc.txt create mode 100644 doc/uip-refman.pdf rename cc65/rs232dev.c => uip/slipdev.c (55%) rename cc65/main.c => uip/slipdev.h (50%) create mode 100644 uip/uip_arch.h diff --git a/COPYRIGHT b/COPYRIGHT deleted file mode 100644 index 5cab33c..0000000 --- a/COPYRIGHT +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (c) 2001, Adam Dunkels. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Adam Dunkels. - * 4. The name of the author may not be used to endorse or promote - * products derived from this software without specific prior - * written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS - * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE - * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, - * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * This file is part of the uIP TCP/IP stack. - * - * $Id: COPYRIGHT,v 1.3 2002/01/15 18:08:43 adam Exp $ - * - */ diff --git a/README b/README index 3891938..0cbcb2f 100644 --- a/README +++ b/README @@ -1,12 +1,11 @@ uIP is a very small implementation of the TCP/IP stack that is written by Adam Dunkels . More information can be obtained -at the uIP homepage at . - -This is version $Name: uip-0-6 $. +at the uIP homepage at + http://dunkels.com/adam/uip/ The directory structure look as follows: -apps/ - contains some sample applications -cc65/ - uIP for the 6502 CPU -uip/ - actual uIP TCP/IP and ARP code -unix - uIP as a user space process under FreeBSD or Linux +apps/ - example applications +doc/ - documentation +uip/ - actual uIP TCP/IP, SLIP and ARP code +unix/ - Example of how to run uIP as a user space process under FreeBSD or Linux diff --git a/apps/httpd/cgi.c b/apps/httpd/cgi.c index 82c46a5..adb53e9 100644 --- a/apps/httpd/cgi.c +++ b/apps/httpd/cgi.c @@ -1,3 +1,22 @@ +/** + * \addtogroup httpd + * @{ + */ + +/** + * \file + * HTTP server script language C functions file. + * \author Adam Dunkels + * + * This file contains functions that are called by the web server + * scripts. The functions takes one argument, and the return value is + * interpreted as follows. A zero means that the function did not + * complete and should be invoked for the next packet as well. A + * non-zero value indicates that the function has completed and that + * the web server should move along to the next script line. + * + */ + /* * Copyright (c) 2001, Adam Dunkels. * All rights reserved. @@ -10,10 +29,7 @@ * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Adam Dunkels. - * 4. The name of the author may not be used to endorse or promote + * 3. The name of the author may not be used to endorse or promote * products derived from this software without specific prior * written permission. * @@ -31,17 +47,7 @@ * * This file is part of the uIP TCP/IP stack. * - * $Id: cgi.c,v 1.21 2002/01/13 21:12:40 adam Exp $ - * - */ - -/* - * This file includes functions that are called by the web server - * scripts. The functions takes no argument, and the return value is - * interpreted as follows. A zero means that the function did not - * complete and should be invoked for the next packet as well. A - * non-zero value indicates that the function has completed and that - * the web server should move along to the next script line. + * $Id: cgi.c,v 1.23.2.4 2003/10/07 13:22:27 adam Exp $ * */ @@ -53,9 +59,9 @@ #include #include -static u8_t print_stats(void); -static u8_t file_stats(void); -static u8_t tcp_stats(void); +static u8_t print_stats(u8_t next); +static u8_t file_stats(u8_t next); +static u8_t tcp_stats(u8_t next); cgifunction cgitab[] = { print_stats, /* CGI function "a" */ @@ -110,14 +116,14 @@ static const char *states[] = { * packet. */ static u8_t -print_stats(void) +print_stats(u8_t next) { #if UIP_STATISTICS u16_t i, j; u8_t *buf; u16_t *databytes; - if(uip_acked()) { + if(next) { /* If our last data has been acknowledged, we move on the next chunk of statistics. */ hs->count = hs->count + 4; @@ -151,12 +157,12 @@ print_stats(void) } /*-----------------------------------------------------------------------------------*/ static u8_t -file_stats(void) +file_stats(u8_t next) { /* We use sprintf() to print the number of file accesses to a particular file (given as an argument to the function in the script). We then use uip_send() to actually send the data. */ - if(uip_acked()) { + if(next) { return 1; } uip_send(uip_appdata, sprintf((char *)uip_appdata, "%5u", fs_count(&hs->script[4]))); @@ -164,11 +170,11 @@ file_stats(void) } /*-----------------------------------------------------------------------------------*/ static u8_t -tcp_stats(void) +tcp_stats(u8_t next) { struct uip_conn *conn; - if(uip_acked()) { + if(next) { /* If the previously sent data has been acknowledged, we move forward one connection. */ if(++hs->count == UIP_CONNS) { @@ -181,24 +187,24 @@ tcp_stats(void) conn = &uip_conns[hs->count]; if((conn->tcpstateflags & TS_MASK) == CLOSED) { uip_send(uip_appdata, sprintf((char *)uip_appdata, - "--%d%d%c %c\r\n", + "--%u%u%c %c\r\n", conn->nrtx, conn->timer, - (conn->tcpstateflags & UIP_OUTSTANDING)? '*':' ', - (conn->tcpstateflags & UIP_STOPPED)? '!':' ')); + (uip_outstanding(conn))? '*':' ', + (uip_stopped(conn))? '!':' ')); } else { uip_send(uip_appdata, sprintf((char *)uip_appdata, - "%d.%d.%d.%d:%d%s%d%d%c %c\r\n", - ntohs(conn->ripaddr[0]) >> 8, - ntohs(conn->ripaddr[0]) & 0xff, - ntohs(conn->ripaddr[1]) >> 8, - ntohs(conn->ripaddr[1]) & 0xff, - ntohs(conn->rport), + "%u.%u.%u.%u:%u%s%u%u%c %c\r\n", + htons(conn->ripaddr[0]) >> 8, + htons(conn->ripaddr[0]) & 0xff, + htons(conn->ripaddr[1]) >> 8, + htons(conn->ripaddr[1]) & 0xff, + htons(conn->rport), states[conn->tcpstateflags & TS_MASK], conn->nrtx, conn->timer, - (conn->tcpstateflags & UIP_OUTSTANDING)? '*':' ', - (conn->tcpstateflags & UIP_STOPPED)? '!':' ')); + (uip_outstanding(conn))? '*':' ', + (uip_stopped(conn))? '!':' ')); } return 0; } diff --git a/apps/httpd/cgi.h b/apps/httpd/cgi.h index ccac8a0..dbc98f7 100644 --- a/apps/httpd/cgi.h +++ b/apps/httpd/cgi.h @@ -1,3 +1,14 @@ +/** + * \addtogroup httpd + * @{ + */ + +/** + * \file + * HTTP script language header file. + * \author Adam Dunkels + */ + /* * Copyright (c) 2001, Adam Dunkels. * All rights reserved. @@ -10,10 +21,7 @@ * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Adam Dunkels. - * 4. The name of the author may not be used to endorse or promote + * 3. The name of the author may not be used to endorse or promote * products derived from this software without specific prior * written permission. * @@ -31,15 +39,19 @@ * * This file is part of the uIP TCP/IP stack. * - * $Id: cgi.h,v 1.3 2002/01/10 19:18:12 adam Exp $ + * $Id: cgi.h,v 1.3.2.4 2003/10/07 13:22:27 adam Exp $ * */ #ifndef __CGI_H__ #define __CGI_H__ -typedef u8_t (* cgifunction)(void); +typedef u8_t (* cgifunction)(u8_t next); +/** + * A table containing pointers to C functions that can be called from + * a web server script. + */ extern cgifunction cgitab[]; #endif /* __CGI_H__ */ diff --git a/apps/httpd/fs.c b/apps/httpd/fs.c index 26bc0a5..6b18545 100644 --- a/apps/httpd/fs.c +++ b/apps/httpd/fs.c @@ -1,3 +1,16 @@ +/** + * \addtogroup httpd + * @{ + */ + +/** + * \file + * HTTP server read-only file system code. + * \author Adam Dunkels + * + * A simple read-only filesystem. + */ + /* * Copyright (c) 2001, Swedish Institute of Computer Science. * All rights reserved. @@ -10,11 +23,7 @@ * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the Swedish Institute - * of Computer Science and its contributors. - * 4. Neither the name of the Institute nor the names of its contributors + * 3. Neither the name of the Institute nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * @@ -34,10 +43,11 @@ * * Author: Adam Dunkels * - * $Id: fs.c,v 1.6 2001/11/25 18:47:36 adam Exp $ + * $Id: fs.c,v 1.7.2.3 2003/10/07 13:22:27 adam Exp $ */ #include "uip.h" +#include "httpd.h" #include "fs.h" #include "fsdata.h" diff --git a/apps/httpd/fs.h b/apps/httpd/fs.h index 88ac2d9..2d9693b 100644 --- a/apps/httpd/fs.h +++ b/apps/httpd/fs.h @@ -1,3 +1,14 @@ +/** + * \addtogroup httpd + * @{ + */ + +/** + * \file + * HTTP server read-only file system header file. + * \author Adam Dunkels + */ + /* * Copyright (c) 2001, Swedish Institute of Computer Science. * All rights reserved. @@ -10,11 +21,7 @@ * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the Swedish Institute - * of Computer Science and its contributors. - * 4. Neither the name of the Institute nor the names of its contributors + * 3. Neither the name of the Institute nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * @@ -34,20 +41,29 @@ * * Author: Adam Dunkels * - * $Id: fs.h,v 1.6 2001/11/25 18:47:36 adam Exp $ + * $Id: fs.h,v 1.6.2.3 2003/10/07 13:22:27 adam Exp $ */ #ifndef __FS_H__ #define __FS_H__ #include "uip.h" +/** + * An open file in the read-only file system. + */ struct fs_file { - char *data; - int len; + char *data; /**< The actual file data. */ + int len; /**< The length of the file data. */ }; -/* file must be allocated by caller and will be filled in - by the function. */ +/** + * Open a file in the read-only file system. + * + * \param name The name of the file. + * + * \param file The file pointer, which must be allocated by caller and + * will be filled in by the function. + */ int fs_open(const char *name, struct fs_file *file); #ifdef FS_STATISTICS @@ -56,6 +72,9 @@ u16_t fs_count(char *name); #endif /* FS_STATISTICS */ #endif /* FS_STATISTICS */ +/** + * Initialize the read-only file system. + */ void fs_init(void); #endif /* __FS_H__ */ diff --git a/apps/httpd/fs/404.html b/apps/httpd/fs/404.html new file mode 100644 index 0000000..8d6beec --- /dev/null +++ b/apps/httpd/fs/404.html @@ -0,0 +1 @@ +

404 - file not found

\ No newline at end of file diff --git a/apps/httpd/fs/about.html b/apps/httpd/fs/about.html new file mode 100644 index 0000000..0d0dd6f --- /dev/null +++ b/apps/httpd/fs/about.html @@ -0,0 +1,18 @@ + + +
+
+

Welcome

+

+These web pages are served by the small web server running on top of +the uIP TCP/IP +stack. +

+

+Click on the links above to see some status information about the web +server and the TCP/IP stack. +

+
+
+ + \ No newline at end of file diff --git a/apps/httpd/fs/cgi/files b/apps/httpd/fs/cgi/files index e07e86d..b9d929b 100644 --- a/apps/httpd/fs/cgi/files +++ b/apps/httpd/fs/cgi/files @@ -7,14 +7,19 @@ i /files_header.html # the access statistics of that file. t /index.html c b /index.html -t -t /cgi/files +t /about.html +c b /about.html +t /control.html +c b /control.html +t /img/bg.png +c b /img/bg.png +t /404.html +c b /404.html +t /cgi/files c b /cgi/files -t -t /cgi/stats +t /cgi/stats c b /cgi/stats -t -t /cgi/tcp +t /cgi/tcp c b /cgi/tcp t # Include the HTML footer. diff --git a/apps/httpd/fs/control.html b/apps/httpd/fs/control.html new file mode 100644 index 0000000..2327497 --- /dev/null +++ b/apps/httpd/fs/control.html @@ -0,0 +1,14 @@ + + +
+
+

uIP web server test pages

+[ About | +Connections | +Files | +Statistics ] +
+
+ + \ No newline at end of file diff --git a/apps/httpd/fs/files_footer.plain b/apps/httpd/fs/files_footer.plain index b3bd3ed..8e7b84f 100644 --- a/apps/httpd/fs/files_footer.plain +++ b/apps/httpd/fs/files_footer.plain @@ -1,30 +1,3 @@ - - - - -

- -$Date: 2001/11/24 15:43:36 $ - -

- - - - - -  - - - - - - - -
-
-© -Copyright Adam Dunkels 2001
- + diff --git a/apps/httpd/fs/files_header.html b/apps/httpd/fs/files_header.html index 33aba5f..9e3ef68 100644 --- a/apps/httpd/fs/files_header.html +++ b/apps/httpd/fs/files_header.html @@ -1,15 +1,4 @@ -uIP web server page hits - - - - - - -
-
uIP web server page hits
-
 
-
- +
diff --git a/apps/httpd/fs/img/bg.png b/apps/httpd/fs/img/bg.png new file mode 100644 index 0000000000000000000000000000000000000000..18533b36947070d5721b7a8f39134a5368d72dff GIT binary patch literal 1084 zcmeAS@N?(olHy`uVBq!ia0y~yV3q~4<2cxWq}$%gGeC+h$=lt9;Xep2*t>i(P=vF< zBeIx*fm;ZK886+f`vVkYFY)wsWxveDDx_qrbfIPzP)N4KHKN2hKQ}iuuY|$5C^fMp zHASI3vm`?yBqLS9-P1SVeTr%x(9Q*(E{-7;x8B}8ST@T+q9IWIIBU+uRH-*FfA4pl zr+jsbccJ86-|1#uY%)y>-``DIVb7ECYoRS?{(AYsGPN^#qVvw}7k^ynvg7Z<$yalu z>kkXRmuuUs8=HIkQ}{HK^54HFl>C2se#_6@zPJ7?Iy33omZuiJD}p*26| ze?g6I)Rdne%Km1WSq9&E?)XPe;^BM8V;^f)+WJ3kmjAO+PW&_r14D)}&`%c`85lbF z7#JK%fE+ku5i?W-g&`ozAj>t4fx(3xDC_<3?N{Y%HNU^HuQ@qGqF?!t?D~|pYPGOO zb>+MAWaXQePUoP-}_I&lT>+gMk z>o#9z@*~UdDhvrmdoE)Qoql=QyZ?UPlvo@Jbmzr`DJ^~SdJ(|11_~Frv*8R-pu!#2 z0CLieT)y(T`(u}%1;*Ht-{Gde??3DJ6-(Xyb9sMk?ziXW9Uo6I*ZeE`ILW$`ae?A{ zP|Seh0T}#1M)I0lHRpgV7xo8{ybM2{b22bAyZ}moEQd3|mSZ@lp>aku(*v>FUl)G+ zt@y>be!JzC-Oe5J_r*-9y!7W)?ftwzCspS?+PVK{>G35$CIT&g(OV9Q1?S7xuhzU~ z0tNKGKEw4}z$pdpDL4Z&5ha*h6l`JzI_)B(vtke<*p&yupG{+sSiI;=)ZKqy9?!j+ zR$tdFvEIgE`|bU|cl+=9|47w;_W$J%|8W0~wRwJj-~WfFQa9Q?i?{tR^qkoT<|0U9 q#bdKWiHYzNQKU2tPu#*E`BfIitaiLHX$dgg7(8A5T-G@yGywp+{Ey54 literal 0 HcmV?d00001 diff --git a/apps/httpd/fs/index.html b/apps/httpd/fs/index.html index 40ff844..a8aa4d8 100644 --- a/apps/httpd/fs/index.html +++ b/apps/httpd/fs/index.html @@ -1,65 +1,14 @@ uIP web server test page - -
- - - - - - -
-
uIP web server test page
-
 
-
- -

-This is a simple test page for the HTTP server running on top of the -uIP TCP/IP stack. This page is served by the small web server. -

- -

-The web server also supports a few virtual pages:
-

  • -/cgi/files which shows individual page -hits.
    - -
  • -/cgi/tcp which shows current TCP connection -states.
    - -
  • -/cgi/stats which shows uIP TCP/IP -statistics.
    -

    - -

    -For more information, see the uIP home page. -

    - -

    - -$Date: 2001/11/24 15:43:36 $ - -

    - - -
  • - -
     
    - - - - - - -
    -
    -© -Copyright Adam Dunkels 2001
    + + + + + +<body> +Your browser must support frames </body> -</html> + + \ No newline at end of file diff --git a/apps/httpd/fs/stats_footer.plain b/apps/httpd/fs/stats_footer.plain index 40a4bab..8e7b84f 100644 --- a/apps/httpd/fs/stats_footer.plain +++ b/apps/httpd/fs/stats_footer.plain @@ -1,29 +1,3 @@
    - - -

    - -$Date: 2001/11/24 15:43:36 $ - -

    - - -
    - - -  - - - - - - - -
    -
    -© -Copyright Adam Dunkels 2001
    - diff --git a/apps/httpd/fs/stats_header.html b/apps/httpd/fs/stats_header.html index 4dc088c..e2e07ba 100644 --- a/apps/httpd/fs/stats_header.html +++ b/apps/httpd/fs/stats_header.html @@ -1,19 +1,8 @@ -uIP TCP/IP statistics - - - - - - - - -
    -
    uIP TCP/IP statistics
    -
     
    -
    -
    -
    + +
     IP           Packets dropped
                  Packets received
    @@ -38,4 +27,4 @@ TCP          Packets dropped
     	     No connection avaliable
     	     Connection attempts to closed ports
     
    -
    +
    \ No newline at end of file
    diff --git a/apps/httpd/fs/tcp_footer.plain b/apps/httpd/fs/tcp_footer.plain
    index 898a866..9be88c0 100644
    --- a/apps/httpd/fs/tcp_footer.plain
    +++ b/apps/httpd/fs/tcp_footer.plain
    @@ -1,31 +1,5 @@
     
    -
    +
    - - -

    - -$Date: 2001/11/24 15:43:36 $ - -

    - - -
    - -
     
    - - - - - - -
    -
    -© -Copyright Adam Dunkels 2001
    - - + \ No newline at end of file diff --git a/apps/httpd/fs/tcp_header.html b/apps/httpd/fs/tcp_header.html index 5694410..595e99c 100644 --- a/apps/httpd/fs/tcp_header.html +++ b/apps/httpd/fs/tcp_header.html @@ -1,19 +1,6 @@ -uIP TCP connection states - - - - - - -
    -
    uIP TCP connection states
    -
     
    -
    -
    - - +
    diff --git a/apps/httpd/fsdata.c b/apps/httpd/fsdata.c index a9c4277..3c41ef3 100644 --- a/apps/httpd/fsdata.c +++ b/apps/httpd/fsdata.c @@ -1,12 +1,3 @@ -static const char data_cgi_stats[] = { - /* /cgi/stats */ - 0x2f, 0x63, 0x67, 0x69, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x73, 0, - 0x69, 0x20, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x73, 0x5f, 0x68, - 0x65, 0x61, 0x64, 0x65, 0x72, 0x2e, 0x68, 0x74, 0x6d, 0x6c, - 0xa, 0x63, 0x20, 0x61, 0xa, 0x69, 0x20, 0x2f, 0x73, 0x74, - 0x61, 0x74, 0x73, 0x5f, 0x66, 0x6f, 0x6f, 0x74, 0x65, 0x72, - 0x2e, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0xa, 0x2e, 0xa, }; - static const char data_cgi_files[] = { /* /cgi/files */ 0x2f, 0x63, 0x67, 0x69, 0x2f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0, @@ -43,24 +34,57 @@ static const char data_cgi_files[] = { 0x3e, 0x3c, 0x74, 0x64, 0x3e, 0xa, 0x63, 0x20, 0x62, 0x20, 0x2f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x68, 0x74, 0x6d, 0x6c, 0xa, 0x74, 0x20, 0x3c, 0x2f, 0x74, 0x64, 0x3e, 0x3c, - 0x2f, 0x74, 0x72, 0x3e, 0xa, 0x74, 0x20, 0x3c, 0x74, 0x72, - 0x3e, 0x3c, 0x74, 0x64, 0x3e, 0x3c, 0x61, 0x20, 0x68, 0x72, - 0x65, 0x66, 0x3d, 0x22, 0x2f, 0x63, 0x67, 0x69, 0x2f, 0x66, - 0x69, 0x6c, 0x65, 0x73, 0x22, 0x3e, 0x2f, 0x63, 0x67, 0x69, - 0x2f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x3c, 0x2f, 0x61, 0x3e, + 0x2f, 0x74, 0x72, 0x3e, 0x20, 0x3c, 0x74, 0x72, 0x3e, 0x3c, + 0x74, 0x64, 0x3e, 0x3c, 0x61, 0x20, 0x68, 0x72, 0x65, 0x66, + 0x3d, 0x22, 0x2f, 0x61, 0x62, 0x6f, 0x75, 0x74, 0x2e, 0x68, + 0x74, 0x6d, 0x6c, 0x22, 0x3e, 0x2f, 0x61, 0x62, 0x6f, 0x75, + 0x74, 0x2e, 0x68, 0x74, 0x6d, 0x6c, 0x3c, 0x2f, 0x61, 0x3e, 0x3c, 0x2f, 0x74, 0x64, 0x3e, 0x3c, 0x74, 0x64, 0x3e, 0xa, - 0x63, 0x20, 0x62, 0x20, 0x2f, 0x63, 0x67, 0x69, 0x2f, 0x66, - 0x69, 0x6c, 0x65, 0x73, 0xa, 0x74, 0x20, 0x3c, 0x2f, 0x74, - 0x64, 0x3e, 0x3c, 0x2f, 0x74, 0x72, 0x3e, 0xa, 0x74, 0x20, - 0x3c, 0x74, 0x72, 0x3e, 0x3c, 0x74, 0x64, 0x3e, 0x3c, 0x61, - 0x20, 0x68, 0x72, 0x65, 0x66, 0x3d, 0x22, 0x2f, 0x63, 0x67, - 0x69, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x73, 0x22, 0x3e, 0x2f, - 0x63, 0x67, 0x69, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x73, 0x3c, - 0x2f, 0x61, 0x3e, 0x3c, 0x2f, 0x74, 0x64, 0x3e, 0x3c, 0x74, - 0x64, 0x3e, 0xa, 0x63, 0x20, 0x62, 0x20, 0x2f, 0x63, 0x67, - 0x69, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x73, 0xa, 0x74, 0x20, + 0x63, 0x20, 0x62, 0x20, 0x2f, 0x61, 0x62, 0x6f, 0x75, 0x74, + 0x2e, 0x68, 0x74, 0x6d, 0x6c, 0xa, 0x74, 0x20, 0x3c, 0x2f, + 0x74, 0x64, 0x3e, 0x3c, 0x2f, 0x74, 0x72, 0x3e, 0x20, 0x3c, + 0x74, 0x72, 0x3e, 0x3c, 0x74, 0x64, 0x3e, 0x3c, 0x61, 0x20, + 0x68, 0x72, 0x65, 0x66, 0x3d, 0x22, 0x2f, 0x63, 0x6f, 0x6e, + 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x68, 0x74, 0x6d, 0x6c, 0x22, + 0x3e, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, + 0x68, 0x74, 0x6d, 0x6c, 0x3c, 0x2f, 0x61, 0x3e, 0x3c, 0x2f, + 0x74, 0x64, 0x3e, 0x3c, 0x74, 0x64, 0x3e, 0xa, 0x63, 0x20, + 0x62, 0x20, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, + 0x2e, 0x68, 0x74, 0x6d, 0x6c, 0xa, 0x74, 0x20, 0x3c, 0x2f, + 0x74, 0x64, 0x3e, 0x3c, 0x2f, 0x74, 0x72, 0x3e, 0x20, 0x3c, + 0x74, 0x72, 0x3e, 0x3c, 0x74, 0x64, 0x3e, 0x3c, 0x61, 0x20, + 0x68, 0x72, 0x65, 0x66, 0x3d, 0x22, 0x2f, 0x69, 0x6d, 0x67, + 0x2f, 0x62, 0x67, 0x2e, 0x70, 0x6e, 0x67, 0x22, 0x3e, 0x2f, + 0x69, 0x6d, 0x67, 0x2f, 0x62, 0x67, 0x2e, 0x70, 0x6e, 0x67, + 0x3c, 0x2f, 0x61, 0x3e, 0x3c, 0x2f, 0x74, 0x64, 0x3e, 0x3c, + 0x74, 0x64, 0x3e, 0xa, 0x63, 0x20, 0x62, 0x20, 0x2f, 0x69, + 0x6d, 0x67, 0x2f, 0x62, 0x67, 0x2e, 0x70, 0x6e, 0x67, 0xa, + 0x74, 0x20, 0x3c, 0x2f, 0x74, 0x64, 0x3e, 0x3c, 0x2f, 0x74, + 0x72, 0x3e, 0x20, 0x3c, 0x74, 0x72, 0x3e, 0x3c, 0x74, 0x64, + 0x3e, 0x3c, 0x61, 0x20, 0x68, 0x72, 0x65, 0x66, 0x3d, 0x22, + 0x2f, 0x34, 0x30, 0x34, 0x2e, 0x68, 0x74, 0x6d, 0x6c, 0x22, + 0x3e, 0x2f, 0x34, 0x30, 0x34, 0x2e, 0x68, 0x74, 0x6d, 0x6c, + 0x3c, 0x2f, 0x61, 0x3e, 0x3c, 0x2f, 0x74, 0x64, 0x3e, 0x3c, + 0x74, 0x64, 0x3e, 0xa, 0x63, 0x20, 0x62, 0x20, 0x2f, 0x34, + 0x30, 0x34, 0x2e, 0x68, 0x74, 0x6d, 0x6c, 0xa, 0x74, 0x20, 0x3c, 0x2f, 0x74, 0x64, 0x3e, 0x3c, 0x2f, 0x74, 0x72, 0x3e, - 0xa, 0x74, 0x20, 0x3c, 0x74, 0x72, 0x3e, 0x3c, 0x74, 0x64, + 0x20, 0x3c, 0x74, 0x72, 0x3e, 0x3c, 0x74, 0x64, 0x3e, 0x3c, + 0x61, 0x20, 0x68, 0x72, 0x65, 0x66, 0x3d, 0x22, 0x2f, 0x63, + 0x67, 0x69, 0x2f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x22, 0x3e, + 0x2f, 0x63, 0x67, 0x69, 0x2f, 0x66, 0x69, 0x6c, 0x65, 0x73, + 0x3c, 0x2f, 0x61, 0x3e, 0x3c, 0x2f, 0x74, 0x64, 0x3e, 0x3c, + 0x74, 0x64, 0x3e, 0xa, 0x63, 0x20, 0x62, 0x20, 0x2f, 0x63, + 0x67, 0x69, 0x2f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0xa, 0x74, + 0x20, 0x3c, 0x2f, 0x74, 0x64, 0x3e, 0x3c, 0x2f, 0x74, 0x72, + 0x3e, 0x20, 0x3c, 0x74, 0x72, 0x3e, 0x3c, 0x74, 0x64, 0x3e, + 0x3c, 0x61, 0x20, 0x68, 0x72, 0x65, 0x66, 0x3d, 0x22, 0x2f, + 0x63, 0x67, 0x69, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x73, 0x22, + 0x3e, 0x2f, 0x63, 0x67, 0x69, 0x2f, 0x73, 0x74, 0x61, 0x74, + 0x73, 0x3c, 0x2f, 0x61, 0x3e, 0x3c, 0x2f, 0x74, 0x64, 0x3e, + 0x3c, 0x74, 0x64, 0x3e, 0xa, 0x63, 0x20, 0x62, 0x20, 0x2f, + 0x63, 0x67, 0x69, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x73, 0xa, + 0x74, 0x20, 0x3c, 0x2f, 0x74, 0x64, 0x3e, 0x3c, 0x2f, 0x74, + 0x72, 0x3e, 0x20, 0x3c, 0x74, 0x72, 0x3e, 0x3c, 0x74, 0x64, 0x3e, 0x3c, 0x61, 0x20, 0x68, 0x72, 0x65, 0x66, 0x3d, 0x22, 0x2f, 0x63, 0x67, 0x69, 0x2f, 0x74, 0x63, 0x70, 0x22, 0x3e, 0x2f, 0x63, 0x67, 0x69, 0x2f, 0x74, 0x63, 0x70, 0x3c, 0x2f, @@ -76,6 +100,15 @@ static const char data_cgi_files[] = { 0x6e, 0x64, 0x20, 0x6f, 0x66, 0x20, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x2e, 0xa, 0x2e, }; +static const char data_cgi_stats[] = { + /* /cgi/stats */ + 0x2f, 0x63, 0x67, 0x69, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x73, 0, + 0x69, 0x20, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x73, 0x5f, 0x68, + 0x65, 0x61, 0x64, 0x65, 0x72, 0x2e, 0x68, 0x74, 0x6d, 0x6c, + 0xa, 0x63, 0x20, 0x61, 0xa, 0x69, 0x20, 0x2f, 0x73, 0x74, + 0x61, 0x74, 0x73, 0x5f, 0x66, 0x6f, 0x6f, 0x74, 0x65, 0x72, + 0x2e, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0xa, 0x2e, 0xa, }; + static const char data_cgi_tcp[] = { /* /cgi/tcp */ 0x2f, 0x63, 0x67, 0x69, 0x2f, 0x74, 0x63, 0x70, 0, @@ -85,13 +118,303 @@ static const char data_cgi_tcp[] = { 0x66, 0x6f, 0x6f, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0xa, 0x2e, }; +static const char data_img_bg_png[] = { + /* /img/bg.png */ + 0x2f, 0x69, 0x6d, 0x67, 0x2f, 0x62, 0x67, 0x2e, 0x70, 0x6e, 0x67, 0, + 0x48, 0x54, 0x54, 0x50, 0x2f, 0x31, 0x2e, 0x30, 0x20, 0x32, + 0x30, 0x30, 0x20, 0x4f, 0x4b, 0xd, 0xa, 0x53, 0x65, 0x72, + 0x76, 0x65, 0x72, 0x3a, 0x20, 0x75, 0x49, 0x50, 0x2f, 0x30, + 0x2e, 0x39, 0x20, 0x28, 0x68, 0x74, 0x74, 0x70, 0x3a, 0x2f, + 0x2f, 0x64, 0x75, 0x6e, 0x6b, 0x65, 0x6c, 0x73, 0x2e, 0x63, + 0x6f, 0x6d, 0x2f, 0x61, 0x64, 0x61, 0x6d, 0x2f, 0x75, 0x69, + 0x70, 0x2f, 0x29, 0xd, 0xa, 0x43, 0x6f, 0x6e, 0x74, 0x65, + 0x6e, 0x74, 0x2d, 0x74, 0x79, 0x70, 0x65, 0x3a, 0x20, 0x69, + 0x6d, 0x61, 0x67, 0x65, 0x2f, 0x70, 0x6e, 0x67, 0xd, 0xa, + 0xd, 0xa, 0x89, 0x50, 0x4e, 0x47, 0xd, 0xa, 0x1a, 0xa, + 00, 00, 00, 0xd, 0x49, 0x48, 0x44, 0x52, 00, 00, + 0x3, 0x1d, 00, 00, 00, 0x5e, 0x8, 0x6, 00, 00, + 00, 0x46, 0xbd, 0x79, 0xcc, 00, 00, 00, 0x6, 0x62, + 0x4b, 0x47, 0x44, 00, 0xff, 00, 0xff, 00, 0xff, 0xa0, + 0xbd, 0xa7, 0x93, 00, 00, 00, 0x9, 0x70, 0x48, 0x59, + 0x73, 00, 00, 0xb, 0x12, 00, 00, 0xb, 0x12, 0x1, + 0xd2, 0xdd, 0x7e, 0xfc, 00, 00, 00, 0x7, 0x74, 0x49, + 0x4d, 0x45, 0x7, 0xd3, 0xa, 0x5, 0x12, 0x22, 0x33, 0x22, + 0xd0, 0x7c, 0x9a, 00, 00, 00, 0x1d, 0x74, 0x45, 0x58, + 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 00, 0x43, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x20, 0x77, 0x69, 0x74, + 0x68, 0x20, 0x54, 0x68, 0x65, 0x20, 0x47, 0x49, 0x4d, 0x50, + 0xef, 0x64, 0x25, 0x6e, 00, 00, 0x3, 0xa0, 0x49, 0x44, + 0x41, 0x54, 0x78, 0xda, 0xed, 0xdd, 0xc1, 0x76, 0x9a, 0x40, + 0x18, 0x80, 0x51, 0x27, 0xc7, 0x5, 0x6c, 0xd1, 0x65, 0x1a, + 0xec, 0xe9, 0xfb, 0xbf, 0x45, 0x9e, 0x23, 0xd5, 0xb4, 0x4b, + 0x71, 0x19, 0xdd, 0x4d, 0x97, 0x36, 0x8a, 0x6, 0x1c, 0x82, + 0x20, 0xf7, 0xee, 0x92, 0xa8, 0x3f, 0xc, 0x68, 0xfa, 0xa1, + 0x3d, 0x9, 0x6f, 0xaf, 0x1f, 0x71, 0x76, 0x26, 0xcc, 0x6e, + 0x15, 0x9e, 0xce, 0xbf, 0x17, 0xe3, 0x71, 0x44, 0xb8, 0xfd, + 0xa1, 0x93, 0xd5, 0x6d, 0x5b, 0x7f, 0xc3, 0x13, 0xef, 0x1e, + 0x86, 0xb3, 0x2d, 0x5d, 0x6d, 0xdb, 0xf2, 0x57, 0x96, 0x34, + 0x77, 0xfb, 0xfb, 0x90, 0x74, 0xff, 0xe5, 0xcf, 0xb4, 0xf9, + 0xbb, 0x4d, 0xda, 0xfc, 0xa2, 0xcc, 0x92, 0xd6, 0xb4, 0x5a, + 0x5f, 0x99, 0xdf, 0xe0, 0x5c, 0x5f, 0xae, 0xb2, 0xd9, 0x20, + 0x85, 0x6f, 0x5c, 0xff, 0x70, 0x7c, 0x2d, 0x5a, 0x94, 0xf9, + 0xf0, 0x76, 0xfd, 0x69, 0x36, 0x39, 0x53, 0xdc, 0xe7, 0x41, + 0xfc, 0x1e, 0x18, 0xe1, 0xef, 0x41, 0xc6, 0xf1, 0x7c, 0xa9, + 0x3d, 0x4f, 0xe3, 0x83, 0x1f, 0xfc, 0xb1, 0x1e, 0x17, 0xcb, + 0x4, 00, 00, 0x68, 0x33, 00, 00, 00, 0xd1, 0x1, + 00, 00, 0x88, 0xe, 00, 00, 0x40, 0x74, 00, 00, + 00, 0x88, 0xe, 00, 00, 0x40, 0x74, 00, 00, 00, + 0xa2, 0x3, 00, 00, 0x40, 0x74, 00, 00, 00, 0xa2, + 0x3, 00, 00, 0x40, 0x74, 00, 00, 00, 0xa2, 0x3, + 00, 00, 0x10, 0x1d, 00, 0x1d, 0xa, 0x96, 00, 00, + 0x44, 0x7, 00, 00, 0x40, 0x4b, 0xe1, 0xed, 0xf5, 0x23, + 0xd6, 0x7c, 0xfb, 0xf6, 0x7, 0xac, 0xc9, 0x98, 0x18, 0x8f, + 0x23, 0xc2, 0x1d, 0xaf, 0x64, 0x86, 0x7b, 0x26, 0x56, 0xe2, + 0x7e, 0x77, 0xba, 0x6e, 0x1d, 0x1f, 0x83, 0xa4, 0x6d, 0xb, + 0xfd, 0x6e, 0x6b, 0x97, 0x6b, 0x1a, 0xee, 0x7c, 0x55, 0x7e, + 0xb1, 0xca, 0x92, 0x9e, 0xb, 0xdb, 0xf5, 0x21, 0x69, 0xfe, + 0x32, 0x61, 0xfe, 0x18, 0x8f, 0xf7, 0xc3, 0xbf, 0x46, 0xd9, + 0xe7, 0xe1, 0xaf, 0xd5, 0xd8, 0xdf, 0x9, 0xf4, 0x4e, 0xe6, + 0x24, 0x9e, 0x2f, 0xb5, 0xe7, 0x69, 0x7c, 0xf0, 0x83, 0x3f, + 0xd6, 0xe3, 0x62, 0x99, 00, 00, 00, 0x6d, 0x6, 00, + 00, 0x20, 0x3a, 00, 00, 00, 0xd1, 0x1, 00, 00, + 0x88, 0xe, 00, 00, 00, 0xd1, 0x1, 00, 00, 0x88, + 0xe, 00, 00, 0x40, 0x74, 00, 00, 00, 0x88, 0xe, + 00, 00, 0x40, 0x74, 00, 00, 00, 0x88, 0xe, 0x98, + 0xaa, 0xe0, 0x59, 0xf, 00, 0x88, 0xe, 00, 0x86, 0x53, + 0xa9, 0x96, 00, 00, 0xd1, 0x1, 00, 00, 0x88, 0xe, + 00, 00, 0x40, 0x74, 00, 00, 00, 0x7c, 0x93, 0xb9, + 0x25, 0x80, 0xfb, 0x28, 0xca, 0xec, 0xe2, 0xcf, 0x42, 0x83, + 0xcf, 0xd1, 0x57, 0xeb, 0xc3, 0xe5, 0x1f, 0x36, 0xb8, 0x9c, + 0xb0, 0x5c, 0x65, 0x49, 0xdb, 0xbf, 0xbd, 0x30, 0x3f, 0x34, + 0xfc, 0x3f, 00, 0x8b, 0x32, 0x6d, 0xfe, 0x6e, 0x73, 0x68, + 0x7f, 0xa7, 0x10, 0xff, 0x9b, 0x9f, 0x27, 0xcd, 0xaf, 0xde, + 0xf7, 0xed, 0x46, 0x9f, 0x1c, 0x93, 0xe2, 0x39, 0xf7, 0x24, + 00, 0x60, 0x32, 0xbc, 0xd3, 0x1, 00, 00, 0x88, 0xe, + 00, 00, 0x40, 0x74, 00, 00, 00, 0x88, 0xe, 00, + 00, 0x40, 0x74, 00, 00, 00, 0x8f, 0x1f, 0x1d, 0xdd, + 0xfe, 0xf9, 0xd9, 0x18, 0xa3, 0x55, 0x6, 00, 00, 0xd1, + 0xc1, 0x64, 0x84, 0x8e, 0x1f, 0x2e, 0x58, 0x52, 00, 00, + 0x44, 0x7, 00, 00, 0x20, 0x3a, 00, 00, 00, 0xd1, + 0x1, 00, 00, 0x20, 0x3a, 00, 00, 00, 0xd1, 0x1, + 00, 00, 0x88, 0xe, 00, 00, 00, 0xd1, 0x1, 00, + 00, 0x88, 0xe, 00, 00, 0x80, 0xb9, 0x25, 0x80, 0xfb, + 0xd8, 0x6d, 0xe, 0x77, 0x9d, 0xbf, 0x5d, 0xa7, 0xcd, 0x5f, + 0xae, 0xb2, 0xa4, 0xfb, 0x57, 0x35, 0xfb, 0xdf, 0xe6, 0x8f, + 0x4d, 0x16, 0x65, 0xbb, 0xf9, 0xa7, 0x8f, 0x5d, 0x6d, 0xf6, + 0xe7, 0x37, 0x88, 0xf1, 0xca, 0x3, 0x7c, 0xfe, 0x72, 0xf1, + 0x92, 0x3b, 0x89, 0x1, 0xa0, 0x21, 0xef, 0x74, 00, 00, + 00, 0xa2, 0x3, 00, 00, 0x10, 0x1d, 00, 00, 00, + 0xa2, 0x63, 0xac, 0xda, 0x7c, 0xce, 0x1d, 00, 00, 0x44, + 0x7, 0xe0, 0x59, 0xd, 00, 0xf8, 0xe7, 0x9, 00, 00, + 0x80, 0xe8, 00, 00, 00, 0x44, 0x7, 00, 00, 0x80, + 0xe8, 00, 00, 00, 0x44, 0x7, 00, 00, 0x20, 0x3a, + 00, 00, 00, 0x44, 0x7, 00, 00, 0x20, 0x3a, 00, + 00, 00, 0xd1, 0x1, 00, 00, 0x20, 0x3a, 00, 00, + 0x80, 0x81, 0x98, 0x5b, 0x2, 0xe0, 0x16, 0xdb, 0xf5, 0xa1, + 0xf6, 0xfb, 0x21, 0xf4, 0x33, 0x7f, 0xb7, 0x39, 0xb4, 0xbb, + 0x43, 0x88, 0x9f, 0xbe, 0x5c, 0x94, 0x79, 0xd2, 0xfc, 0xea, + 0x7d, 0xdf, 0x6e, 0xfc, 0xc9, 0x25, 0x9e, 0xe2, 0xb9, 0xbf, + 0xf9, 0x75, 0xc7, 0xa4, 0xf8, 0x91, 0x3b, 0x89, 0x1, 0xe8, + 0x8d, 0x77, 0x3a, 00, 00, 00, 0xd1, 0x1, 0x43, 0xd3, + 0xd7, 0xd5, 0x7c, 0xeb, 0x2, 00, 0x88, 0xe, 00, 0xbe, + 0x8e, 0x31, 0xaf, 0xb4, 00, 0x88, 0xe, 00, 00, 00, + 0xd1, 0x1, 00, 00, 0x88, 0xe, 00, 00, 00, 0xd1, + 0x1, 00, 00, 0x88, 0xe, 00, 00, 0x40, 0x74, 00, + 00, 00, 0x88, 0xe, 00, 00, 0x40, 0x74, 00, 00, + 00, 0xa2, 0x3, 00, 00, 0x60, 0x34, 0xd1, 0x11, 0x82, + 0x5, 0x7, 00, 00, 0xd1, 0x1, 0x43, 0x21, 0x52, 0x1, + 00, 0x44, 0x7, 00, 00, 0xc0, 0x57, 0xe6, 0x96, 00, + 0x18, 0xa3, 0xa2, 0xcc, 0x5a, 0xdd, 0xfe, 0xf4, 0xe3, 0x9d, + 0xd5, 0x66, 0x7f, 0x7e, 0x83, 0x18, 0xaf, 0x3c, 0x40, 0xb7, + 0xdb, 0xbf, 0xfb, 0xbb, 0x4f, 0xba, 0xff, 0xe2, 0x25, 0x4f, + 0x9b, 0xff, 0xa7, 0xe1, 0xfc, 0xb, 0xfb, 0x5d, 0x3c, 0xe7, + 0xdf, 0xbe, 0xff, 0xe1, 0xca, 0x65, 0xb1, 0x3e, 0xe6, 0x5f, + 0x3d, 0xff, 0x12, 0xe7, 0x3, 0x4c, 0x8d, 0x77, 0x3a, 00, + 00, 00, 0xd1, 0x1, 00, 00, 0x88, 0xe, 00, 00, + 00, 0xd1, 0x1, 00, 00, 0x88, 0xe, 00, 00, 0x40, + 0x74, 00, 00, 00, 0x88, 0xe, 00, 00, 0x40, 0x74, + 00, 00, 00, 0xa2, 0x3, 00, 00, 0x40, 0x74, 0x34, + 0x13, 0xe4, 0x15, 00, 00, 0x88, 0xe, 00, 00, 0x40, + 0x74, 00, 00, 00, 0x88, 0xe, 00, 00, 0x40, 0x74, + 00, 00, 00, 0x13, 0xf1, 0xf, 0x24, 0xa1, 0x5c, 0xab, + 0x41, 0xd8, 0x92, 0xa4, 00, 00, 00, 00, 0x49, 0x45, + 0x4e, 0x44, 0xae, 0x42, 0x60, 0x82, }; + +static const char data_about_html[] = { + /* /about.html */ + 0x2f, 0x61, 0x62, 0x6f, 0x75, 0x74, 0x2e, 0x68, 0x74, 0x6d, 0x6c, 0, + 0x48, 0x54, 0x54, 0x50, 0x2f, 0x31, 0x2e, 0x30, 0x20, 0x32, + 0x30, 0x30, 0x20, 0x4f, 0x4b, 0xd, 0xa, 0x53, 0x65, 0x72, + 0x76, 0x65, 0x72, 0x3a, 0x20, 0x75, 0x49, 0x50, 0x2f, 0x30, + 0x2e, 0x39, 0x20, 0x28, 0x68, 0x74, 0x74, 0x70, 0x3a, 0x2f, + 0x2f, 0x64, 0x75, 0x6e, 0x6b, 0x65, 0x6c, 0x73, 0x2e, 0x63, + 0x6f, 0x6d, 0x2f, 0x61, 0x64, 0x61, 0x6d, 0x2f, 0x75, 0x69, + 0x70, 0x2f, 0x29, 0xd, 0xa, 0x43, 0x6f, 0x6e, 0x74, 0x65, + 0x6e, 0x74, 0x2d, 0x74, 0x79, 0x70, 0x65, 0x3a, 0x20, 0x74, + 0x65, 0x78, 0x74, 0x2f, 0x68, 0x74, 0x6d, 0x6c, 0xd, 0xa, + 0xd, 0xa, 0x3c, 0x68, 0x74, 0x6d, 0x6c, 0x3e, 0xa, 0x3c, + 0x62, 0x6f, 0x64, 0x79, 0x20, 0x62, 0x67, 0x63, 0x6f, 0x6c, + 0x6f, 0x72, 0x3d, 0x22, 0x77, 0x68, 0x69, 0x74, 0x65, 0x22, + 0x3e, 0xa, 0x3c, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3e, + 0xa, 0x3c, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x20, 0x77, 0x69, + 0x64, 0x74, 0x68, 0x3d, 0x22, 0x36, 0x30, 0x30, 0x22, 0x20, + 0x62, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x3d, 0x22, 0x30, 0x22, + 0x3e, 0x3c, 0x74, 0x72, 0x3e, 0x3c, 0x74, 0x64, 0x3e, 0xa, + 0x3c, 0x68, 0x32, 0x3e, 0x57, 0x65, 0x6c, 0x63, 0x6f, 0x6d, + 0x65, 0x3c, 0x2f, 0x68, 0x32, 0x3e, 0xa, 0x3c, 0x70, 0x20, + 0x61, 0x6c, 0x69, 0x67, 0x6e, 0x3d, 0x22, 0x6a, 0x75, 0x73, + 0x74, 0x69, 0x66, 0x79, 0x22, 0x3e, 0xa, 0x54, 0x68, 0x65, + 0x73, 0x65, 0x20, 0x77, 0x65, 0x62, 0x20, 0x70, 0x61, 0x67, + 0x65, 0x73, 0x20, 0x61, 0x72, 0x65, 0x20, 0x73, 0x65, 0x72, + 0x76, 0x65, 0x64, 0x20, 0x62, 0x79, 0x20, 0x74, 0x68, 0x65, + 0x20, 0x73, 0x6d, 0x61, 0x6c, 0x6c, 0x20, 0x77, 0x65, 0x62, + 0x20, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x20, 0x72, 0x75, + 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x20, 0x6f, 0x6e, 0x20, 0x74, + 0x6f, 0x70, 0x20, 0x6f, 0x66, 0xa, 0x74, 0x68, 0x65, 0x20, + 0x3c, 0x61, 0x20, 0x68, 0x72, 0x65, 0x66, 0x3d, 0x22, 0x68, + 0x74, 0x74, 0x70, 0x3a, 0x2f, 0x2f, 0x64, 0x75, 0x6e, 0x6b, + 0x65, 0x6c, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x64, + 0x61, 0x6d, 0x2f, 0x75, 0x69, 0x70, 0x2f, 0x22, 0x20, 0x74, + 0x61, 0x72, 0x67, 0x65, 0x74, 0x3d, 0x22, 0x5f, 0x74, 0x6f, + 0x70, 0x22, 0x3e, 0x75, 0x49, 0x50, 0x20, 0x54, 0x43, 0x50, + 0x2f, 0x49, 0x50, 0xa, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x3c, + 0x2f, 0x61, 0x3e, 0x2e, 0xa, 0x3c, 0x2f, 0x70, 0x3e, 0xa, + 0x3c, 0x70, 0x20, 0x61, 0x6c, 0x69, 0x67, 0x6e, 0x3d, 0x22, + 0x6a, 0x75, 0x73, 0x74, 0x69, 0x66, 0x79, 0x22, 0x3e, 0xa, + 0x43, 0x6c, 0x69, 0x63, 0x6b, 0x20, 0x6f, 0x6e, 0x20, 0x74, + 0x68, 0x65, 0x20, 0x6c, 0x69, 0x6e, 0x6b, 0x73, 0x20, 0x61, + 0x62, 0x6f, 0x76, 0x65, 0x20, 0x74, 0x6f, 0x20, 0x73, 0x65, + 0x65, 0x20, 0x73, 0x6f, 0x6d, 0x65, 0x20, 0x73, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x20, 0x69, 0x6e, 0x66, 0x6f, 0x72, 0x6d, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x61, 0x62, 0x6f, 0x75, + 0x74, 0x20, 0x74, 0x68, 0x65, 0x20, 0x77, 0x65, 0x62, 0xa, + 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x20, 0x61, 0x6e, 0x64, + 0x20, 0x74, 0x68, 0x65, 0x20, 0x54, 0x43, 0x50, 0x2f, 0x49, + 0x50, 0x20, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0xa, 0x3c, + 0x2f, 0x70, 0x3e, 0xa, 0x3c, 0x2f, 0x74, 0x64, 0x3e, 0x3c, + 0x2f, 0x74, 0x72, 0x3e, 0x3c, 0x2f, 0x74, 0x61, 0x62, 0x6c, + 0x65, 0x3e, 0xa, 0x3c, 0x2f, 0x63, 0x65, 0x6e, 0x74, 0x65, + 0x72, 0x3e, 0xa, 0x3c, 0x2f, 0x62, 0x6f, 0x64, 0x79, 0x3e, + 0xa, 0x3c, 0x2f, 0x68, 0x74, 0x6d, 0x6c, 0x3e, }; + +static const char data_control_html[] = { + /* /control.html */ + 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x68, 0x74, 0x6d, 0x6c, 0, + 0x48, 0x54, 0x54, 0x50, 0x2f, 0x31, 0x2e, 0x30, 0x20, 0x32, + 0x30, 0x30, 0x20, 0x4f, 0x4b, 0xd, 0xa, 0x53, 0x65, 0x72, + 0x76, 0x65, 0x72, 0x3a, 0x20, 0x75, 0x49, 0x50, 0x2f, 0x30, + 0x2e, 0x39, 0x20, 0x28, 0x68, 0x74, 0x74, 0x70, 0x3a, 0x2f, + 0x2f, 0x64, 0x75, 0x6e, 0x6b, 0x65, 0x6c, 0x73, 0x2e, 0x63, + 0x6f, 0x6d, 0x2f, 0x61, 0x64, 0x61, 0x6d, 0x2f, 0x75, 0x69, + 0x70, 0x2f, 0x29, 0xd, 0xa, 0x43, 0x6f, 0x6e, 0x74, 0x65, + 0x6e, 0x74, 0x2d, 0x74, 0x79, 0x70, 0x65, 0x3a, 0x20, 0x74, + 0x65, 0x78, 0x74, 0x2f, 0x68, 0x74, 0x6d, 0x6c, 0xd, 0xa, + 0xd, 0xa, 0x3c, 0x68, 0x74, 0x6d, 0x6c, 0x3e, 0xa, 0x3c, + 0x62, 0x6f, 0x64, 0x79, 0x20, 0x62, 0x67, 0x63, 0x6f, 0x6c, + 0x6f, 0x72, 0x3d, 0x22, 0x77, 0x68, 0x69, 0x74, 0x65, 0x22, + 0x3e, 0xa, 0x3c, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3e, + 0xa, 0x3c, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x20, 0x77, 0x69, + 0x64, 0x74, 0x68, 0x3d, 0x22, 0x37, 0x39, 0x37, 0x22, 0x20, + 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x3d, 0x22, 0x39, 0x34, + 0x22, 0x20, 0x62, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x3d, 0x22, + 0x30, 0x22, 0x20, 0x63, 0x65, 0x6c, 0x6c, 0x70, 0x61, 0x64, + 0x64, 0x69, 0x6e, 0x67, 0x3d, 0x22, 0x30, 0x22, 0xa, 0x9, + 0x63, 0x65, 0x6c, 0x6c, 0x73, 0x70, 0x61, 0x63, 0x69, 0x6e, + 0x67, 0x3d, 0x22, 0x30, 0x22, 0x20, 0x62, 0x61, 0x63, 0x6b, + 0x67, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x3d, 0x22, 0x2f, 0x69, + 0x6d, 0x67, 0x2f, 0x62, 0x67, 0x2e, 0x70, 0x6e, 0x67, 0x22, + 0x3e, 0x3c, 0x74, 0x72, 0x3e, 0x3c, 0x74, 0x64, 0x20, 0x61, + 0x6c, 0x69, 0x67, 0x6e, 0x3d, 0x22, 0x63, 0x65, 0x6e, 0x74, + 0x65, 0x72, 0x22, 0x3e, 0xa, 0x3c, 0x68, 0x31, 0x3e, 0x75, + 0x49, 0x50, 0x20, 0x77, 0x65, 0x62, 0x20, 0x73, 0x65, 0x72, + 0x76, 0x65, 0x72, 0x20, 0x74, 0x65, 0x73, 0x74, 0x20, 0x70, + 0x61, 0x67, 0x65, 0x73, 0x3c, 0x2f, 0x68, 0x31, 0x3e, 0xa, + 0x5b, 0x20, 0x3c, 0x61, 0x20, 0x68, 0x72, 0x65, 0x66, 0x3d, + 0x22, 0x61, 0x62, 0x6f, 0x75, 0x74, 0x2e, 0x68, 0x74, 0x6d, + 0x6c, 0x22, 0x20, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x3d, + 0x22, 0x6d, 0x61, 0x69, 0x6e, 0x22, 0x3e, 0x41, 0x62, 0x6f, + 0x75, 0x74, 0x3c, 0x2f, 0x61, 0x3e, 0x20, 0x7c, 0xa, 0x3c, + 0x61, 0x20, 0x68, 0x72, 0x65, 0x66, 0x3d, 0x22, 0x2f, 0x63, + 0x67, 0x69, 0x2f, 0x74, 0x63, 0x70, 0x22, 0x20, 0x74, 0x61, + 0x72, 0x67, 0x65, 0x74, 0x3d, 0x22, 0x6d, 0x61, 0x69, 0x6e, + 0x22, 0x3e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x3c, 0x2f, 0x61, 0x3e, 0x20, 0x7c, 0xa, + 0x3c, 0x61, 0x20, 0x68, 0x72, 0x65, 0x66, 0x3d, 0x22, 0x2f, + 0x63, 0x67, 0x69, 0x2f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x22, + 0x20, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x3d, 0x22, 0x6d, + 0x61, 0x69, 0x6e, 0x22, 0x3e, 0x46, 0x69, 0x6c, 0x65, 0x73, + 0x3c, 0x2f, 0x61, 0x3e, 0x20, 0x7c, 0xa, 0x3c, 0x61, 0x20, + 0x68, 0x72, 0x65, 0x66, 0x3d, 0x22, 0x2f, 0x63, 0x67, 0x69, + 0x2f, 0x73, 0x74, 0x61, 0x74, 0x73, 0x22, 0x20, 0x74, 0x61, + 0x72, 0x67, 0x65, 0x74, 0x3d, 0x22, 0x6d, 0x61, 0x69, 0x6e, + 0x22, 0x3e, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, + 0x63, 0x73, 0x3c, 0x2f, 0x61, 0x3e, 0x20, 0x5d, 0xa, 0x3c, + 0x2f, 0x74, 0x64, 0x3e, 0x3c, 0x2f, 0x74, 0x72, 0x3e, 0x3c, + 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x3e, 0xa, 0x3c, 0x2f, + 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3e, 0xa, 0x3c, 0x2f, + 0x62, 0x6f, 0x64, 0x79, 0x3e, 0xa, 0x3c, 0x2f, 0x68, 0x74, + 0x6d, 0x6c, 0x3e, }; + +static const char data_404_html[] = { + /* /404.html */ + 0x2f, 0x34, 0x30, 0x34, 0x2e, 0x68, 0x74, 0x6d, 0x6c, 0, + 0x48, 0x54, 0x54, 0x50, 0x2f, 0x31, 0x2e, 0x30, 0x20, 0x34, + 0x30, 0x34, 0x20, 0x46, 0x69, 0x6c, 0x65, 0x20, 0x6e, 0x6f, + 0x74, 0x20, 0x66, 0x6f, 0x75, 0x6e, 0x64, 0xd, 0xa, 0x53, + 0x65, 0x72, 0x76, 0x65, 0x72, 0x3a, 0x20, 0x75, 0x49, 0x50, + 0x2f, 0x30, 0x2e, 0x39, 0x20, 0x28, 0x68, 0x74, 0x74, 0x70, + 0x3a, 0x2f, 0x2f, 0x64, 0x75, 0x6e, 0x6b, 0x65, 0x6c, 0x73, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x64, 0x61, 0x6d, 0x2f, + 0x75, 0x69, 0x70, 0x2f, 0x29, 0xd, 0xa, 0x43, 0x6f, 0x6e, + 0x74, 0x65, 0x6e, 0x74, 0x2d, 0x74, 0x79, 0x70, 0x65, 0x3a, + 0x20, 0x74, 0x65, 0x78, 0x74, 0x2f, 0x68, 0x74, 0x6d, 0x6c, + 0xd, 0xa, 0xd, 0xa, 0x3c, 0x68, 0x74, 0x6d, 0x6c, 0x3e, + 0x3c, 0x62, 0x6f, 0x64, 0x79, 0x20, 0x62, 0x67, 0x63, 0x6f, + 0x6c, 0x6f, 0x72, 0x3d, 0x22, 0x77, 0x68, 0x69, 0x74, 0x65, + 0x22, 0x3e, 0x3c, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3e, + 0x3c, 0x68, 0x31, 0x3e, 0x34, 0x30, 0x34, 0x20, 0x2d, 0x20, + 0x66, 0x69, 0x6c, 0x65, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x66, + 0x6f, 0x75, 0x6e, 0x64, 0x3c, 0x2f, 0x68, 0x31, 0x3e, 0x3c, + 0x2f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3e, 0x3c, 0x2f, + 0x62, 0x6f, 0x64, 0x79, 0x3e, 0x3c, 0x2f, 0x68, 0x74, 0x6d, + 0x6c, 0x3e, }; + +static const char data_files_footer_plain[] = { + /* /files_footer.plain */ + 0x2f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x5f, 0x66, 0x6f, 0x6f, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0, + 0x3c, 0x2f, 0x74, 0x64, 0x3e, 0x3c, 0x2f, 0x74, 0x72, 0x3e, + 0x3c, 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x3e, 0xa, 0x3c, + 0x2f, 0x62, 0x6f, 0x64, 0x79, 0x3e, 0xa, 0x3c, 0x2f, 0x68, + 0x74, 0x6d, 0x6c, 0x3e, 0xa, }; + +static const char data_files_header_html[] = { + /* /files_header.html */ + 0x2f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x2e, 0x68, 0x74, 0x6d, 0x6c, 0, + 0x48, 0x54, 0x54, 0x50, 0x2f, 0x31, 0x2e, 0x30, 0x20, 0x32, + 0x30, 0x30, 0x20, 0x4f, 0x4b, 0xd, 0xa, 0x53, 0x65, 0x72, + 0x76, 0x65, 0x72, 0x3a, 0x20, 0x75, 0x49, 0x50, 0x2f, 0x30, + 0x2e, 0x39, 0x20, 0x28, 0x68, 0x74, 0x74, 0x70, 0x3a, 0x2f, + 0x2f, 0x64, 0x75, 0x6e, 0x6b, 0x65, 0x6c, 0x73, 0x2e, 0x63, + 0x6f, 0x6d, 0x2f, 0x61, 0x64, 0x61, 0x6d, 0x2f, 0x75, 0x69, + 0x70, 0x2f, 0x29, 0xd, 0xa, 0x43, 0x6f, 0x6e, 0x74, 0x65, + 0x6e, 0x74, 0x2d, 0x74, 0x79, 0x70, 0x65, 0x3a, 0x20, 0x74, + 0x65, 0x78, 0x74, 0x2f, 0x68, 0x74, 0x6d, 0x6c, 0xd, 0xa, + 0xd, 0xa, 0x3c, 0x68, 0x74, 0x6d, 0x6c, 0x3e, 0xa, 0x3c, + 0x62, 0x6f, 0x64, 0x79, 0x20, 0x62, 0x67, 0x63, 0x6f, 0x6c, + 0x6f, 0x72, 0x3d, 0x22, 0x77, 0x68, 0x69, 0x74, 0x65, 0x22, + 0x3e, 0xa, 0x3c, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3e, + 0xa, 0x3c, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x20, 0x77, 0x69, + 0x64, 0x74, 0x68, 0x3d, 0x22, 0x36, 0x30, 0x30, 0x22, 0x20, + 0x62, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x3d, 0x22, 0x30, 0x22, + 0x3e, 0xa, }; + static const char data_index_html[] = { /* /index.html */ 0x2f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x68, 0x74, 0x6d, 0x6c, 0, 0x48, 0x54, 0x54, 0x50, 0x2f, 0x31, 0x2e, 0x30, 0x20, 0x32, 0x30, 0x30, 0x20, 0x4f, 0x4b, 0xd, 0xa, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x3a, 0x20, 0x75, 0x49, 0x50, 0x2f, 0x30, - 0x2e, 0x35, 0x20, 0x28, 0x68, 0x74, 0x74, 0x70, 0x3a, 0x2f, + 0x2e, 0x39, 0x20, 0x28, 0x68, 0x74, 0x74, 0x70, 0x3a, 0x2f, 0x2f, 0x64, 0x75, 0x6e, 0x6b, 0x65, 0x6c, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x64, 0x61, 0x6d, 0x2f, 0x75, 0x69, 0x70, 0x2f, 0x29, 0xd, 0xa, 0x43, 0x6f, 0x6e, 0x74, 0x65, @@ -103,147 +426,36 @@ static const char data_index_html[] = { 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x20, 0x74, 0x65, 0x73, 0x74, 0x20, 0x70, 0x61, 0x67, 0x65, 0x3c, 0x2f, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x3e, 0x3c, 0x2f, 0x68, 0x65, 0x61, 0x64, - 0x3e, 0xa, 0x3c, 0x62, 0x6f, 0x64, 0x79, 0x20, 0x62, 0x67, - 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x3d, 0x22, 0x77, 0x68, 0x69, - 0x74, 0x65, 0x22, 0x3e, 0xa, 0xa, 0x3c, 0x74, 0x61, 0x62, - 0x6c, 0x65, 0x20, 0x77, 0x69, 0x64, 0x74, 0x68, 0x3d, 0x22, - 0x35, 0x34, 0x30, 0x22, 0x20, 0x63, 0x65, 0x6c, 0x6c, 0x73, - 0x70, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x3d, 0x22, 0x30, 0x22, - 0x20, 0x63, 0x65, 0x6c, 0x6c, 0x70, 0x61, 0x64, 0x64, 0x69, - 0x6e, 0x67, 0x3d, 0x22, 0x30, 0x22, 0x20, 0x62, 0x6f, 0x72, - 0x64, 0x65, 0x72, 0x3d, 0x22, 0x30, 0x22, 0x3e, 0x3c, 0x74, - 0x72, 0x3e, 0xa, 0x3c, 0x74, 0x64, 0x20, 0x77, 0x69, 0x64, - 0x74, 0x68, 0x3d, 0x22, 0x35, 0x33, 0x30, 0x22, 0x20, 0x62, - 0x67, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x3d, 0x22, 0x23, 0x63, - 0x30, 0x63, 0x30, 0x66, 0x30, 0x22, 0x3e, 0xa, 0x3c, 0x64, - 0x69, 0x76, 0x20, 0x61, 0x6c, 0x69, 0x67, 0x6e, 0x3d, 0x22, - 0x72, 0x69, 0x67, 0x68, 0x74, 0x22, 0x3e, 0x3c, 0x62, 0x3e, - 0x75, 0x49, 0x50, 0x20, 0x77, 0x65, 0x62, 0x20, 0x73, 0x65, - 0x72, 0x76, 0x65, 0x72, 0x20, 0x74, 0x65, 0x73, 0x74, 0x20, - 0x70, 0x61, 0x67, 0x65, 0x3c, 0x2f, 0x62, 0x3e, 0x3c, 0x2f, - 0x64, 0x69, 0x76, 0x3e, 0xa, 0x3c, 0x2f, 0x74, 0x64, 0x3e, - 0xa, 0x3c, 0x74, 0x64, 0x20, 0x77, 0x69, 0x64, 0x74, 0x68, - 0x3d, 0x22, 0x31, 0x30, 0x22, 0x3e, 0x26, 0x6e, 0x62, 0x73, - 0x70, 0x3b, 0x3c, 0x2f, 0x74, 0x64, 0x3e, 0xa, 0x3c, 0x2f, - 0x74, 0x72, 0x3e, 0xa, 0x3c, 0x74, 0x72, 0x20, 0x76, 0x61, - 0x6c, 0x69, 0x67, 0x6e, 0x3d, 0x22, 0x74, 0x6f, 0x70, 0x22, - 0x3e, 0xa, 0x3c, 0x74, 0x64, 0x20, 0x62, 0x67, 0x63, 0x6f, - 0x6c, 0x6f, 0x72, 0x3d, 0x22, 0x23, 0x63, 0x30, 0x63, 0x30, - 0x66, 0x30, 0x22, 0x20, 0x77, 0x69, 0x64, 0x74, 0x68, 0x3d, - 0x22, 0x35, 0x33, 0x30, 0x22, 0x3e, 0xa, 0x3c, 0x74, 0x61, - 0x62, 0x6c, 0x65, 0x20, 0x63, 0x65, 0x6c, 0x6c, 0x70, 0x61, - 0x64, 0x64, 0x69, 0x6e, 0x67, 0x3d, 0x22, 0x31, 0x30, 0x22, - 0x20, 0x62, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x3d, 0x22, 0x30, - 0x22, 0x20, 0x77, 0x69, 0x64, 0x74, 0x68, 0x3d, 0x22, 0x31, - 0x30, 0x30, 0x25, 0x22, 0x3e, 0x3c, 0x74, 0x72, 0x3e, 0x3c, - 0x74, 0x64, 0x3e, 0xa, 0xa, 0x3c, 0x70, 0x20, 0x61, 0x6c, - 0x69, 0x67, 0x6e, 0x3d, 0x22, 0x6a, 0x75, 0x73, 0x74, 0x69, - 0x66, 0x79, 0x22, 0x3e, 0xa, 0x54, 0x68, 0x69, 0x73, 0x20, - 0x69, 0x73, 0x20, 0x61, 0x20, 0x73, 0x69, 0x6d, 0x70, 0x6c, - 0x65, 0x20, 0x74, 0x65, 0x73, 0x74, 0x20, 0x70, 0x61, 0x67, - 0x65, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x74, 0x68, 0x65, 0x20, - 0x48, 0x54, 0x54, 0x50, 0x20, 0x73, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x20, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x20, - 0x6f, 0x6e, 0x20, 0x74, 0x6f, 0x70, 0x20, 0x6f, 0x66, 0x20, - 0x74, 0x68, 0x65, 0xa, 0x75, 0x49, 0x50, 0x20, 0x54, 0x43, - 0x50, 0x2f, 0x49, 0x50, 0x20, 0x73, 0x74, 0x61, 0x63, 0x6b, - 0x2e, 0x20, 0x54, 0x68, 0x69, 0x73, 0x20, 0x70, 0x61, 0x67, - 0x65, 0x20, 0x69, 0x73, 0x20, 0x73, 0x65, 0x72, 0x76, 0x65, - 0x64, 0x20, 0x62, 0x79, 0x20, 0x74, 0x68, 0x65, 0x20, 0x73, - 0x6d, 0x61, 0x6c, 0x6c, 0x20, 0x77, 0x65, 0x62, 0x20, 0x73, - 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0xa, 0x3c, 0x2f, 0x70, - 0x3e, 0xa, 0xa, 0x3c, 0x70, 0x20, 0x61, 0x6c, 0x69, 0x67, - 0x6e, 0x3d, 0x22, 0x6a, 0x75, 0x73, 0x74, 0x69, 0x66, 0x79, - 0x22, 0x3e, 0xa, 0x54, 0x68, 0x65, 0x20, 0x77, 0x65, 0x62, - 0x20, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x20, 0x61, 0x6c, - 0x73, 0x6f, 0x20, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, - 0x73, 0x20, 0x61, 0x20, 0x66, 0x65, 0x77, 0x20, 0x76, 0x69, - 0x72, 0x74, 0x75, 0x61, 0x6c, 0x20, 0x70, 0x61, 0x67, 0x65, - 0x73, 0x3a, 0x3c, 0x62, 0x72, 0x3e, 0xa, 0x3c, 0x6c, 0x69, - 0x3e, 0xa, 0x3c, 0x61, 0x20, 0x68, 0x72, 0x65, 0x66, 0x3d, - 0x22, 0x2f, 0x63, 0x67, 0x69, 0x2f, 0x66, 0x69, 0x6c, 0x65, - 0x73, 0x22, 0x3e, 0x2f, 0x63, 0x67, 0x69, 0x2f, 0x66, 0x69, - 0x6c, 0x65, 0x73, 0x3c, 0x2f, 0x61, 0x3e, 0x20, 0x77, 0x68, - 0x69, 0x63, 0x68, 0x20, 0x73, 0x68, 0x6f, 0x77, 0x73, 0x20, - 0x69, 0x6e, 0x64, 0x69, 0x76, 0x69, 0x64, 0x75, 0x61, 0x6c, - 0x20, 0x70, 0x61, 0x67, 0x65, 0xa, 0x68, 0x69, 0x74, 0x73, - 0x2e, 0x3c, 0x62, 0x72, 0x3e, 0xa, 0xa, 0x3c, 0x6c, 0x69, - 0x3e, 0xa, 0x3c, 0x61, 0x20, 0x68, 0x72, 0x65, 0x66, 0x3d, - 0x22, 0x2f, 0x63, 0x67, 0x69, 0x2f, 0x74, 0x63, 0x70, 0x22, - 0x3e, 0x2f, 0x63, 0x67, 0x69, 0x2f, 0x74, 0x63, 0x70, 0x3c, - 0x2f, 0x61, 0x3e, 0x20, 0x77, 0x68, 0x69, 0x63, 0x68, 0x20, - 0x73, 0x68, 0x6f, 0x77, 0x73, 0x20, 0x63, 0x75, 0x72, 0x72, - 0x65, 0x6e, 0x74, 0x20, 0x54, 0x43, 0x50, 0x20, 0x63, 0x6f, - 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0xa, 0x73, - 0x74, 0x61, 0x74, 0x65, 0x73, 0x2e, 0x3c, 0x62, 0x72, 0x3e, - 0x20, 0xa, 0xa, 0x3c, 0x6c, 0x69, 0x3e, 0xa, 0x3c, 0x61, - 0x20, 0x68, 0x72, 0x65, 0x66, 0x3d, 0x22, 0x2f, 0x63, 0x67, - 0x69, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x73, 0x22, 0x3e, 0x2f, - 0x63, 0x67, 0x69, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x73, 0x3c, - 0x2f, 0x61, 0x3e, 0x20, 0x77, 0x68, 0x69, 0x63, 0x68, 0x20, - 0x73, 0x68, 0x6f, 0x77, 0x73, 0x20, 0x75, 0x49, 0x50, 0x20, - 0x54, 0x43, 0x50, 0x2f, 0x49, 0x50, 0xa, 0x73, 0x74, 0x61, - 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x2e, 0x3c, 0x62, - 0x72, 0x3e, 0x20, 0x20, 0xa, 0x3c, 0x2f, 0x70, 0x3e, 0xa, - 0xa, 0x3c, 0x70, 0x20, 0x61, 0x6c, 0x69, 0x67, 0x6e, 0x3d, - 0x22, 0x6a, 0x75, 0x73, 0x74, 0x69, 0x66, 0x79, 0x22, 0x3e, - 0xa, 0x46, 0x6f, 0x72, 0x20, 0x6d, 0x6f, 0x72, 0x65, 0x20, - 0x69, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x2c, 0x20, 0x73, 0x65, 0x65, 0x20, 0x74, 0x68, 0x65, - 0x20, 0x3c, 0x61, 0xa, 0x68, 0x72, 0x65, 0x66, 0x3d, 0x22, - 0x68, 0x74, 0x74, 0x70, 0x3a, 0x2f, 0x2f, 0x64, 0x75, 0x6e, - 0x6b, 0x65, 0x6c, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, - 0x64, 0x61, 0x6d, 0x2f, 0x75, 0x69, 0x70, 0x2f, 0x22, 0x3e, - 0x75, 0x49, 0x50, 0x3c, 0x2f, 0x61, 0x3e, 0x20, 0x68, 0x6f, - 0x6d, 0x65, 0x20, 0x70, 0x61, 0x67, 0x65, 0x2e, 0xa, 0x3c, - 0x2f, 0x70, 0x3e, 0xa, 0xa, 0x3c, 0x70, 0x20, 0x61, 0x6c, - 0x69, 0x67, 0x6e, 0x3d, 0x22, 0x72, 0x69, 0x67, 0x68, 0x74, - 0x22, 0x3e, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0xa, 0x3c, 0x66, 0x6f, 0x6e, 0x74, 0x20, 0x73, 0x69, 0x7a, - 0x65, 0x3d, 0x22, 0x2d, 0x31, 0x22, 0x3e, 0x3c, 0x69, 0x3e, - 0xa, 0x24, 0x44, 0x61, 0x74, 0x65, 0x3a, 0x20, 0x32, 0x30, - 0x30, 0x31, 0x2f, 0x31, 0x31, 0x2f, 0x32, 0x34, 0x20, 0x31, - 0x35, 0x3a, 0x34, 0x33, 0x3a, 0x33, 0x36, 0x20, 0x24, 0xa, - 0x3c, 0x2f, 0x69, 0x3e, 0x3c, 0x2f, 0x66, 0x6f, 0x6e, 0x74, - 0x3e, 0xa, 0x3c, 0x2f, 0x70, 0x3e, 0xa, 0xa, 0xa, 0x3c, - 0x2f, 0x74, 0x72, 0x3e, 0x3c, 0x2f, 0x74, 0x64, 0x3e, 0x3c, - 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x3e, 0xa, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0xa, 0x3c, 0x2f, 0x74, - 0x64, 0x3e, 0xa, 0x3c, 0x74, 0x64, 0x20, 0x77, 0x69, 0x64, - 0x74, 0x68, 0x3d, 0x22, 0x31, 0x30, 0x22, 0x20, 0x62, 0x67, - 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x3d, 0x22, 0x23, 0x61, 0x30, - 0x61, 0x30, 0x65, 0x33, 0x22, 0x3e, 0x26, 0x6e, 0x62, 0x73, - 0x70, 0x3b, 0x3c, 0x2f, 0x74, 0x64, 0x3e, 0xa, 0x3c, 0x2f, - 0x74, 0x72, 0x3e, 0x3c, 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, - 0x3e, 0xa, 0xa, 0x3c, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x20, - 0x77, 0x69, 0x64, 0x74, 0x68, 0x3d, 0x22, 0x35, 0x34, 0x30, - 0x22, 0x20, 0x63, 0x65, 0x6c, 0x6c, 0x70, 0x61, 0x64, 0x64, - 0x69, 0x6e, 0x67, 0x3d, 0x22, 0x30, 0x22, 0x20, 0x63, 0x65, - 0x6c, 0x6c, 0x73, 0x70, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x3d, - 0x22, 0x30, 0x22, 0x20, 0x62, 0x6f, 0x72, 0x64, 0x65, 0x72, - 0x3d, 0x22, 0x30, 0x22, 0x3e, 0xa, 0x3c, 0x74, 0x72, 0x3e, - 0xa, 0x3c, 0x74, 0x64, 0x20, 0x77, 0x69, 0x64, 0x74, 0x68, - 0x3d, 0x22, 0x31, 0x30, 0x22, 0x3e, 0xa, 0x3c, 0x2f, 0x74, - 0x64, 0x3e, 0xa, 0x3c, 0x74, 0x64, 0x20, 0x77, 0x69, 0x64, - 0x74, 0x68, 0x3d, 0x22, 0x35, 0x33, 0x30, 0x22, 0x20, 0x62, - 0x67, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x3d, 0x22, 0x23, 0x61, - 0x30, 0x61, 0x30, 0x65, 0x33, 0x22, 0x3e, 0x3c, 0x64, 0x69, - 0x76, 0x20, 0x61, 0x6c, 0x69, 0x67, 0x6e, 0x3d, 0x22, 0x72, - 0x69, 0x67, 0x68, 0x74, 0x22, 0x3e, 0xa, 0x3c, 0x66, 0x6f, - 0x6e, 0x74, 0x20, 0x73, 0x69, 0x7a, 0x65, 0x3d, 0x22, 0x2d, - 0x32, 0x22, 0x3e, 0x26, 0x63, 0x6f, 0x70, 0x79, 0x3b, 0xa, - 0x43, 0x6f, 0x70, 0x79, 0x72, 0x69, 0x67, 0x68, 0x74, 0x20, - 0x3c, 0x61, 0x20, 0x68, 0x72, 0x65, 0x66, 0x3d, 0x22, 0x68, - 0x74, 0x74, 0x70, 0x3a, 0x2f, 0x2f, 0x64, 0x75, 0x6e, 0x6b, - 0x65, 0x6c, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x64, - 0x61, 0x6d, 0x2f, 0x22, 0x3e, 0x41, 0x64, 0x61, 0x6d, 0x20, - 0x44, 0x75, 0x6e, 0x6b, 0x65, 0x6c, 0x73, 0x3c, 0x2f, 0x61, - 0x3e, 0x20, 0x32, 0x30, 0x30, 0x31, 0x3c, 0x2f, 0x66, 0x6f, - 0x6e, 0x74, 0x3e, 0x3c, 0x2f, 0x64, 0x69, 0x76, 0xa, 0x3e, - 0x3c, 0x2f, 0x74, 0x64, 0x3e, 0xa, 0x3c, 0x2f, 0x74, 0x72, - 0x3e, 0xa, 0x3c, 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x3e, - 0xa, 0xa, 0x3c, 0x2f, 0x62, 0x6f, 0x64, 0x79, 0x3e, 0xa, - 0x3c, 0x2f, 0x68, 0x74, 0x6d, 0x6c, 0x3e, 0xa, }; + 0x3e, 0xa, 0xa, 0x3c, 0x66, 0x72, 0x61, 0x6d, 0x65, 0x73, + 0x65, 0x74, 0x20, 0x63, 0x6f, 0x6c, 0x73, 0x3d, 0x22, 0x2a, + 0x22, 0x20, 0x72, 0x6f, 0x77, 0x73, 0x3d, 0x22, 0x31, 0x32, + 0x30, 0x2c, 0x2a, 0x22, 0x20, 0x66, 0x72, 0x61, 0x6d, 0x65, + 0x62, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x3d, 0x22, 0x6e, 0x6f, + 0x22, 0x3e, 0x20, 0xa, 0x20, 0x20, 0x3c, 0x66, 0x72, 0x61, + 0x6d, 0x65, 0x20, 0x73, 0x72, 0x63, 0x3d, 0x22, 0x63, 0x6f, + 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x68, 0x74, 0x6d, 0x6c, + 0x22, 0x3e, 0xa, 0x20, 0x20, 0x3c, 0x66, 0x72, 0x61, 0x6d, + 0x65, 0x20, 0x73, 0x72, 0x63, 0x3d, 0x22, 0x61, 0x62, 0x6f, + 0x75, 0x74, 0x2e, 0x68, 0x74, 0x6d, 0x6c, 0x22, 0x20, 0x6e, + 0x61, 0x6d, 0x65, 0x3d, 0x22, 0x6d, 0x61, 0x69, 0x6e, 0x22, + 0x3e, 0xa, 0x3c, 0x2f, 0x66, 0x72, 0x61, 0x6d, 0x65, 0x73, + 0x65, 0x74, 0x3e, 0xa, 0xa, 0x3c, 0x6e, 0x6f, 0x66, 0x72, + 0x61, 0x6d, 0x65, 0x73, 0x3e, 0xa, 0x3c, 0x62, 0x6f, 0x64, + 0x79, 0x3e, 0xa, 0x59, 0x6f, 0x75, 0x72, 0x20, 0x62, 0x72, + 0x6f, 0x77, 0x73, 0x65, 0x72, 0x20, 0x6d, 0x75, 0x73, 0x74, + 0x20, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x20, 0x66, + 0x72, 0x61, 0x6d, 0x65, 0x73, 0xa, 0x3c, 0x2f, 0x62, 0x6f, + 0x64, 0x79, 0x3e, 0xa, 0x3c, 0x2f, 0x6e, 0x6f, 0x66, 0x72, + 0x61, 0x6d, 0x65, 0x73, 0x3e, 0xa, 0x3c, 0x2f, 0x68, 0x74, + 0x6d, 0x6c, 0x3e, }; + +static const char data_stats_footer_plain[] = { + /* /stats_footer.plain */ + 0x2f, 0x73, 0x74, 0x61, 0x74, 0x73, 0x5f, 0x66, 0x6f, 0x6f, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0, + 0x3c, 0x2f, 0x74, 0x64, 0x3e, 0x3c, 0x2f, 0x74, 0x72, 0x3e, + 0x3c, 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x3e, 0xa, 0x3c, + 0x2f, 0x62, 0x6f, 0x64, 0x79, 0x3e, 0xa, 0x3c, 0x2f, 0x68, + 0x74, 0x6d, 0x6c, 0x3e, 0xa, }; static const char data_stats_header_html[] = { /* /stats_header.html */ @@ -251,183 +463,98 @@ static const char data_stats_header_html[] = { 0x48, 0x54, 0x54, 0x50, 0x2f, 0x31, 0x2e, 0x30, 0x20, 0x32, 0x30, 0x30, 0x20, 0x4f, 0x4b, 0xd, 0xa, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x3a, 0x20, 0x75, 0x49, 0x50, 0x2f, 0x30, - 0x2e, 0x35, 0x20, 0x28, 0x68, 0x74, 0x74, 0x70, 0x3a, 0x2f, + 0x2e, 0x39, 0x20, 0x28, 0x68, 0x74, 0x74, 0x70, 0x3a, 0x2f, 0x2f, 0x64, 0x75, 0x6e, 0x6b, 0x65, 0x6c, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x64, 0x61, 0x6d, 0x2f, 0x75, 0x69, 0x70, 0x2f, 0x29, 0xd, 0xa, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2d, 0x74, 0x79, 0x70, 0x65, 0x3a, 0x20, 0x74, 0x65, 0x78, 0x74, 0x2f, 0x68, 0x74, 0x6d, 0x6c, 0xd, 0xa, 0xd, 0xa, 0x3c, 0x68, 0x74, 0x6d, 0x6c, 0x3e, 0xa, 0x3c, - 0x68, 0x65, 0x61, 0x64, 0x3e, 0x3c, 0x74, 0x69, 0x74, 0x6c, - 0x65, 0x3e, 0x75, 0x49, 0x50, 0x20, 0x54, 0x43, 0x50, 0x2f, - 0x49, 0x50, 0x20, 0x73, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, - 0x69, 0x63, 0x73, 0x3c, 0x2f, 0x74, 0x69, 0x74, 0x6c, 0x65, - 0x3e, 0x3c, 0x2f, 0x68, 0x65, 0x61, 0x64, 0x3e, 0xa, 0x3c, 0x62, 0x6f, 0x64, 0x79, 0x20, 0x62, 0x67, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x3d, 0x22, 0x77, 0x68, 0x69, 0x74, 0x65, 0x22, - 0x3e, 0xa, 0xa, 0x3c, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x20, - 0x77, 0x69, 0x64, 0x74, 0x68, 0x3d, 0x22, 0x35, 0x34, 0x30, - 0x22, 0x20, 0x63, 0x65, 0x6c, 0x6c, 0x73, 0x70, 0x61, 0x63, - 0x69, 0x6e, 0x67, 0x3d, 0x22, 0x30, 0x22, 0x20, 0x63, 0x65, - 0x6c, 0x6c, 0x70, 0x61, 0x64, 0x64, 0x69, 0x6e, 0x67, 0x3d, - 0x22, 0x30, 0x22, 0x20, 0x62, 0x6f, 0x72, 0x64, 0x65, 0x72, - 0x3d, 0x22, 0x30, 0x22, 0x3e, 0x3c, 0x74, 0x72, 0x3e, 0xa, - 0x3c, 0x74, 0x64, 0x20, 0x77, 0x69, 0x64, 0x74, 0x68, 0x3d, - 0x22, 0x35, 0x33, 0x30, 0x22, 0x20, 0x62, 0x67, 0x63, 0x6f, - 0x6c, 0x6f, 0x72, 0x3d, 0x22, 0x23, 0x63, 0x30, 0x63, 0x30, - 0x66, 0x30, 0x22, 0x3e, 0xa, 0x3c, 0x64, 0x69, 0x76, 0x20, - 0x61, 0x6c, 0x69, 0x67, 0x6e, 0x3d, 0x22, 0x72, 0x69, 0x67, - 0x68, 0x74, 0x22, 0x3e, 0x3c, 0x62, 0x3e, 0x75, 0x49, 0x50, - 0x20, 0x54, 0x43, 0x50, 0x2f, 0x49, 0x50, 0x20, 0x73, 0x74, - 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x3c, 0x2f, - 0x62, 0x3e, 0x3c, 0x2f, 0x64, 0x69, 0x76, 0x3e, 0xa, 0x3c, - 0x2f, 0x74, 0x64, 0x3e, 0xa, 0x3c, 0x74, 0x64, 0x20, 0x77, - 0x69, 0x64, 0x74, 0x68, 0x3d, 0x22, 0x31, 0x30, 0x22, 0x3e, - 0x26, 0x6e, 0x62, 0x73, 0x70, 0x3b, 0x3c, 0x2f, 0x74, 0x64, - 0x3e, 0xa, 0x3c, 0x2f, 0x74, 0x72, 0x3e, 0xa, 0x3c, 0x74, - 0x72, 0x20, 0x76, 0x61, 0x6c, 0x69, 0x67, 0x6e, 0x3d, 0x22, - 0x74, 0x6f, 0x70, 0x22, 0x3e, 0xa, 0x3c, 0x74, 0x64, 0x20, - 0x62, 0x67, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x3d, 0x22, 0x23, - 0x63, 0x30, 0x63, 0x30, 0x66, 0x30, 0x22, 0x20, 0x77, 0x69, - 0x64, 0x74, 0x68, 0x3d, 0x22, 0x35, 0x33, 0x30, 0x22, 0x3e, - 0xa, 0x3c, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x20, 0x63, 0x65, - 0x6c, 0x6c, 0x70, 0x61, 0x64, 0x64, 0x69, 0x6e, 0x67, 0x3d, - 0x22, 0x31, 0x30, 0x22, 0x20, 0x62, 0x6f, 0x72, 0x64, 0x65, - 0x72, 0x3d, 0x22, 0x30, 0x22, 0x20, 0x77, 0x69, 0x64, 0x74, - 0x68, 0x3d, 0x22, 0x31, 0x30, 0x30, 0x25, 0x22, 0x3e, 0x3c, - 0x74, 0x72, 0x3e, 0x3c, 0x74, 0x64, 0x3e, 0xa, 0xa, 0x3c, - 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3e, 0xa, 0x3c, 0x74, - 0x61, 0x62, 0x6c, 0x65, 0x20, 0x77, 0x69, 0x64, 0x74, 0x68, - 0x3d, 0x22, 0x38, 0x30, 0x25, 0x22, 0x20, 0x63, 0x65, 0x6c, - 0x6c, 0x70, 0x61, 0x64, 0x64, 0x69, 0x6e, 0x67, 0x3d, 0x22, - 0x30, 0x22, 0x20, 0x63, 0x65, 0x6c, 0x6c, 0x73, 0x70, 0x61, - 0x63, 0x69, 0x6e, 0x67, 0x3d, 0x22, 0x30, 0x22, 0x20, 0x62, - 0x6f, 0x72, 0x64, 0x65, 0x72, 0x3d, 0x22, 0x30, 0x22, 0x3e, - 0x3c, 0x74, 0x72, 0x3e, 0x3c, 0x74, 0x64, 0x3e, 0xa, 0x3c, - 0x70, 0x72, 0x65, 0x3e, 0xa, 0x49, 0x50, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x50, 0x61, - 0x63, 0x6b, 0x65, 0x74, 0x73, 0x20, 0x64, 0x72, 0x6f, 0x70, - 0x70, 0x65, 0x64, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x50, 0x61, 0x63, - 0x6b, 0x65, 0x74, 0x73, 0x20, 0x72, 0x65, 0x63, 0x65, 0x69, - 0x76, 0x65, 0x64, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x50, 0x61, 0x63, - 0x6b, 0x65, 0x74, 0x73, 0x20, 0x73, 0x65, 0x6e, 0x74, 0xa, - 0x49, 0x50, 0x20, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x20, - 0x20, 0x20, 0x20, 0x49, 0x50, 0x20, 0x76, 0x65, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x2f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, - 0x20, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0xa, 0x20, 0x20, + 0x3e, 0xa, 0x3c, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3e, + 0xa, 0x3c, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x20, 0x77, 0x69, + 0x64, 0x74, 0x68, 0x3d, 0x22, 0x36, 0x30, 0x30, 0x22, 0x20, + 0x62, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x3d, 0x22, 0x30, 0x22, + 0x3e, 0xa, 0x3c, 0x74, 0x72, 0x3e, 0x3c, 0x74, 0x64, 0x3e, + 0xa, 0x3c, 0x70, 0x72, 0x65, 0x3e, 0xa, 0x49, 0x50, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x49, 0x50, 0x20, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, - 0x2c, 0x20, 0x68, 0x69, 0x67, 0x68, 0x20, 0x62, 0x79, 0x74, - 0x65, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x49, 0x50, 0x20, 0x6c, 0x65, - 0x6e, 0x67, 0x74, 0x68, 0x2c, 0x20, 0x6c, 0x6f, 0x77, 0x20, - 0x62, 0x79, 0x74, 0x65, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x49, 0x50, - 0x20, 0x66, 0x72, 0x61, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x73, + 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x20, 0x64, 0x72, + 0x6f, 0x70, 0x70, 0x65, 0x64, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x50, + 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x20, 0x72, 0x65, 0x63, + 0x65, 0x69, 0x76, 0x65, 0x64, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x50, + 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x20, 0x73, 0x65, 0x6e, + 0x74, 0xa, 0x49, 0x50, 0x20, 0x65, 0x72, 0x72, 0x6f, 0x72, + 0x73, 0x20, 0x20, 0x20, 0x20, 0x49, 0x50, 0x20, 0x76, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x68, 0x65, 0x61, 0x64, + 0x65, 0x72, 0x20, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x49, 0x50, 0x20, 0x6c, 0x65, 0x6e, 0x67, + 0x74, 0x68, 0x2c, 0x20, 0x68, 0x69, 0x67, 0x68, 0x20, 0x62, + 0x79, 0x74, 0x65, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x49, 0x50, 0x20, + 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x2c, 0x20, 0x6c, 0x6f, + 0x77, 0x20, 0x62, 0x79, 0x74, 0x65, 0xa, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x49, 0x50, 0x20, 0x66, 0x72, 0x61, 0x67, 0x6d, 0x65, 0x6e, + 0x74, 0x73, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x48, 0x65, 0x61, 0x64, + 0x65, 0x72, 0x20, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, + 0x6d, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x57, 0x72, 0x6f, 0x6e, 0x67, + 0x20, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0xa, + 0x49, 0x43, 0x4d, 0x50, 0x9, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x20, 0x64, 0x72, + 0x6f, 0x70, 0x70, 0x65, 0x64, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x50, + 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x20, 0x72, 0x65, 0x63, + 0x65, 0x69, 0x76, 0x65, 0x64, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x50, + 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x20, 0x73, 0x65, 0x6e, + 0x74, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x54, 0x79, 0x70, 0x65, 0x20, + 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0xa, 0x54, 0x43, 0x50, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x20, 0x64, 0x72, + 0x6f, 0x70, 0x70, 0x65, 0x64, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x50, + 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x20, 0x72, 0x65, 0x63, + 0x65, 0x69, 0x76, 0x65, 0x64, 0xa, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x50, + 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x20, 0x73, 0x65, 0x6e, + 0x74, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x43, 0x68, 0x65, 0x63, 0x6b, + 0x73, 0x75, 0x6d, 0x20, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, - 0x20, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0xa, + 0x20, 0x20, 0x20, 0x20, 0x44, 0x61, 0x74, 0x61, 0x20, 0x70, + 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x20, 0x77, 0x69, 0x74, + 0x68, 0x6f, 0x75, 0x74, 0x20, 0x41, 0x43, 0x4b, 0x73, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x57, 0x72, 0x6f, 0x6e, 0x67, 0x20, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0xa, 0x49, 0x43, - 0x4d, 0x50, 0x9, 0x20, 0x20, 0x20, 0x20, 0x20, 0x50, 0x61, - 0x63, 0x6b, 0x65, 0x74, 0x73, 0x20, 0x64, 0x72, 0x6f, 0x70, - 0x70, 0x65, 0x64, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x50, 0x61, 0x63, - 0x6b, 0x65, 0x74, 0x73, 0x20, 0x72, 0x65, 0x63, 0x65, 0x69, - 0x76, 0x65, 0x64, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x50, 0x61, 0x63, - 0x6b, 0x65, 0x74, 0x73, 0x20, 0x73, 0x65, 0x6e, 0x74, 0xa, + 0x20, 0x20, 0x20, 0x52, 0x65, 0x73, 0x65, 0x74, 0x73, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x54, 0x79, 0x70, 0x65, 0x20, 0x65, 0x72, - 0x72, 0x6f, 0x72, 0x73, 0xa, 0x54, 0x43, 0x50, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x50, 0x61, - 0x63, 0x6b, 0x65, 0x74, 0x73, 0x20, 0x64, 0x72, 0x6f, 0x70, - 0x70, 0x65, 0x64, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x50, 0x61, 0x63, - 0x6b, 0x65, 0x74, 0x73, 0x20, 0x72, 0x65, 0x63, 0x65, 0x69, - 0x76, 0x65, 0x64, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x50, 0x61, 0x63, - 0x6b, 0x65, 0x74, 0x73, 0x20, 0x73, 0x65, 0x6e, 0x74, 0xa, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, - 0x6d, 0x20, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0xa, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x44, 0x61, 0x74, 0x61, 0x20, 0x70, 0x61, 0x63, - 0x6b, 0x65, 0x74, 0x73, 0x20, 0x77, 0x69, 0x74, 0x68, 0x6f, - 0x75, 0x74, 0x20, 0x41, 0x43, 0x4b, 0x73, 0xa, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x52, 0x65, 0x73, 0x65, 0x74, 0x73, 0xa, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x52, 0x65, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6d, 0x69, - 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0xa, 0x9, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x4e, 0x6f, 0x20, 0x63, 0x6f, 0x6e, 0x6e, - 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x61, 0x76, 0x61, - 0x6c, 0x69, 0x61, 0x62, 0x6c, 0x65, 0xa, 0x9, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x20, 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70, - 0x74, 0x73, 0x20, 0x74, 0x6f, 0x20, 0x63, 0x6c, 0x6f, 0x73, - 0x65, 0x64, 0x20, 0x70, 0x6f, 0x72, 0x74, 0x73, 0xa, 0x3c, - 0x2f, 0x70, 0x72, 0x65, 0x3e, 0x9, 0x20, 0x20, 0x20, 0x20, - 0x20, 0xa, 0x3c, 0x2f, 0x74, 0x64, 0x3e, 0x3c, 0x74, 0x64, - 0x3e, 0x3c, 0x70, 0x72, 0x65, 0x3e, 0xa, }; + 0x20, 0x20, 0x20, 0x52, 0x65, 0x74, 0x72, 0x61, 0x6e, 0x73, + 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0xa, 0x9, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x4e, 0x6f, 0x20, 0x63, 0x6f, + 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x61, + 0x76, 0x61, 0x6c, 0x69, 0x61, 0x62, 0x6c, 0x65, 0xa, 0x9, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x43, 0x6f, 0x6e, 0x6e, 0x65, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x61, 0x74, 0x74, 0x65, + 0x6d, 0x70, 0x74, 0x73, 0x20, 0x74, 0x6f, 0x20, 0x63, 0x6c, + 0x6f, 0x73, 0x65, 0x64, 0x20, 0x70, 0x6f, 0x72, 0x74, 0x73, + 0xa, 0x3c, 0x2f, 0x70, 0x72, 0x65, 0x3e, 0x9, 0x20, 0x20, + 0x20, 0x20, 0x20, 0xa, 0x3c, 0x2f, 0x74, 0x64, 0x3e, 0x3c, + 0x74, 0x64, 0x3e, 0x3c, 0x70, 0x72, 0x65, 0x3e, }; -static const char data_stats_footer_plain[] = { - /* /stats_footer.plain */ - 0x2f, 0x73, 0x74, 0x61, 0x74, 0x73, 0x5f, 0x66, 0x6f, 0x6f, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0, - 0x3c, 0x2f, 0x74, 0x64, 0x3e, 0x3c, 0x2f, 0x74, 0x72, 0x3e, - 0x3c, 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x3e, 0xa, 0x3c, - 0x2f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3e, 0xa, 0xa, - 0x3c, 0x70, 0x20, 0x61, 0x6c, 0x69, 0x67, 0x6e, 0x3d, 0x22, - 0x72, 0x69, 0x67, 0x68, 0x74, 0x22, 0x3e, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0xa, 0x3c, 0x66, 0x6f, 0x6e, - 0x74, 0x20, 0x73, 0x69, 0x7a, 0x65, 0x3d, 0x22, 0x2d, 0x31, - 0x22, 0x3e, 0x3c, 0x69, 0x3e, 0xa, 0x24, 0x44, 0x61, 0x74, - 0x65, 0x3a, 0x20, 0x32, 0x30, 0x30, 0x31, 0x2f, 0x31, 0x31, - 0x2f, 0x32, 0x34, 0x20, 0x31, 0x35, 0x3a, 0x34, 0x33, 0x3a, - 0x33, 0x36, 0x20, 0x24, 0xa, 0x3c, 0x2f, 0x69, 0x3e, 0x3c, - 0x2f, 0x66, 0x6f, 0x6e, 0x74, 0x3e, 0xa, 0x3c, 0x2f, 0x70, - 0x3e, 0xa, 0xa, 0xa, 0x3c, 0x2f, 0x74, 0x72, 0x3e, 0x3c, - 0x2f, 0x74, 0x64, 0x3e, 0x3c, 0x2f, 0x74, 0x61, 0x62, 0x6c, - 0x65, 0x3e, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0xa, 0x3c, 0x2f, 0x74, 0x64, 0x3e, 0xa, 0x3c, 0x74, - 0x64, 0x20, 0x77, 0x69, 0x64, 0x74, 0x68, 0x3d, 0x22, 0x31, - 0x30, 0x22, 0x20, 0x62, 0x67, 0x63, 0x6f, 0x6c, 0x6f, 0x72, - 0x3d, 0x22, 0x23, 0x61, 0x30, 0x61, 0x30, 0x65, 0x33, 0x22, - 0x3e, 0x26, 0x6e, 0x62, 0x73, 0x70, 0x3b, 0x3c, 0x2f, 0x74, - 0x64, 0x3e, 0xa, 0x3c, 0x2f, 0x74, 0x72, 0x3e, 0x3c, 0x2f, - 0x74, 0x61, 0x62, 0x6c, 0x65, 0x3e, 0xa, 0xa, 0x3c, 0x74, - 0x61, 0x62, 0x6c, 0x65, 0x20, 0x77, 0x69, 0x64, 0x74, 0x68, - 0x3d, 0x22, 0x35, 0x34, 0x30, 0x22, 0x20, 0x63, 0x65, 0x6c, - 0x6c, 0x70, 0x61, 0x64, 0x64, 0x69, 0x6e, 0x67, 0x3d, 0x22, - 0x30, 0x22, 0x20, 0x63, 0x65, 0x6c, 0x6c, 0x73, 0x70, 0x61, - 0x63, 0x69, 0x6e, 0x67, 0x3d, 0x22, 0x30, 0x22, 0x20, 0x62, - 0x6f, 0x72, 0x64, 0x65, 0x72, 0x3d, 0x22, 0x30, 0x22, 0x3e, - 0xa, 0x3c, 0x74, 0x72, 0x3e, 0xa, 0x3c, 0x74, 0x64, 0x20, - 0x77, 0x69, 0x64, 0x74, 0x68, 0x3d, 0x22, 0x31, 0x30, 0x22, - 0x3e, 0xa, 0x3c, 0x2f, 0x74, 0x64, 0x3e, 0xa, 0x3c, 0x74, - 0x64, 0x20, 0x77, 0x69, 0x64, 0x74, 0x68, 0x3d, 0x22, 0x35, - 0x33, 0x30, 0x22, 0x20, 0x62, 0x67, 0x63, 0x6f, 0x6c, 0x6f, - 0x72, 0x3d, 0x22, 0x23, 0x61, 0x30, 0x61, 0x30, 0x65, 0x33, - 0x22, 0x3e, 0x3c, 0x64, 0x69, 0x76, 0x20, 0x61, 0x6c, 0x69, - 0x67, 0x6e, 0x3d, 0x22, 0x72, 0x69, 0x67, 0x68, 0x74, 0x22, - 0x3e, 0xa, 0x3c, 0x66, 0x6f, 0x6e, 0x74, 0x20, 0x73, 0x69, - 0x7a, 0x65, 0x3d, 0x22, 0x2d, 0x32, 0x22, 0x3e, 0x26, 0x63, - 0x6f, 0x70, 0x79, 0x3b, 0xa, 0x43, 0x6f, 0x70, 0x79, 0x72, - 0x69, 0x67, 0x68, 0x74, 0x20, 0x3c, 0x61, 0x20, 0x68, 0x72, - 0x65, 0x66, 0x3d, 0x22, 0x68, 0x74, 0x74, 0x70, 0x3a, 0x2f, - 0x2f, 0x64, 0x75, 0x6e, 0x6b, 0x65, 0x6c, 0x73, 0x2e, 0x63, - 0x6f, 0x6d, 0x2f, 0x61, 0x64, 0x61, 0x6d, 0x2f, 0x22, 0x3e, - 0x41, 0x64, 0x61, 0x6d, 0x20, 0x44, 0x75, 0x6e, 0x6b, 0x65, - 0x6c, 0x73, 0x3c, 0x2f, 0x61, 0x3e, 0x20, 0x32, 0x30, 0x30, - 0x31, 0x3c, 0x2f, 0x66, 0x6f, 0x6e, 0x74, 0x3e, 0x3c, 0x2f, - 0x64, 0x69, 0x76, 0xa, 0x3e, 0x3c, 0x2f, 0x74, 0x64, 0x3e, - 0xa, 0x3c, 0x2f, 0x74, 0x72, 0x3e, 0xa, 0x3c, 0x2f, 0x74, - 0x61, 0x62, 0x6c, 0x65, 0x3e, 0xa, 0xa, 0x3c, 0x2f, 0x62, - 0x6f, 0x64, 0x79, 0x3e, 0xa, 0x3c, 0x2f, 0x68, 0x74, 0x6d, - 0x6c, 0x3e, 0xa, }; +static const char data_tcp_footer_plain[] = { + /* /tcp_footer.plain */ + 0x2f, 0x74, 0x63, 0x70, 0x5f, 0x66, 0x6f, 0x6f, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0, + 0xa, 0x3c, 0x2f, 0x74, 0x64, 0x3e, 0x3c, 0x2f, 0x74, 0x72, + 0x3e, 0x3c, 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x3e, 0xa, + 0x3c, 0x2f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3e, 0xa, + 0x3c, 0x2f, 0x62, 0x6f, 0x64, 0x79, 0x3e, 0xa, 0x3c, 0x2f, + 0x68, 0x74, 0x6d, 0x6c, 0x3e, }; static const char data_tcp_header_html[] = { /* /tcp_header.html */ @@ -435,255 +562,58 @@ static const char data_tcp_header_html[] = { 0x48, 0x54, 0x54, 0x50, 0x2f, 0x31, 0x2e, 0x30, 0x20, 0x32, 0x30, 0x30, 0x20, 0x4f, 0x4b, 0xd, 0xa, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x3a, 0x20, 0x75, 0x49, 0x50, 0x2f, 0x30, - 0x2e, 0x35, 0x20, 0x28, 0x68, 0x74, 0x74, 0x70, 0x3a, 0x2f, + 0x2e, 0x39, 0x20, 0x28, 0x68, 0x74, 0x74, 0x70, 0x3a, 0x2f, 0x2f, 0x64, 0x75, 0x6e, 0x6b, 0x65, 0x6c, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x64, 0x61, 0x6d, 0x2f, 0x75, 0x69, 0x70, 0x2f, 0x29, 0xd, 0xa, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2d, 0x74, 0x79, 0x70, 0x65, 0x3a, 0x20, 0x74, 0x65, 0x78, 0x74, 0x2f, 0x68, 0x74, 0x6d, 0x6c, 0xd, 0xa, 0xd, 0xa, 0x3c, 0x68, 0x74, 0x6d, 0x6c, 0x3e, 0xa, 0x3c, - 0x68, 0x65, 0x61, 0x64, 0x3e, 0x3c, 0x74, 0x69, 0x74, 0x6c, - 0x65, 0x3e, 0x75, 0x49, 0x50, 0x20, 0x54, 0x43, 0x50, 0x20, - 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x20, 0x73, 0x74, 0x61, 0x74, 0x65, 0x73, 0x3c, 0x2f, 0x74, - 0x69, 0x74, 0x6c, 0x65, 0x3e, 0x3c, 0x2f, 0x68, 0x65, 0x61, - 0x64, 0x3e, 0xa, 0x3c, 0x62, 0x6f, 0x64, 0x79, 0x20, 0x62, - 0x67, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x3d, 0x22, 0x77, 0x68, - 0x69, 0x74, 0x65, 0x22, 0x3e, 0xa, 0xa, 0x3c, 0x74, 0x61, - 0x62, 0x6c, 0x65, 0x20, 0x77, 0x69, 0x64, 0x74, 0x68, 0x3d, - 0x22, 0x35, 0x34, 0x30, 0x22, 0x20, 0x63, 0x65, 0x6c, 0x6c, - 0x73, 0x70, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x3d, 0x22, 0x30, - 0x22, 0x20, 0x63, 0x65, 0x6c, 0x6c, 0x70, 0x61, 0x64, 0x64, - 0x69, 0x6e, 0x67, 0x3d, 0x22, 0x30, 0x22, 0x20, 0x62, 0x6f, - 0x72, 0x64, 0x65, 0x72, 0x3d, 0x22, 0x30, 0x22, 0x3e, 0x3c, - 0x74, 0x72, 0x3e, 0xa, 0x3c, 0x74, 0x64, 0x20, 0x77, 0x69, - 0x64, 0x74, 0x68, 0x3d, 0x22, 0x35, 0x33, 0x30, 0x22, 0x20, - 0x62, 0x67, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x3d, 0x22, 0x23, - 0x63, 0x30, 0x63, 0x30, 0x66, 0x30, 0x22, 0x3e, 0xa, 0x3c, - 0x64, 0x69, 0x76, 0x20, 0x61, 0x6c, 0x69, 0x67, 0x6e, 0x3d, - 0x22, 0x72, 0x69, 0x67, 0x68, 0x74, 0x22, 0x3e, 0x3c, 0x62, - 0x3e, 0x75, 0x49, 0x50, 0x20, 0x54, 0x43, 0x50, 0x20, 0x63, - 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, - 0x73, 0x74, 0x61, 0x74, 0x65, 0x73, 0x3c, 0x2f, 0x62, 0x3e, - 0x3c, 0x2f, 0x64, 0x69, 0x76, 0x3e, 0xa, 0x3c, 0x2f, 0x74, - 0x64, 0x3e, 0xa, 0x3c, 0x74, 0x64, 0x20, 0x77, 0x69, 0x64, - 0x74, 0x68, 0x3d, 0x22, 0x31, 0x30, 0x22, 0x3e, 0x26, 0x6e, - 0x62, 0x73, 0x70, 0x3b, 0x3c, 0x2f, 0x74, 0x64, 0x3e, 0xa, - 0x3c, 0x2f, 0x74, 0x72, 0x3e, 0xa, 0x3c, 0x74, 0x72, 0x20, - 0x76, 0x61, 0x6c, 0x69, 0x67, 0x6e, 0x3d, 0x22, 0x74, 0x6f, - 0x70, 0x22, 0x3e, 0xa, 0x3c, 0x74, 0x64, 0x20, 0x62, 0x67, - 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x3d, 0x22, 0x23, 0x63, 0x30, - 0x63, 0x30, 0x66, 0x30, 0x22, 0x20, 0x77, 0x69, 0x64, 0x74, - 0x68, 0x3d, 0x22, 0x35, 0x33, 0x30, 0x22, 0x3e, 0xa, 0x3c, - 0x74, 0x61, 0x62, 0x6c, 0x65, 0x20, 0x63, 0x65, 0x6c, 0x6c, - 0x70, 0x61, 0x64, 0x64, 0x69, 0x6e, 0x67, 0x3d, 0x22, 0x31, - 0x30, 0x22, 0x20, 0x62, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x3d, - 0x22, 0x30, 0x22, 0x20, 0x77, 0x69, 0x64, 0x74, 0x68, 0x3d, - 0x22, 0x31, 0x30, 0x30, 0x25, 0x22, 0x3e, 0x3c, 0x74, 0x72, - 0x3e, 0x3c, 0x74, 0x64, 0x3e, 0xa, 0xa, 0x3c, 0x63, 0x65, - 0x6e, 0x74, 0x65, 0x72, 0x3e, 0xa, 0xa, 0x3c, 0x74, 0x61, - 0x62, 0x6c, 0x65, 0x20, 0x77, 0x69, 0x64, 0x74, 0x68, 0x3d, - 0x22, 0x38, 0x30, 0x25, 0x22, 0x20, 0x63, 0x65, 0x6c, 0x6c, - 0x73, 0x70, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x3d, 0x22, 0x31, - 0x30, 0x22, 0x3e, 0xa, 0x3c, 0x74, 0x72, 0x3e, 0x3c, 0x74, - 0x68, 0x3e, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x3c, 0x2f, - 0x74, 0x68, 0x3e, 0x3c, 0x74, 0x68, 0x3e, 0x53, 0x74, 0x61, - 0x74, 0x65, 0x3c, 0x2f, 0x74, 0x68, 0x3e, 0x3c, 0x74, 0x68, - 0x3e, 0x52, 0x65, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6d, 0x69, - 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x3c, 0x2f, 0x74, 0x68, - 0x3e, 0x3c, 0x74, 0x68, 0x3e, 0x54, 0x69, 0x6d, 0x65, 0x72, - 0x3c, 0x2f, 0x74, 0x68, 0x3e, 0x3c, 0x74, 0x68, 0x3e, 0x46, - 0x6c, 0x61, 0x67, 0x73, 0x3c, 0x2f, 0x74, 0x68, 0x3e, 0x3c, - 0x2f, 0x74, 0x72, 0x3e, 0xa, 0xa, }; - -static const char data_files_footer_plain[] = { - /* /files_footer.plain */ - 0x2f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x5f, 0x66, 0x6f, 0x6f, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0, - 0x3c, 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x3e, 0xa, 0xa, - 0x3c, 0x2f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3e, 0xa, - 0xa, 0x3c, 0x70, 0x20, 0x61, 0x6c, 0x69, 0x67, 0x6e, 0x3d, - 0x22, 0x72, 0x69, 0x67, 0x68, 0x74, 0x22, 0x3e, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0xa, 0x3c, 0x66, 0x6f, - 0x6e, 0x74, 0x20, 0x73, 0x69, 0x7a, 0x65, 0x3d, 0x22, 0x2d, - 0x31, 0x22, 0x3e, 0x3c, 0x69, 0x3e, 0xa, 0x24, 0x44, 0x61, - 0x74, 0x65, 0x3a, 0x20, 0x32, 0x30, 0x30, 0x31, 0x2f, 0x31, - 0x31, 0x2f, 0x32, 0x34, 0x20, 0x31, 0x35, 0x3a, 0x34, 0x33, - 0x3a, 0x33, 0x36, 0x20, 0x24, 0xa, 0x3c, 0x2f, 0x69, 0x3e, - 0x3c, 0x2f, 0x66, 0x6f, 0x6e, 0x74, 0x3e, 0xa, 0x3c, 0x2f, - 0x70, 0x3e, 0xa, 0xa, 0xa, 0x3c, 0x2f, 0x74, 0x72, 0x3e, - 0x3c, 0x2f, 0x74, 0x64, 0x3e, 0x3c, 0x2f, 0x74, 0x61, 0x62, - 0x6c, 0x65, 0x3e, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0xa, 0x3c, 0x2f, 0x74, 0x64, 0x3e, 0xa, 0x3c, - 0x74, 0x64, 0x20, 0x77, 0x69, 0x64, 0x74, 0x68, 0x3d, 0x22, - 0x31, 0x30, 0x22, 0x20, 0x62, 0x67, 0x63, 0x6f, 0x6c, 0x6f, - 0x72, 0x3d, 0x22, 0x23, 0x61, 0x30, 0x61, 0x30, 0x65, 0x33, - 0x22, 0x3e, 0x26, 0x6e, 0x62, 0x73, 0x70, 0x3b, 0x3c, 0x2f, - 0x74, 0x64, 0x3e, 0xa, 0x3c, 0x2f, 0x74, 0x72, 0x3e, 0x3c, - 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x3e, 0xa, 0xa, 0x3c, - 0x74, 0x61, 0x62, 0x6c, 0x65, 0x20, 0x77, 0x69, 0x64, 0x74, - 0x68, 0x3d, 0x22, 0x35, 0x34, 0x30, 0x22, 0x20, 0x63, 0x65, - 0x6c, 0x6c, 0x70, 0x61, 0x64, 0x64, 0x69, 0x6e, 0x67, 0x3d, - 0x22, 0x30, 0x22, 0x20, 0x63, 0x65, 0x6c, 0x6c, 0x73, 0x70, - 0x61, 0x63, 0x69, 0x6e, 0x67, 0x3d, 0x22, 0x30, 0x22, 0x20, + 0x62, 0x6f, 0x64, 0x79, 0x20, 0x62, 0x67, 0x63, 0x6f, 0x6c, + 0x6f, 0x72, 0x3d, 0x22, 0x77, 0x68, 0x69, 0x74, 0x65, 0x22, + 0x3e, 0xa, 0x3c, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3e, + 0xa, 0x3c, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x20, 0x77, 0x69, + 0x64, 0x74, 0x68, 0x3d, 0x22, 0x36, 0x30, 0x30, 0x22, 0x20, 0x62, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x3d, 0x22, 0x30, 0x22, - 0x3e, 0xa, 0x3c, 0x74, 0x72, 0x3e, 0xa, 0x3c, 0x74, 0x64, - 0x20, 0x77, 0x69, 0x64, 0x74, 0x68, 0x3d, 0x22, 0x31, 0x30, - 0x22, 0x3e, 0xa, 0x3c, 0x2f, 0x74, 0x64, 0x3e, 0xa, 0x3c, - 0x74, 0x64, 0x20, 0x77, 0x69, 0x64, 0x74, 0x68, 0x3d, 0x22, - 0x35, 0x33, 0x30, 0x22, 0x20, 0x62, 0x67, 0x63, 0x6f, 0x6c, - 0x6f, 0x72, 0x3d, 0x22, 0x23, 0x61, 0x30, 0x61, 0x30, 0x65, - 0x33, 0x22, 0x3e, 0x3c, 0x64, 0x69, 0x76, 0x20, 0x61, 0x6c, - 0x69, 0x67, 0x6e, 0x3d, 0x22, 0x72, 0x69, 0x67, 0x68, 0x74, - 0x22, 0x3e, 0xa, 0x3c, 0x66, 0x6f, 0x6e, 0x74, 0x20, 0x73, - 0x69, 0x7a, 0x65, 0x3d, 0x22, 0x2d, 0x32, 0x22, 0x3e, 0x26, - 0x63, 0x6f, 0x70, 0x79, 0x3b, 0xa, 0x43, 0x6f, 0x70, 0x79, - 0x72, 0x69, 0x67, 0x68, 0x74, 0x20, 0x3c, 0x61, 0x20, 0x68, - 0x72, 0x65, 0x66, 0x3d, 0x22, 0x68, 0x74, 0x74, 0x70, 0x3a, - 0x2f, 0x2f, 0x64, 0x75, 0x6e, 0x6b, 0x65, 0x6c, 0x73, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x64, 0x61, 0x6d, 0x2f, 0x22, - 0x3e, 0x41, 0x64, 0x61, 0x6d, 0x20, 0x44, 0x75, 0x6e, 0x6b, - 0x65, 0x6c, 0x73, 0x3c, 0x2f, 0x61, 0x3e, 0x20, 0x32, 0x30, - 0x30, 0x31, 0x3c, 0x2f, 0x66, 0x6f, 0x6e, 0x74, 0x3e, 0x3c, - 0x2f, 0x64, 0x69, 0x76, 0xa, 0x3e, 0x3c, 0x2f, 0x74, 0x64, - 0x3e, 0xa, 0x3c, 0x2f, 0x74, 0x72, 0x3e, 0xa, 0x3c, 0x2f, - 0x74, 0x61, 0x62, 0x6c, 0x65, 0x3e, 0xa, 0xa, 0x3c, 0x2f, - 0x62, 0x6f, 0x64, 0x79, 0x3e, 0xa, 0x3c, 0x2f, 0x68, 0x74, - 0x6d, 0x6c, 0x3e, 0xa, }; + 0x3e, 0xa, 0x3c, 0x74, 0x72, 0x3e, 0x3c, 0x74, 0x68, 0x3e, + 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x3c, 0x2f, 0x74, 0x68, + 0x3e, 0x3c, 0x74, 0x68, 0x3e, 0x53, 0x74, 0x61, 0x74, 0x65, + 0x3c, 0x2f, 0x74, 0x68, 0x3e, 0x3c, 0x74, 0x68, 0x3e, 0x52, + 0x65, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6d, 0x69, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x73, 0x3c, 0x2f, 0x74, 0x68, 0x3e, 0x3c, + 0x74, 0x68, 0x3e, 0x54, 0x69, 0x6d, 0x65, 0x72, 0x3c, 0x2f, + 0x74, 0x68, 0x3e, 0x3c, 0x74, 0x68, 0x3e, 0x46, 0x6c, 0x61, + 0x67, 0x73, 0x3c, 0x2f, 0x74, 0x68, 0x3e, 0x3c, 0x2f, 0x74, + 0x72, 0x3e, 0xa, 0xa, }; -static const char data_files_header_html[] = { - /* /files_header.html */ - 0x2f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x2e, 0x68, 0x74, 0x6d, 0x6c, 0, - 0x48, 0x54, 0x54, 0x50, 0x2f, 0x31, 0x2e, 0x30, 0x20, 0x32, - 0x30, 0x30, 0x20, 0x4f, 0x4b, 0xd, 0xa, 0x53, 0x65, 0x72, - 0x76, 0x65, 0x72, 0x3a, 0x20, 0x75, 0x49, 0x50, 0x2f, 0x30, - 0x2e, 0x35, 0x20, 0x28, 0x68, 0x74, 0x74, 0x70, 0x3a, 0x2f, - 0x2f, 0x64, 0x75, 0x6e, 0x6b, 0x65, 0x6c, 0x73, 0x2e, 0x63, - 0x6f, 0x6d, 0x2f, 0x61, 0x64, 0x61, 0x6d, 0x2f, 0x75, 0x69, - 0x70, 0x2f, 0x29, 0xd, 0xa, 0x43, 0x6f, 0x6e, 0x74, 0x65, - 0x6e, 0x74, 0x2d, 0x74, 0x79, 0x70, 0x65, 0x3a, 0x20, 0x74, - 0x65, 0x78, 0x74, 0x2f, 0x68, 0x74, 0x6d, 0x6c, 0xd, 0xa, - 0xd, 0xa, 0x3c, 0x68, 0x74, 0x6d, 0x6c, 0x3e, 0xa, 0x3c, - 0x68, 0x65, 0x61, 0x64, 0x3e, 0x3c, 0x74, 0x69, 0x74, 0x6c, - 0x65, 0x3e, 0x75, 0x49, 0x50, 0x20, 0x77, 0x65, 0x62, 0x20, - 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x20, 0x70, 0x61, 0x67, - 0x65, 0x20, 0x68, 0x69, 0x74, 0x73, 0x3c, 0x2f, 0x74, 0x69, - 0x74, 0x6c, 0x65, 0x3e, 0x3c, 0x2f, 0x68, 0x65, 0x61, 0x64, - 0x3e, 0xa, 0x3c, 0x62, 0x6f, 0x64, 0x79, 0x20, 0x62, 0x67, - 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x3d, 0x22, 0x77, 0x68, 0x69, - 0x74, 0x65, 0x22, 0x3e, 0xa, 0xa, 0x3c, 0x74, 0x61, 0x62, - 0x6c, 0x65, 0x20, 0x77, 0x69, 0x64, 0x74, 0x68, 0x3d, 0x22, - 0x35, 0x34, 0x30, 0x22, 0x20, 0x63, 0x65, 0x6c, 0x6c, 0x73, - 0x70, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x3d, 0x22, 0x30, 0x22, - 0x20, 0x63, 0x65, 0x6c, 0x6c, 0x70, 0x61, 0x64, 0x64, 0x69, - 0x6e, 0x67, 0x3d, 0x22, 0x30, 0x22, 0x20, 0x62, 0x6f, 0x72, - 0x64, 0x65, 0x72, 0x3d, 0x22, 0x30, 0x22, 0x3e, 0x3c, 0x74, - 0x72, 0x3e, 0xa, 0x3c, 0x74, 0x64, 0x20, 0x77, 0x69, 0x64, - 0x74, 0x68, 0x3d, 0x22, 0x35, 0x33, 0x30, 0x22, 0x20, 0x62, - 0x67, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x3d, 0x22, 0x23, 0x63, - 0x30, 0x63, 0x30, 0x66, 0x30, 0x22, 0x3e, 0xa, 0x3c, 0x64, - 0x69, 0x76, 0x20, 0x61, 0x6c, 0x69, 0x67, 0x6e, 0x3d, 0x22, - 0x72, 0x69, 0x67, 0x68, 0x74, 0x22, 0x3e, 0x3c, 0x62, 0x3e, - 0x75, 0x49, 0x50, 0x20, 0x77, 0x65, 0x62, 0x20, 0x73, 0x65, - 0x72, 0x76, 0x65, 0x72, 0x20, 0x70, 0x61, 0x67, 0x65, 0x20, - 0x68, 0x69, 0x74, 0x73, 0x3c, 0x2f, 0x62, 0x3e, 0x3c, 0x2f, - 0x64, 0x69, 0x76, 0x3e, 0xa, 0x3c, 0x2f, 0x74, 0x64, 0x3e, - 0xa, 0x3c, 0x74, 0x64, 0x20, 0x77, 0x69, 0x64, 0x74, 0x68, - 0x3d, 0x22, 0x31, 0x30, 0x22, 0x3e, 0x26, 0x6e, 0x62, 0x73, - 0x70, 0x3b, 0x3c, 0x2f, 0x74, 0x64, 0x3e, 0xa, 0x3c, 0x2f, - 0x74, 0x72, 0x3e, 0xa, 0x3c, 0x74, 0x72, 0x20, 0x76, 0x61, - 0x6c, 0x69, 0x67, 0x6e, 0x3d, 0x22, 0x74, 0x6f, 0x70, 0x22, - 0x3e, 0xa, 0x3c, 0x74, 0x64, 0x20, 0x62, 0x67, 0x63, 0x6f, - 0x6c, 0x6f, 0x72, 0x3d, 0x22, 0x23, 0x63, 0x30, 0x63, 0x30, - 0x66, 0x30, 0x22, 0x20, 0x77, 0x69, 0x64, 0x74, 0x68, 0x3d, - 0x22, 0x35, 0x33, 0x30, 0x22, 0x3e, 0xa, 0x3c, 0x74, 0x61, - 0x62, 0x6c, 0x65, 0x20, 0x63, 0x65, 0x6c, 0x6c, 0x70, 0x61, - 0x64, 0x64, 0x69, 0x6e, 0x67, 0x3d, 0x22, 0x31, 0x30, 0x22, - 0x20, 0x62, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x3d, 0x22, 0x30, - 0x22, 0x20, 0x77, 0x69, 0x64, 0x74, 0x68, 0x3d, 0x22, 0x31, - 0x30, 0x30, 0x25, 0x22, 0x3e, 0x3c, 0x74, 0x72, 0x3e, 0x3c, - 0x74, 0x64, 0x3e, 0xa, 0x3c, 0x63, 0x65, 0x6e, 0x74, 0x65, - 0x72, 0x3e, 0xa, 0x3c, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x20, - 0x77, 0x69, 0x64, 0x74, 0x68, 0x3d, 0x22, 0x38, 0x30, 0x25, - 0x22, 0x20, 0x63, 0x65, 0x6c, 0x6c, 0x73, 0x70, 0x61, 0x63, - 0x69, 0x6e, 0x67, 0x3d, 0x22, 0x31, 0x30, 0x22, 0x20, 0x63, - 0x65, 0x6c, 0x6c, 0x70, 0x61, 0x64, 0x64, 0x69, 0x6e, 0x67, - 0x3d, 0x22, 0x30, 0x22, 0x20, 0x62, 0x6f, 0x72, 0x64, 0x65, - 0x72, 0x3d, 0x22, 0x30, 0x22, 0x3e, 0xa, }; +const struct fsdata_file file_cgi_files[] = {{NULL, data_cgi_files, data_cgi_files + 11, sizeof(data_cgi_files) - 11}}; -static const char data_tcp_footer_plain[] = { - /* /tcp_footer.plain */ - 0x2f, 0x74, 0x63, 0x70, 0x5f, 0x66, 0x6f, 0x6f, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0, - 0xa, 0x3c, 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x3e, 0xa, - 0x3c, 0x2f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3e, 0xa, - 0xa, 0xa, 0x3c, 0x70, 0x20, 0x61, 0x6c, 0x69, 0x67, 0x6e, - 0x3d, 0x22, 0x72, 0x69, 0x67, 0x68, 0x74, 0x22, 0x3e, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0xa, 0x3c, 0x66, - 0x6f, 0x6e, 0x74, 0x20, 0x73, 0x69, 0x7a, 0x65, 0x3d, 0x22, - 0x2d, 0x31, 0x22, 0x3e, 0x3c, 0x69, 0x3e, 0xa, 0x24, 0x44, - 0x61, 0x74, 0x65, 0x3a, 0x20, 0x32, 0x30, 0x30, 0x31, 0x2f, - 0x31, 0x31, 0x2f, 0x32, 0x34, 0x20, 0x31, 0x35, 0x3a, 0x34, - 0x33, 0x3a, 0x33, 0x36, 0x20, 0x24, 0xa, 0x3c, 0x2f, 0x69, - 0x3e, 0x3c, 0x2f, 0x66, 0x6f, 0x6e, 0x74, 0x3e, 0xa, 0x3c, - 0x2f, 0x70, 0x3e, 0xa, 0xa, 0xa, 0x3c, 0x2f, 0x74, 0x72, - 0x3e, 0x3c, 0x2f, 0x74, 0x64, 0x3e, 0x3c, 0x2f, 0x74, 0x61, - 0x62, 0x6c, 0x65, 0x3e, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0xa, 0x3c, 0x2f, 0x74, 0x64, 0x3e, 0xa, - 0x3c, 0x74, 0x64, 0x20, 0x77, 0x69, 0x64, 0x74, 0x68, 0x3d, - 0x22, 0x31, 0x30, 0x22, 0x20, 0x62, 0x67, 0x63, 0x6f, 0x6c, - 0x6f, 0x72, 0x3d, 0x22, 0x23, 0x61, 0x30, 0x61, 0x30, 0x65, - 0x33, 0x22, 0x3e, 0x26, 0x6e, 0x62, 0x73, 0x70, 0x3b, 0x3c, - 0x2f, 0x74, 0x64, 0x3e, 0xa, 0x3c, 0x2f, 0x74, 0x72, 0x3e, - 0x3c, 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x3e, 0xa, 0xa, - 0x3c, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x20, 0x77, 0x69, 0x64, - 0x74, 0x68, 0x3d, 0x22, 0x35, 0x34, 0x30, 0x22, 0x20, 0x63, - 0x65, 0x6c, 0x6c, 0x70, 0x61, 0x64, 0x64, 0x69, 0x6e, 0x67, - 0x3d, 0x22, 0x30, 0x22, 0x20, 0x63, 0x65, 0x6c, 0x6c, 0x73, - 0x70, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x3d, 0x22, 0x30, 0x22, - 0x20, 0x62, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x3d, 0x22, 0x30, - 0x22, 0x3e, 0xa, 0x3c, 0x74, 0x72, 0x3e, 0xa, 0x3c, 0x74, - 0x64, 0x20, 0x77, 0x69, 0x64, 0x74, 0x68, 0x3d, 0x22, 0x31, - 0x30, 0x22, 0x3e, 0xa, 0x3c, 0x2f, 0x74, 0x64, 0x3e, 0xa, - 0x3c, 0x74, 0x64, 0x20, 0x77, 0x69, 0x64, 0x74, 0x68, 0x3d, - 0x22, 0x35, 0x33, 0x30, 0x22, 0x20, 0x62, 0x67, 0x63, 0x6f, - 0x6c, 0x6f, 0x72, 0x3d, 0x22, 0x23, 0x61, 0x30, 0x61, 0x30, - 0x65, 0x33, 0x22, 0x3e, 0x3c, 0x64, 0x69, 0x76, 0x20, 0x61, - 0x6c, 0x69, 0x67, 0x6e, 0x3d, 0x22, 0x72, 0x69, 0x67, 0x68, - 0x74, 0x22, 0x3e, 0xa, 0x3c, 0x66, 0x6f, 0x6e, 0x74, 0x20, - 0x73, 0x69, 0x7a, 0x65, 0x3d, 0x22, 0x2d, 0x32, 0x22, 0x3e, - 0x26, 0x63, 0x6f, 0x70, 0x79, 0x3b, 0xa, 0x43, 0x6f, 0x70, - 0x79, 0x72, 0x69, 0x67, 0x68, 0x74, 0x20, 0x3c, 0x61, 0x20, - 0x68, 0x72, 0x65, 0x66, 0x3d, 0x22, 0x68, 0x74, 0x74, 0x70, - 0x3a, 0x2f, 0x2f, 0x64, 0x75, 0x6e, 0x6b, 0x65, 0x6c, 0x73, - 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x64, 0x61, 0x6d, 0x2f, - 0x22, 0x3e, 0x41, 0x64, 0x61, 0x6d, 0x20, 0x44, 0x75, 0x6e, - 0x6b, 0x65, 0x6c, 0x73, 0x3c, 0x2f, 0x61, 0x3e, 0x20, 0x32, - 0x30, 0x30, 0x31, 0x3c, 0x2f, 0x66, 0x6f, 0x6e, 0x74, 0x3e, - 0x3c, 0x2f, 0x64, 0x69, 0x76, 0xa, 0x3e, 0x3c, 0x2f, 0x74, - 0x64, 0x3e, 0xa, 0x3c, 0x2f, 0x74, 0x72, 0x3e, 0xa, 0x3c, - 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x3e, 0xa, 0xa, 0x3c, - 0x2f, 0x62, 0x6f, 0x64, 0x79, 0x3e, 0xa, 0x3c, 0x2f, 0x68, - 0x74, 0x6d, 0x6c, 0x3e, 0xa, }; +const struct fsdata_file file_cgi_stats[] = {{file_cgi_files, data_cgi_stats, data_cgi_stats + 11, sizeof(data_cgi_stats) - 11}}; -const struct fsdata_file file_cgi_stats[] = {{NULL, data_cgi_stats, data_cgi_stats + 11, sizeof(data_cgi_stats) - 11}}; +const struct fsdata_file file_cgi_tcp[] = {{file_cgi_stats, data_cgi_tcp, data_cgi_tcp + 9, sizeof(data_cgi_tcp) - 9}}; -const struct fsdata_file file_cgi_files[] = {{file_cgi_stats, data_cgi_files, data_cgi_files + 11, sizeof(data_cgi_files) - 11}}; +const struct fsdata_file file_img_bg_png[] = {{file_cgi_tcp, data_img_bg_png, data_img_bg_png + 12, sizeof(data_img_bg_png) - 12}}; -const struct fsdata_file file_cgi_tcp[] = {{file_cgi_files, data_cgi_tcp, data_cgi_tcp + 9, sizeof(data_cgi_tcp) - 9}}; +const struct fsdata_file file_about_html[] = {{file_img_bg_png, data_about_html, data_about_html + 12, sizeof(data_about_html) - 12}}; -const struct fsdata_file file_index_html[] = {{file_cgi_tcp, data_index_html, data_index_html + 12, sizeof(data_index_html) - 12}}; +const struct fsdata_file file_control_html[] = {{file_about_html, data_control_html, data_control_html + 14, sizeof(data_control_html) - 14}}; -const struct fsdata_file file_stats_header_html[] = {{file_index_html, data_stats_header_html, data_stats_header_html + 19, sizeof(data_stats_header_html) - 19}}; +const struct fsdata_file file_404_html[] = {{file_control_html, data_404_html, data_404_html + 10, sizeof(data_404_html) - 10}}; -const struct fsdata_file file_stats_footer_plain[] = {{file_stats_header_html, data_stats_footer_plain, data_stats_footer_plain + 20, sizeof(data_stats_footer_plain) - 20}}; - -const struct fsdata_file file_tcp_header_html[] = {{file_stats_footer_plain, data_tcp_header_html, data_tcp_header_html + 17, sizeof(data_tcp_header_html) - 17}}; - -const struct fsdata_file file_files_footer_plain[] = {{file_tcp_header_html, data_files_footer_plain, data_files_footer_plain + 20, sizeof(data_files_footer_plain) - 20}}; +const struct fsdata_file file_files_footer_plain[] = {{file_404_html, data_files_footer_plain, data_files_footer_plain + 20, sizeof(data_files_footer_plain) - 20}}; const struct fsdata_file file_files_header_html[] = {{file_files_footer_plain, data_files_header_html, data_files_header_html + 19, sizeof(data_files_header_html) - 19}}; -const struct fsdata_file file_tcp_footer_plain[] = {{file_files_header_html, data_tcp_footer_plain, data_tcp_footer_plain + 18, sizeof(data_tcp_footer_plain) - 18}}; +const struct fsdata_file file_index_html[] = {{file_files_header_html, data_index_html, data_index_html + 12, sizeof(data_index_html) - 12}}; -#define FS_ROOT file_tcp_footer_plain +const struct fsdata_file file_stats_footer_plain[] = {{file_index_html, data_stats_footer_plain, data_stats_footer_plain + 20, sizeof(data_stats_footer_plain) - 20}}; -#define FS_NUMFILES 10 \ No newline at end of file +const struct fsdata_file file_stats_header_html[] = {{file_stats_footer_plain, data_stats_header_html, data_stats_header_html + 19, sizeof(data_stats_header_html) - 19}}; + +const struct fsdata_file file_tcp_footer_plain[] = {{file_stats_header_html, data_tcp_footer_plain, data_tcp_footer_plain + 18, sizeof(data_tcp_footer_plain) - 18}}; + +const struct fsdata_file file_tcp_header_html[] = {{file_tcp_footer_plain, data_tcp_header_html, data_tcp_header_html + 17, sizeof(data_tcp_header_html) - 17}}; + +#define FS_ROOT file_tcp_header_html + +#define FS_NUMFILES 14 \ No newline at end of file diff --git a/apps/httpd/fsdata.h b/apps/httpd/fsdata.h index 8b0c6f2..e525f4e 100644 --- a/apps/httpd/fsdata.h +++ b/apps/httpd/fsdata.h @@ -10,11 +10,7 @@ * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the Swedish Institute - * of Computer Science and its contributors. - * 4. Neither the name of the Institute nor the names of its contributors + * 3. Neither the name of the Institute nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * @@ -34,7 +30,7 @@ * * Author: Adam Dunkels * - * $Id: fsdata.h,v 1.4 2001/11/25 18:47:36 adam Exp $ + * $Id: fsdata.h,v 1.4.2.1 2003/10/04 22:54:06 adam Exp $ */ #ifndef __FSDATA_H__ #define __FSDATA_H__ diff --git a/apps/httpd/httpd.c b/apps/httpd/httpd.c index 1c821ea..ad927d0 100644 --- a/apps/httpd/httpd.c +++ b/apps/httpd/httpd.c @@ -1,3 +1,54 @@ +/** + * \addtogroup exampleapps + * @{ + */ + +/** + * \defgroup httpd Web server + * @{ + * + * The uIP web server is a very simplistic implementation of an HTTP + * server. It can serve web pages and files from a read-only ROM + * filesystem, and provides a very small scripting language. + * + * The script language is very simple and works as follows. Each + * script line starts with a command character, either "i", "t", "c", + * "#" or ".". The "i" command tells the script interpreter to + * "include" a file from the virtual file system and output it to the + * web browser. The "t" command should be followed by a line of text + * that is to be output to the browser. The "c" command is used to + * call one of the C functions from the httpd-cgi.c file. A line that + * starts with a "#" is ignored (i.e., the "#" denotes a comment), and + * the "." denotes the last script line. + * + * The script that produces the file statistics page looks somewhat + * like this: + * + \code +i /header.html +t

    File statistics


    RemoteStateRetransmissionsTimerFlags
    +t
    /index.html +c a /index.html +t
    /cgi/files +c a /cgi/files +t
    /cgi/tcp +c a /cgi/tcp +t
    /404.html +c a /404.html +t
    +i /footer.plain +. + \endcode + * + */ + + +/** + * \file + * HTTP server. + * \author Adam Dunkels + */ + /* * Copyright (c) 2001, Adam Dunkels. * All rights reserved. @@ -10,10 +61,7 @@ * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Adam Dunkels. - * 4. The name of the author may not be used to endorse or promote + * 3. The name of the author may not be used to endorse or promote * products derived from this software without specific prior * written permission. * @@ -31,7 +79,7 @@ * * This file is part of the uIP TCP/IP stack. * - * $Id: httpd.c,v 1.27 2002/01/15 17:22:08 adam Exp $ + * $Id: httpd.c,v 1.28.2.6 2003/10/07 13:22:27 adam Exp $ * */ @@ -63,6 +111,7 @@ struct httpd_state *hs; extern const struct fsdata_file file_index_html; +extern const struct fsdata_file file_404_html; static void next_scriptline(void); static void next_scriptstate(void); @@ -83,6 +132,12 @@ static void next_scriptstate(void); #define ISO_period 0x2e +/*-----------------------------------------------------------------------------------*/ +/** + * Initialize the web server. + * + * Starts to listen for incoming connection requests on TCP port 80. + */ /*-----------------------------------------------------------------------------------*/ void httpd_init(void) @@ -90,18 +145,19 @@ httpd_init(void) fs_init(); /* Listen to port 80. */ - uip_listen(80); + uip_listen(HTONS(80)); } /*-----------------------------------------------------------------------------------*/ void -httpd(void) +httpd_appcall(void) { struct fs_file fsfile; + u8_t i; - + switch(uip_conn->lport) { /* This is the web server: */ - case htons(80): + case HTONS(80): /* Pick out the application state from the uip_conn structure. */ hs = (struct httpd_state *)(uip_conn->appstate); @@ -121,9 +177,6 @@ httpd(void) connection yet. */ hs->state = HTTP_NOGET; hs->count = 0; - /* Don't send any data in return; we wait for the HTTP request - instead. */ - uip_send(uip_appdata, 0); return; } else if(uip_poll()) { @@ -161,11 +214,18 @@ httpd(void) PRINT("request for file "); PRINTLN(&uip_appdata[4]); - if(!fs_open((const char *)&uip_appdata[4], &fsfile)) { - PRINTLN("couldn't open file"); - fs_open(file_index_html.name, &fsfile); + /* Check for a request for "/". */ + if(uip_appdata[4] == ISO_slash && + uip_appdata[5] == 0) { + fs_open(file_index_html.name, &fsfile); + } else { + if(!fs_open((const char *)&uip_appdata[4], &fsfile)) { + PRINTLN("couldn't open file"); + fs_open(file_404_html.name, &fsfile); + } } + if(uip_appdata[4] == ISO_slash && uip_appdata[5] == ISO_c && uip_appdata[6] == ISO_g && @@ -196,10 +256,9 @@ httpd(void) into the file and send back more data. If we are out of data to send, we close the connection. */ if(uip_acked()) { - - if(hs->count >= uip_mss()) { - hs->count -= uip_mss(); - hs->dataptr += uip_mss(); + if(hs->count >= uip_conn->len) { + hs->count -= uip_conn->len; + hs->dataptr += uip_conn->len; } else { hs->count = 0; } @@ -213,11 +272,9 @@ httpd(void) } } } - } - - if(hs->state == HTTP_FUNC) { + } else { /* Call the CGI function. */ - if(cgitab[hs->script[2] - ISO_a]()) { + if(cgitab[hs->script[2] - ISO_a](uip_acked())) { /* If the function returns non-zero, we jump to the next line in the script. */ next_scriptline(); @@ -228,8 +285,7 @@ httpd(void) if(hs->state != HTTP_FUNC && !uip_poll()) { /* Send a piece of data, but not more than the MSS of the connection. */ - uip_send(hs->dataptr, - hs->count > uip_mss()? uip_mss(): hs->count); + uip_send(hs->dataptr, hs->count); } /* Finally, return to uIP. Our outgoing packet will soon be on its @@ -284,7 +340,7 @@ next_scriptstate(void) hs->state = HTTP_FUNC; hs->dataptr = NULL; hs->count = 0; - uip_reset_acked(); + cgitab[hs->script[2] - ISO_a](0); break; case ISO_i: /* Include a file. */ @@ -311,3 +367,5 @@ next_scriptstate(void) } } /*-----------------------------------------------------------------------------------*/ +/** @} */ +/** @} */ diff --git a/apps/httpd/httpd.h b/apps/httpd/httpd.h index a0a7f87..a56221c 100644 --- a/apps/httpd/httpd.h +++ b/apps/httpd/httpd.h @@ -1,3 +1,14 @@ +/** + * \addtogroup httpd + * @{ + */ + +/** + * \file + * HTTP server header file. + * \author Adam Dunkels + */ + /* * Copyright (c) 2001, Adam Dunkels. * All rights reserved. @@ -10,10 +21,7 @@ * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Adam Dunkels. - * 4. The name of the author may not be used to endorse or promote + * 3. The name of the author may not be used to endorse or promote * products derived from this software without specific prior * written permission. * @@ -31,7 +39,7 @@ * * This file is part of the uIP TCP/IP stack. * - * $Id: httpd.h,v 1.3 2002/01/15 17:22:08 adam Exp $ + * $Id: httpd.h,v 1.4.2.3 2003/10/06 22:56:44 adam Exp $ * */ @@ -39,12 +47,14 @@ #define __HTTPD_H__ void httpd_init(void); -void httpd(void); +void httpd_appcall(void); /* UIP_APPCALL: the name of the application function. This function must return void and take no arguments (i.e., C type "void appfunc(void)"). */ -#define UIP_APPCALL httpd +#ifndef UIP_APPCALL +#define UIP_APPCALL httpd_appcall +#endif struct httpd_state { u8_t state; @@ -56,7 +66,9 @@ struct httpd_state { /* UIP_APPSTATE_SIZE: The size of the application-specific state stored in the uip_conn structure. */ +#ifndef UIP_APPSTATE_SIZE #define UIP_APPSTATE_SIZE (sizeof(struct httpd_state)) +#endif #define FS_STATISTICS 1 diff --git a/apps/httpd/makefsdata b/apps/httpd/makefsdata index cfbe920..cc655f3 100755 --- a/apps/httpd/makefsdata +++ b/apps/httpd/makefsdata @@ -15,8 +15,12 @@ while($file = ) { chop($file); open(HEADER, "> /tmp/header") || die $!; - print(HEADER "HTTP/1.0 200 OK\r\n"); - print(HEADER "Server: uIP/0.5 (http://dunkels.com/adam/uip/)\r\n"); + if($file =~ /404.html/) { + print(HEADER "HTTP/1.0 404 File not found\r\n"); + } else { + print(HEADER "HTTP/1.0 200 OK\r\n"); + } + print(HEADER "Server: uIP/0.9 (http://dunkels.com/adam/uip/)\r\n"); if($file =~ /\.html$/) { print(HEADER "Content-type: text/html\r\n"); } elsif($file =~ /\.gif$/) { diff --git a/apps/resolv/resolv.c b/apps/resolv/resolv.c new file mode 100644 index 0000000..f068e5c --- /dev/null +++ b/apps/resolv/resolv.c @@ -0,0 +1,467 @@ +/** + * \addtogroup uip + * @{ + */ + +/** + * \defgroup uipdns uIP hostname resolver functions + * @{ + * + * The uIP DNS resolver functions are used to lookup a hostname and + * map it to a numerical IP address. It maintains a list of resolved + * hostnames that can be queried with the resolv_lookup() + * function. New hostnames can be resolved using the resolv_query() + * function. + * + * When a hostname has been resolved (or found to be non-existant), + * the resolver code calls a callback function called resolv_found() + * that must be implemented by the module that uses the resolver. + */ + +/** + * \file + * DNS host name to IP address resolver. + * \author Adam Dunkels + * + * This file implements a DNS host name to IP address resolver. + */ + +/* + * Copyright (c) 2002-2003, Adam Dunkels. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. The name of the author may not be used to endorse or promote + * products derived from this software without specific prior + * written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS + * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE + * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + * This file is part of the uIP TCP/IP stack. + * + * $Id: resolv.c,v 1.1.2.5 2003/10/06 22:56:44 adam Exp $ + * + */ + +#include "resolv.h" + +#include + +#ifndef NULL +#define NULL (void *)0 +#endif /* NULL */ + +/** \internal The maximum number of retries when asking for a name. */ +#define MAX_RETRIES 8 + +/** \internal The DNS message header. */ +struct dns_hdr { + u16_t id; + u8_t flags1, flags2; +#define DNS_FLAG1_RESPONSE 0x80 +#define DNS_FLAG1_OPCODE_STATUS 0x10 +#define DNS_FLAG1_OPCODE_INVERSE 0x08 +#define DNS_FLAG1_OPCODE_STANDARD 0x00 +#define DNS_FLAG1_AUTHORATIVE 0x04 +#define DNS_FLAG1_TRUNC 0x02 +#define DNS_FLAG1_RD 0x01 +#define DNS_FLAG2_RA 0x80 +#define DNS_FLAG2_ERR_MASK 0x0f +#define DNS_FLAG2_ERR_NONE 0x00 +#define DNS_FLAG2_ERR_NAME 0x03 + u16_t numquestions; + u16_t numanswers; + u16_t numauthrr; + u16_t numextrarr; +}; + +/** \internal The DNS answer message structure. */ +struct dns_answer { + /* DNS answer record starts with either a domain name or a pointer + to a name already present somewhere in the packet. */ + u16_t type; + u16_t class; + u16_t ttl[2]; + u16_t len; + u16_t ipaddr[2]; +}; + +struct namemap { +#define STATE_UNUSED 0 +#define STATE_NEW 1 +#define STATE_ASKING 2 +#define STATE_DONE 3 +#define STATE_ERROR 4 + u8_t state; + u8_t tmr; + u8_t retries; + u8_t seqno; + u8_t err; + char name[32]; + u16_t ipaddr[2]; +}; + +#ifndef UIP_CONF_RESOLV_ENTRIES +#define RESOLV_ENTRIES 4 +#else /* UIP_CONF_RESOLV_ENTRIES */ +#define RESOLV_ENTRIES UIP_CONF_RESOLV_ENTRIES +#endif /* UIP_CONF_RESOLV_ENTRIES */ + + +static struct namemap names[RESOLV_ENTRIES]; + +static u8_t seqno; + +static struct uip_udp_conn *resolv_conn = NULL; + + +/*-----------------------------------------------------------------------------------*/ +/** \internal + * Walk through a compact encoded DNS name and return the end of it. + * + * \return The end of the name. + */ +/*-----------------------------------------------------------------------------------*/ +static unsigned char * +parse_name(unsigned char *query) +{ + unsigned char n; + + do { + n = *query++; + + while(n > 0) { + /* printf("%c", *query);*/ + ++query; + --n; + }; + /* printf(".");*/ + } while(*query != 0); + /* printf("\n");*/ + return query + 1; +} +/*-----------------------------------------------------------------------------------*/ +/** \internal + * Runs through the list of names to see if there are any that have + * not yet been queried and, if so, sends out a query. + */ +/*-----------------------------------------------------------------------------------*/ +static void +check_entries(void) +{ + register struct dns_hdr *hdr; + char *query, *nptr, *nameptr; + static u8_t i; + static u8_t n; + register struct namemap *namemapptr; + + for(i = 0; i < RESOLV_ENTRIES; ++i) { + namemapptr = &names[i]; + if(namemapptr->state == STATE_NEW || + namemapptr->state == STATE_ASKING) { + if(namemapptr->state == STATE_ASKING) { + if(--namemapptr->tmr == 0) { + if(++namemapptr->retries == MAX_RETRIES) { + namemapptr->state = STATE_ERROR; + resolv_found(namemapptr->name, NULL); + continue; + } + namemapptr->tmr = namemapptr->retries; + } else { + /* printf("Timer %d\n", namemapptr->tmr);*/ + /* Its timer has not run out, so we move on to next + entry. */ + continue; + } + } else { + namemapptr->state = STATE_ASKING; + namemapptr->tmr = 1; + namemapptr->retries = 0; + } + hdr = (struct dns_hdr *)uip_appdata; + memset(hdr, 0, sizeof(struct dns_hdr)); + hdr->id = htons(i); + hdr->flags1 = DNS_FLAG1_RD; + hdr->numquestions = HTONS(1); + query = (char *)uip_appdata + 12; + nameptr = namemapptr->name; + --nameptr; + /* Convert hostname into suitable query format. */ + do { + ++nameptr; + nptr = query; + ++query; + for(n = 0; *nameptr != '.' && *nameptr != 0; ++nameptr) { + *query = *nameptr; + ++query; + ++n; + } + *nptr = n; + } while(*nameptr != 0); + { + static unsigned char endquery[] = + {0,0,1,0,1}; + memcpy(query, endquery, 5); + } + uip_udp_send((unsigned char)(query + 5 - (char *)uip_appdata)); + break; + } + } +} +/*-----------------------------------------------------------------------------------*/ +/** \internal + * Called when new UDP data arrives. + */ +/*-----------------------------------------------------------------------------------*/ +static void +newdata(void) +{ + char *nameptr; + struct dns_answer *ans; + struct dns_hdr *hdr; + static u8_t nquestions, nanswers; + static u8_t i; + register struct namemap *namemapptr; + + hdr = (struct dns_hdr *)uip_appdata; + /* printf("ID %d\n", htons(hdr->id)); + printf("Query %d\n", hdr->flags1 & DNS_FLAG1_RESPONSE); + printf("Error %d\n", hdr->flags2 & DNS_FLAG2_ERR_MASK); + printf("Num questions %d, answers %d, authrr %d, extrarr %d\n", + htons(hdr->numquestions), + htons(hdr->numanswers), + htons(hdr->numauthrr), + htons(hdr->numextrarr)); + */ + + /* The ID in the DNS header should be our entry into the name + table. */ + i = htons(hdr->id); + namemapptr = &names[i]; + if(i < RESOLV_ENTRIES && + namemapptr->state == STATE_ASKING) { + + /* This entry is now finished. */ + namemapptr->state = STATE_DONE; + namemapptr->err = hdr->flags2 & DNS_FLAG2_ERR_MASK; + + /* Check for error. If so, call callback to inform. */ + if(namemapptr->err != 0) { + namemapptr->state = STATE_ERROR; + resolv_found(namemapptr->name, NULL); + return; + } + + /* We only care about the question(s) and the answers. The authrr + and the extrarr are simply discarded. */ + nquestions = htons(hdr->numquestions); + nanswers = htons(hdr->numanswers); + + /* Skip the name in the question. XXX: This should really be + checked agains the name in the question, to be sure that they + match. */ + nameptr = parse_name((char *)uip_appdata + 12) + 4; + + while(nanswers > 0) { + /* The first byte in the answer resource record determines if it + is a compressed record or a normal one. */ + if(*nameptr & 0xc0) { + /* Compressed name. */ + nameptr +=2; + /* printf("Compressed anwser\n");*/ + } else { + /* Not compressed name. */ + nameptr = parse_name((char *)nameptr); + } + + ans = (struct dns_answer *)nameptr; + /* printf("Answer: type %x, class %x, ttl %x, length %x\n", + htons(ans->type), htons(ans->class), (htons(ans->ttl[0]) + << 16) | htons(ans->ttl[1]), htons(ans->len));*/ + + /* Check for IP address type and Internet class. Others are + discarded. */ + if(ans->type == HTONS(1) && + ans->class == HTONS(1) && + ans->len == HTONS(4)) { + /* printf("IP address %d.%d.%d.%d\n", + htons(ans->ipaddr[0]) >> 8, + htons(ans->ipaddr[0]) & 0xff, + htons(ans->ipaddr[1]) >> 8, + htons(ans->ipaddr[1]) & 0xff);*/ + /* XXX: we should really check that this IP address is the one + we want. */ + namemapptr->ipaddr[0] = ans->ipaddr[0]; + namemapptr->ipaddr[1] = ans->ipaddr[1]; + + resolv_found(namemapptr->name, namemapptr->ipaddr); + return; + } else { + nameptr = nameptr + 10 + htons(ans->len); + } + --nanswers; + } + } + +} +/*-----------------------------------------------------------------------------------*/ +/** \internal + * The main UDP function. + */ +/*-----------------------------------------------------------------------------------*/ +void +udp_appcall(void) +{ + if(uip_udp_conn->rport == HTONS(53)) { + if(uip_poll()) { + check_entries(); + } + if(uip_newdata()) { + newdata(); + } + } +} +/*-----------------------------------------------------------------------------------*/ +/** + * Queues a name so that a question for the name will be sent out. + * + * \param name The hostname that is to be queried. + */ +/*-----------------------------------------------------------------------------------*/ +void +resolv_query(char *name) +{ + static u8_t i; + static u8_t lseq, lseqi; + register struct namemap *nameptr; + + lseq = lseqi = 0; + + for(i = 0; i < RESOLV_ENTRIES; ++i) { + nameptr = &names[i]; + if(nameptr->state == STATE_UNUSED) { + break; + } + if(seqno - nameptr->seqno > lseq) { + lseq = seqno - nameptr->seqno; + lseqi = i; + } + } + + if(i == RESOLV_ENTRIES) { + i = lseqi; + nameptr = &names[i]; + } + + /* printf("Using entry %d\n", i);*/ + + strcpy(nameptr->name, name); + nameptr->state = STATE_NEW; + nameptr->seqno = seqno; + ++seqno; + + /* if(resolv_conn != NULL) { + dispatcher_emit(uip_signal_poll_udp, resolv_conn, DISPATCHER_BROADCAST); + } */ +} +/*-----------------------------------------------------------------------------------*/ +/** + * Look up a hostname in the array of known hostnames. + * + * \note This function only looks in the internal array of known + * hostnames, it does not send out a query for the hostname if none + * was found. The function resolv_query() can be used to send a query + * for a hostname. + * + * \return A pointer to a 4-byte representation of the hostname's IP + * address, or NULL if the hostname was not found in the array of + * hostnames. + */ +/*-----------------------------------------------------------------------------------*/ +u16_t * +resolv_lookup(char *name) +{ + static u8_t i; + struct namemap *nameptr; + + /* Walk through the list to see if the name is in there. If it is + not, we return NULL. */ + for(i = 0; i < RESOLV_ENTRIES; ++i) { + nameptr = &names[i]; + if(nameptr->state == STATE_DONE && + strcmp(name, nameptr->name) == 0) { + return nameptr->ipaddr; + } + } + return NULL; +} +/*-----------------------------------------------------------------------------------*/ +/** + * Obtain the currently configured DNS server. + * + * \return A pointer to a 4-byte representation of the IP address of + * the currently configured DNS server or NULL if no DNS server has + * been configured. + */ +/*-----------------------------------------------------------------------------------*/ +u16_t * +resolv_getserver(void) +{ + if(resolv_conn == NULL) { + return NULL; + } + return resolv_conn->ripaddr; +} +/*-----------------------------------------------------------------------------------*/ +/** + * Configure which DNS server to use for queries. + * + * \param dnsserver A pointer to a 4-byte representation of the IP + * address of the DNS server to be configured. + */ +/*-----------------------------------------------------------------------------------*/ +void +resolv_conf(u16_t *dnsserver) +{ + if(resolv_conn != NULL) { + uip_udp_remove(resolv_conn); + } + + resolv_conn = uip_udp_new(dnsserver, 53); +} +/*-----------------------------------------------------------------------------------*/ +/** + * Initalize the resolver. + */ +/*-----------------------------------------------------------------------------------*/ +void +resolv_init(void) +{ + static u8_t i; + + for(i = 0; i < RESOLV_ENTRIES; ++i) { + names[i].state = STATE_DONE; + } + +} +/*-----------------------------------------------------------------------------------*/ + +/** @} */ +/** @} */ diff --git a/cc65/rs232dev.h b/apps/resolv/resolv.h similarity index 59% rename from cc65/rs232dev.h rename to apps/resolv/resolv.h index 175650a..06b723d 100644 --- a/cc65/rs232dev.h +++ b/apps/resolv/resolv.h @@ -1,5 +1,15 @@ +/** + * \addtogroup uipdns + * @{ + */ +/** + * \file + * DNS resolver code header file. + * \author Adam Dunkels + */ + /* - * Copyright (c) 2001, Adam Dunkels. + * Copyright (c) 2002-2003, Adam Dunkels. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -10,10 +20,7 @@ * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Adam Dunkels. - * 4. The name of the author may not be used to endorse or promote + * 3. The name of the author may not be used to endorse or promote * products derived from this software without specific prior * written permission. * @@ -31,23 +38,34 @@ * * This file is part of the uIP TCP/IP stack. * - * $Id: rs232dev.h,v 1.1 2001/11/20 20:49:45 adam Exp $ + * $Id: resolv.h,v 1.1.2.3 2003/10/04 21:18:59 adam Exp $ * */ - -#ifndef __RS232DEV_H__ -#define __RS232DEV_H__ +#ifndef __RESOLV_H__ +#define __RESOLV_H__ #include "uip.h" -void rs232dev_init(void); -u8_t rs232dev_read(void); -void rs232dev_send(void); +/** + * Callback function which is called when a hostname is found. + * + * This function must be implemented by the module that uses the DNS + * resolver. It is called when a hostname is found, or when a hostname + * was not found. + * + * \param name A pointer to the name that was looked up. \param + * ipaddr A pointer to a 4-byte array containing the IP address of the + * hostname, or NULL if the hostname could not be found. + */ +void resolv_found(char *name, u16_t *ipaddr); -#if UIP_BUFSIZE > 255 -u16_t rs232dev_poll(void); -#else -u8_t rs232dev_poll(void); -#endif /* UIP_BUFSIZE > 255 */ +/* Functions. */ +void resolv_conf(u16_t *dnsserver); +u16_t *resolv_getserver(void); +void resolv_init(void); +u16_t *resolv_lookup(char *name); +void resolv_query(char *name); -#endif /* __RS232DEV_H__ */ +#endif /* __RESOLV_H__ */ + +/** @} */ diff --git a/apps/smtp/makesmtpstrings b/apps/smtp/makesmtpstrings new file mode 100755 index 0000000..720b358 --- /dev/null +++ b/apps/smtp/makesmtpstrings @@ -0,0 +1,27 @@ +#!/usr/bin/perl + +open(OUTPUTC, "> smtp-strings.c"); +open(OUTPUTH, "> smtp-strings.h"); + +open(FILE, "smtp-strings"); + +while() { + if(/(.+) "(.+)"/) { + $var = $1; + $data = $2; + + printf(OUTPUTC "char $var\[%d] = \n", length($data) + 1); + printf(OUTPUTC "/* $data */\n"); + printf(OUTPUTC "{"); + for($j = 0; $j < length($data); $j++) { + printf(OUTPUTC "%#02x, ", unpack("C", substr($data, $j, 1))); + } + printf(OUTPUTC "};\n"); + + printf(OUTPUTH "extern char $var\[%d];\n", length($data) + 1); + + } +} +exit 0; + +printf(OUTPUT "%#02x, ", unpack("C", $data)); diff --git a/apps/smtp/smtp-strings b/apps/smtp/smtp-strings new file mode 100644 index 0000000..a9e937c --- /dev/null +++ b/apps/smtp/smtp-strings @@ -0,0 +1,9 @@ +smtp_220 "220" +smtp_helo "HELO " +smtp_mail_from "MAIL FROM: " +smtp_rcpt_to "RCPT TO: " +smtp_data "DATA" +smtp_to "To: " +smtp_from "From: " +smtp_subject "Subject: " +smtp_quit "QUIT" \ No newline at end of file diff --git a/apps/smtp/smtp-strings.c b/apps/smtp/smtp-strings.c new file mode 100644 index 0000000..dde1efe --- /dev/null +++ b/apps/smtp/smtp-strings.c @@ -0,0 +1,27 @@ +char smtp_220[4] = +/* 220 */ +{0x32, 0x32, 0x30, }; +char smtp_helo[6] = +/* HELO */ +{0x48, 0x45, 0x4c, 0x4f, 0x20, }; +char smtp_mail_from[12] = +/* MAIL FROM: */ +{0x4d, 0x41, 0x49, 0x4c, 0x20, 0x46, 0x52, 0x4f, 0x4d, 0x3a, 0x20, }; +char smtp_rcpt_to[10] = +/* RCPT TO: */ +{0x52, 0x43, 0x50, 0x54, 0x20, 0x54, 0x4f, 0x3a, 0x20, }; +char smtp_data[5] = +/* DATA */ +{0x44, 0x41, 0x54, 0x41, }; +char smtp_to[5] = +/* To: */ +{0x54, 0x6f, 0x3a, 0x20, }; +char smtp_from[7] = +/* From: */ +{0x46, 0x72, 0x6f, 0x6d, 0x3a, 0x20, }; +char smtp_subject[10] = +/* Subject: */ +{0x53, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x3a, 0x20, }; +char smtp_quit[5] = +/* QUIT */ +{0x51, 0x55, 0x49, 0x54, }; diff --git a/apps/smtp/smtp-strings.h b/apps/smtp/smtp-strings.h new file mode 100644 index 0000000..15bed46 --- /dev/null +++ b/apps/smtp/smtp-strings.h @@ -0,0 +1,9 @@ +extern char smtp_220[4]; +extern char smtp_helo[6]; +extern char smtp_mail_from[12]; +extern char smtp_rcpt_to[10]; +extern char smtp_data[5]; +extern char smtp_to[5]; +extern char smtp_from[7]; +extern char smtp_subject[10]; +extern char smtp_quit[5]; diff --git a/apps/smtp/smtp.c b/apps/smtp/smtp.c new file mode 100644 index 0000000..fadfe2b --- /dev/null +++ b/apps/smtp/smtp.c @@ -0,0 +1,422 @@ +/** + * \addtogroup exampleapps + * @{ + */ + +/** + * \defgroup smtp SMTP E-mail sender + * @{ + * + * The Simple Mail Transfer Protocol (SMTP) as defined by RFC821 is + * the standard way of sending and transfering e-mail on the + * Internet. This simple example implementation is intended as an + * example of how to implement protocols in uIP, and is able to send + * out e-mail but has not been extensively tested. + */ + +/** + * \file + * SMTP example implementation + * \author Adam Dunkels + */ + +/* + * Copyright (c) 2002, Adam Dunkels. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. The name of the author may not be used to endorse or promote + * products derived from this software without specific prior + * written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS + * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE + * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + * This file is part of the uIP TCP/IP stack. + * + * $Id: smtp.c,v 1.1.2.7 2003/10/07 13:47:50 adam Exp $ + * + */ + +#include "uip.h" +#include "smtp.h" + +#include "smtp-strings.h" + +#include + +#define STATE_SEND_NONE 0 +#define STATE_SEND_HELO 1 +#define STATE_SEND_MAIL_FROM 2 +#define STATE_SEND_RCPT_TO 3 +#define STATE_SEND_DATA 4 +#define STATE_SEND_DATA_HEADERS 5 +#define STATE_SEND_DATA_MESSAGE 6 +#define STATE_SEND_DATA_END 7 +#define STATE_SEND_QUIT 8 +#define STATE_SEND_DONE 9 + +static char *localhostname; +static u16_t smtpserver[2]; + + + +#define ISO_nl 0x0a +#define ISO_cr 0x0d + +#define ISO_period 0x2e + +#define ISO_2 0x32 +#define ISO_3 0x33 +#define ISO_4 0x34 +#define ISO_5 0x35 + + + +/*-----------------------------------------------------------------------------------*/ +static void +senddata(struct smtp_state *s) +{ + char *textptr; + + if(s->textlen != 0 && + s->textlen == s->sendptr) { + return; + } + + textptr = (char *)uip_appdata; + switch(s->state) { + case STATE_SEND_HELO: + /* Create HELO message. */ + strcpy(textptr, smtp_helo); + textptr += sizeof(smtp_helo) - 1; + strcpy(textptr, localhostname); + textptr += strlen(localhostname); + *textptr = ISO_cr; + ++textptr; + *textptr = ISO_nl; + ++textptr; + /* printf("s->sendptr %d\n", s->sendptr);*/ + if(s->sendptr == 0) { + s->textlen = textptr - (char *)uip_appdata; + /* printf("s->textlen %d\n", s->textlen);*/ + } + textptr = (char *)uip_appdata; + break; + case STATE_SEND_MAIL_FROM: + /* Create MAIL FROM message. */ + strcpy(textptr, smtp_mail_from); + textptr += sizeof(smtp_mail_from) - 1; + strcpy(textptr, s->from); + textptr += strlen(s->from); + *textptr = ISO_cr; + ++textptr; + *textptr = ISO_nl; + ++textptr; + if(s->sendptr == 0) { + s->textlen = textptr - (char *)uip_appdata; + } + textptr = (char *)uip_appdata; + break; + case STATE_SEND_RCPT_TO: + /* Create RCPT_TO message. */ + strcpy(textptr, smtp_rcpt_to); + textptr += sizeof(smtp_rcpt_to) - 1; + strcpy(textptr, s->to); + textptr += strlen(s->to); + *textptr = ISO_cr; + ++textptr; + *textptr = ISO_nl; + ++textptr; + if(s->sendptr == 0) { + s->textlen = textptr - (char *)uip_appdata; + } + textptr = (char *)uip_appdata; + break; + case STATE_SEND_DATA: + strcpy(textptr, smtp_data); + textptr += sizeof(smtp_data) - 1; + *textptr = ISO_cr; + ++textptr; + *textptr = ISO_nl; + ++textptr; + if(s->sendptr == 0) { + s->textlen = textptr - (char *)uip_appdata; + } + textptr = (char *)uip_appdata; + break; + case STATE_SEND_DATA_HEADERS: + /* Create mail headers-> */ + strcpy(textptr, smtp_to); + textptr += sizeof(smtp_to) - 1; + strcpy(textptr, s->to); + textptr += strlen(s->to); + *textptr = ISO_cr; + ++textptr; + *textptr = ISO_nl; + ++textptr; + + strcpy(textptr, smtp_from); + textptr += sizeof(smtp_from) - 1; + strcpy(textptr, s->from); + textptr += strlen(s->from); + *textptr = ISO_cr; + ++textptr; + *textptr = ISO_nl; + ++textptr; + + strcpy(textptr, smtp_subject); + textptr += sizeof(smtp_subject) - 1; + strcpy(textptr, s->subject); + textptr += strlen(s->subject); + *textptr = ISO_cr; + ++textptr; + *textptr = ISO_nl; + ++textptr; + + if(s->sendptr == 0) { + s->textlen = textptr - (char *)uip_appdata; + } + textptr = (char *)uip_appdata; + break; + case STATE_SEND_DATA_MESSAGE: + textptr = s->msg; + if(s->sendptr == 0) { + s->textlen = s->msglen; + } + break; + case STATE_SEND_DATA_END: + *textptr = ISO_cr; + ++textptr; + *textptr = ISO_nl; + ++textptr; + *textptr = ISO_period; + ++textptr; + *textptr = ISO_cr; + ++textptr; + *textptr = ISO_nl; + ++textptr; + if(s->sendptr == 0) { + s->textlen = 5; + } + textptr = (char *)uip_appdata; + break; + case STATE_SEND_QUIT: + strcpy(textptr, smtp_quit); + textptr += sizeof(smtp_quit) - 1; + *textptr = ISO_cr; + ++textptr; + *textptr = ISO_nl; + ++textptr; + if(s->sendptr == 0) { + s->textlen = textptr - (char *)uip_appdata; + } + textptr = (char *)uip_appdata; + break; + default: + return; + } + + textptr += s->sendptr; + + if(s->textlen - s->sendptr > uip_mss()) { + s->sentlen = uip_mss(); + } else { + s->sentlen = s->textlen - s->sendptr; + } + + /* textptr[s->sentlen] = 0; + printf("Senidng '%s'\n", textptr);*/ + + uip_send(textptr, s->sentlen); +} +/*-----------------------------------------------------------------------------------*/ +static void +acked(struct smtp_state *s) +{ + s->sendptr += s->sentlen; + s->sentlen = 0; + + if(s->sendptr == s->textlen) { + switch(s->state) { + case STATE_SEND_DATA_HEADERS: + s->state = STATE_SEND_DATA_MESSAGE; + s->sendptr = s->textlen = 0; + break; + case STATE_SEND_DATA_MESSAGE: + s->state = STATE_SEND_DATA_END; + s->sendptr = s->textlen = 0; + break; + case STATE_SEND_DATA_END: + s->state = STATE_SEND_QUIT; + s->sendptr = s->textlen = 0; + break; + case STATE_SEND_QUIT: + s->state = STATE_SEND_DONE; + smtp_done(SMTP_ERR_OK); + uip_close(); + break; + } + } +} +/*-----------------------------------------------------------------------------------*/ +static void +newdata(struct smtp_state *s) +{ + if(*(char *)uip_appdata == ISO_5) { + smtp_done(1); + uip_abort(); + return; + } + /* printf("Got %d bytes: '%s'\n", uip_datalen(), + uip_appdata);*/ + switch(s->state) { + case STATE_SEND_NONE: + if(strncmp((char *)uip_appdata, smtp_220, 3) == 0) { + /* printf("Newdata(): SEND_NONE, got 220, towards SEND_HELO\n");*/ + s->state = STATE_SEND_HELO; + s->sendptr = 0; + } + break; + case STATE_SEND_HELO: + if(*(char *)uip_appdata == ISO_2) { + /* printf("Newdata(): SEND_HELO, got 2*, towards SEND_MAIL_FROM\n");*/ + s->state = STATE_SEND_MAIL_FROM; + s->sendptr = 0; + } + break; + case STATE_SEND_MAIL_FROM: + if(*(char *)uip_appdata == ISO_2) { + /* printf("Newdata(): SEND_MAIL_FROM, got 2*, towards SEND_RCPT_TO\n"); */ + /* printf("2\n");*/ + s->state = STATE_SEND_RCPT_TO; + s->textlen = s->sendptr = 0; + } + break; + case STATE_SEND_RCPT_TO: + if(*(char *)uip_appdata == ISO_2) { + /* printf("2\n");*/ + s->state = STATE_SEND_DATA; + s->textlen = s->sendptr = 0; + } + break; + case STATE_SEND_DATA: + if(*(char *)uip_appdata == ISO_3) { + /* printf("3\n");*/ + s->state = STATE_SEND_DATA_HEADERS; + s->textlen = s->sendptr = 0; + } + break; + case STATE_SEND_DATA_HEADERS: + if(*(char *)uip_appdata == ISO_3) { + /* printf("3\n");*/ + s->state = STATE_SEND_DATA_MESSAGE; + s->textlen = s->sendptr = 0; + } + break; + } + +} +/*-----------------------------------------------------------------------------------*/ +void +smtp_appcall(void) +{ + struct smtp_state *s; + + s = (struct smtp_state *)uip_conn->appstate; + + if(uip_connected()) { + /* senddata();*/ + return; + } + if(uip_acked()) { + acked(s); + } + if(uip_newdata()) { + newdata(s); + } + if(uip_rexmit() || + uip_newdata() || + uip_acked()) { + senddata(s); + } else if(uip_poll()) { + senddata(s); + } + /* if(uip_closed()) { + printf("Dnoe\n"); + }*/ + + +} +/*-----------------------------------------------------------------------------------*/ +/** + * Send an e-mail. + * + * \param to The e-mail address of the receiver of the e-mail. + * \param from The e-mail address of the sender of the e-mail. + * \param subject The subject of the e-mail. + * \param msg The actual e-mail message. + * \param msglen The length of the e-mail message. + */ +/*-----------------------------------------------------------------------------------*/ +unsigned char +smtp_send(char *to, char *from, char *subject, + char *msg, u16_t msglen) +{ + struct uip_conn *conn; + struct smtp_state *s; + + conn = uip_connect(smtpserver, HTONS(25)); + if(conn == NULL) { + return 0; + } + s = conn->appstate; + + s->state = STATE_SEND_NONE; + s->sentlen = s->sendptr = s->textlen = 0; + s->to = to; + s->from = from; + s->subject = subject; + s->msg = msg; + s->msglen = msglen; + + return 1; +} +/*-----------------------------------------------------------------------------------*/ +/** + * Specificy an SMTP server and hostname. + * + * This function is used to configure the SMTP module with an SMTP + * server and the hostname of the host. + * + * \param lhostname The hostname of the uIP host. + * + * \param server A pointer to a 4-byte array representing the IP + * address of the SMTP server to be configured. + */ +/*-----------------------------------------------------------------------------------*/ +void +smtp_configure(char *lhostname, u16_t *server) +{ + localhostname = lhostname; + smtpserver[0] = server[0]; + smtpserver[1] = server[1]; +} +/*-----------------------------------------------------------------------------------*/ +/** @} */ diff --git a/unix/uip_arch.h b/apps/smtp/smtp.h similarity index 53% rename from unix/uip_arch.h rename to apps/smtp/smtp.h index ec48bf5..8eae70b 100644 --- a/unix/uip_arch.h +++ b/apps/smtp/smtp.h @@ -1,5 +1,18 @@ + +/** + * \addtogroup smtp + * @{ + */ + + +/** + * \file + * SMTP header file + * \author Adam Dunkels + */ + /* - * Copyright (c) 2001, Adam Dunkels. + * Copyright (c) 2002, Adam Dunkels. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -10,10 +23,7 @@ * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Adam Dunkels. - * 4. The name of the author may not be used to endorse or promote + * 3. The name of the author may not be used to endorse or promote * products derived from this software without specific prior * written permission. * @@ -31,23 +41,60 @@ * * This file is part of the uIP TCP/IP stack. * - * $Id: uip_arch.h,v 1.1 2002/01/10 06:22:56 adam Exp $ + * $Id: smtp.h,v 1.1.2.4 2003/10/06 22:56:45 adam Exp $ * */ +#ifndef __SMTP_H__ +#define __SMTP_H__ -#ifndef __UIP_ARCH_H__ -#define __UIP_ARCH_H__ +#include "uipopt.h" -#include "uip.h" +/** + * Error number that signifies a non-error condition. + */ +#define SMTP_ERR_OK 0 -#if UIP_BUFSIZE > 255 -void uip_add_rcv_nxt(u16_t n); -void uip_add_ack_nxt(u16_t n); -#else -void uip_add_rcv_nxt(u8_t n); -void uip_add_ack_nxt(u8_t n); -#endif /* UIP_BUFSIZE > 255 */ -u16_t uip_ipchksum(void); -u16_t uip_tcpchksum(void); +/** + * Callback function that is called when an e-mail transmission is + * done. + * + * This function must be implemented by the module that uses the SMTP + * module. + * + * \param error The number of the error if an error occured, or + * SMTP_ERR_OK. + */ +void smtp_done(unsigned char error); -#endif /* __UIP_ARCH_H__ */ +/* Functions. */ +void smtp_configure(char *localhostname, u16_t *smtpserver); +unsigned char smtp_send(char *to, char *from, + char *subject, char *msg, + u16_t msglen); + +void smtp_appcall(void); + +struct smtp_state { + u8_t state; + char *to; + char *from; + char *subject; + char *msg; + u16_t msglen; + + u16_t sentlen, textlen; + u16_t sendptr; + +}; + + +#ifndef UIP_APPCALL +#define UIP_APPCALL smtp_appcall +#endif + +#ifndef UIP_APPSTATE_SIZE +#define UIP_APPSTATE_SIZE (sizeof(struct smtp_state)) +#endif + + +#endif /* __SMTP_H__ */ diff --git a/apps/telnet/telnet.c b/apps/telnet/telnet.c new file mode 100644 index 0000000..f72b6fc --- /dev/null +++ b/apps/telnet/telnet.c @@ -0,0 +1,151 @@ +/* + * Copyright (c) 2002, Adam Dunkels. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. The name of the author may not be used to endorse or promote + * products derived from this software without specific prior + * written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS + * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE + * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + * This file is part of the uIP TCP/IP stack. + * + * $Id: telnet.c,v 1.1.2.3 2003/10/06 11:20:45 adam Exp $ + * + */ + +#include "uip.h" + +#include "telnet.h" + +#ifndef NULL +#define NULL (void *)0 +#endif /* NULL */ + +#define FLAG_CLOSE 1 +#define FLAG_ABORT 2 +/*-----------------------------------------------------------------------------------*/ +unsigned char +telnet_send(struct telnet_state *s, char *text, u16_t len) +{ + if(s->text != NULL) { + return 1; + } + s->text = text; + s->textlen = len; + s->sentlen = 0; + return 0; +} +/*-----------------------------------------------------------------------------------*/ +unsigned char +telnet_close(struct telnet_state *s) +{ + s->flags = FLAG_CLOSE; + if(s->text != NULL) { + return 1; + } + return 0; +} +/*-----------------------------------------------------------------------------------*/ +unsigned char +telnet_abort(struct telnet_state *s) +{ + s->flags = FLAG_ABORT; + if(s->text != NULL) { + return 1; + } + return 0; +} +/*-----------------------------------------------------------------------------------*/ +static void +acked(struct telnet_state *s) +{ + s->textlen -= s->sentlen; + if(s->textlen == 0) { + s->text = NULL; + telnet_sent(s); + } else { + s->text += s->sentlen; + } + s->sentlen = 0; +} +/*-----------------------------------------------------------------------------------*/ +static void +senddata(struct telnet_state *s) +{ + if(s->text == NULL) { + uip_send(s->text, 0); + return; + } + if(s->textlen > uip_mss()) { + s->sentlen = uip_mss(); + } else { + s->sentlen = s->textlen; + } + uip_send(s->text, s->sentlen); +} +/*-----------------------------------------------------------------------------------*/ +void telnet_app(void) +{ + struct telnet_state *s = (struct telnet_state *)uip_conn->appstate; + + if(uip_connected()) { + s->flags = 0; + telnet_connected(s); + senddata(s); + return; + } + + if(uip_closed()) { + telnet_closed(s); + } + + if(uip_aborted()) { + telnet_aborted(s); + } + if(uip_timedout()) { + telnet_timedout(s); + } + + + if(s->flags & FLAG_CLOSE) { + uip_close(); + return; + } + if(s->flags & FLAG_ABORT) { + uip_abort(); + return; + } + if(uip_acked()) { + acked(s); + } + if(uip_newdata()) { + telnet_newdata(s, (char *)uip_appdata, uip_datalen()); + } + if(uip_rexmit() || + uip_newdata() || + uip_acked()) { + senddata(s); + } else if(uip_poll()) { + senddata(s); + } +} +/*-----------------------------------------------------------------------------------*/ diff --git a/cc65/uip_arch.h b/apps/telnet/telnet.h similarity index 58% rename from cc65/uip_arch.h rename to apps/telnet/telnet.h index 78bb8f7..0d68780 100644 --- a/cc65/uip_arch.h +++ b/apps/telnet/telnet.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2001, Adam Dunkels. + * Copyright (c) 2002, Adam Dunkels. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -10,10 +10,7 @@ * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Adam Dunkels. - * 4. The name of the author may not be used to endorse or promote + * 3. The name of the author may not be used to endorse or promote * products derived from this software without specific prior * written permission. * @@ -31,23 +28,39 @@ * * This file is part of the uIP TCP/IP stack. * - * $Id: uip_arch.h,v 1.1 2001/11/20 20:49:45 adam Exp $ + * $Id: telnet.h,v 1.1.2.4 2003/10/06 22:56:45 adam Exp $ * */ +#ifndef __TELNET_H__ +#define __TELNET_H__ -#ifndef __UIP_ARCH_H__ -#define __UIP_ARCH_H__ +struct telnet_state { + unsigned char flags; + char *text; + u16_t textlen; + u16_t sentlen; +}; -#include "uip.h" +void telnet_app(void); -#if UIP_BUFSIZE > 255 -void __fastcall__ uip_add_rcv_nxt(u16_t n); -void __fastcall__ uip_add_ack_nxt(u16_t n); -#else -void __fastcall__ uip_add_rcv_nxt(u8_t n); -void __fastcall__ uip_add_ack_nxt(u8_t n); -#endif /* UIP_BUFSIZE > 255 */ -u16_t uip_ipchksum(void); -u16_t uip_tcpchksum(void); +#ifndef UIP_APPCALL +#define UIP_APPCALL telnet_app +#endif -#endif /* __UIP_ARCH_H__ */ +#ifndef UIP_APPSTATE_SIZE +#define UIP_APPSTATE_SIZE (sizeof(struct telnet_state)) +#endif + + +unsigned char telnet_send(struct telnet_state *s, char *text, u16_t len); +unsigned char telnet_close(struct telnet_state *s); +unsigned char telnet_abort(struct telnet_state *s); + +/* Callbacks, must be implemented by the caller. */ +void telnet_connected(struct telnet_state *s); +void telnet_closed(struct telnet_state *s); +void telnet_sent(struct telnet_state *s); +void telnet_aborted(struct telnet_state *s); +void telnet_timedout(struct telnet_state *s); +void telnet_newdata(struct telnet_state *s, char *data, u16_t len); +#endif /* __TELNET_H__ */ diff --git a/apps/telnetd/memb.c b/apps/telnetd/memb.c new file mode 100644 index 0000000..a2079a2 --- /dev/null +++ b/apps/telnetd/memb.c @@ -0,0 +1,152 @@ +/** + * \addtogroup exampleapps + * @{ + */ + +/** + * \file + * Memory block allocation routines. + * \author Adam Dunkels + * + * The memory block allocation routines provide a simple yet powerful + * set of functions for managing a set of memory blocks of fixed + * size. A set of memory blocks is statically declared with the + * MEMB() macro. Memory blocks are allocated from the declared + * memory by the memb_alloc() function, and are deallocated with the + * memb_free() function. + * + * \note Because of namespace clashes only one MEMB() can be + * declared per C module, and the name scope of a MEMB() memory + * block is local to each C module. + * + * The following example shows how to declare and use a memory block + * called "cmem" which has 8 chunks of memory with each memory chunk + * being 20 bytes large. + * + \code + MEMB(cmem, 20, 8); + + int main(int argc, char *argv[]) { + char *ptr; + + memb_init(&cmem); + + ptr = memb_alloc(&cmem); + + if(ptr != NULL) { + do_something(ptr); + } else { + printf("Could not allocate memory.\n"); + } + + if(memb_free(ptr) == 0) { + printf("Deallocation succeeded.\n"); + } + } + \endcode + * + */ + +#include + +#include "memb.h" + +/*------------------------------------------------------------------------------*/ +/** + * Initialize a memory block that was declared with MEMB(). + * + * \param m A memory block previosly declared with MEMB(). + */ +/*------------------------------------------------------------------------------*/ +void +memb_init(struct memb_blocks *m) +{ + memset(m->mem, (m->size + 1) * m->num, 0); +} +/*------------------------------------------------------------------------------*/ +/** + * Allocate a memory block from a block of memory declared with MEMB(). + * + * \param m A memory block previosly declared with MEMB(). + */ +/*------------------------------------------------------------------------------*/ +char * +memb_alloc(struct memb_blocks *m) +{ + int i; + char *ptr; + + ptr = m->mem; + for(i = 0; i < m->num; ++i) { + if(*ptr == 0) { + /* If this block was unused, we increase the reference count to + indicate that it now is used and return a pointer to the + first byte following the reference counter. */ + ++*ptr; + return ptr + 1; + } + ptr += m->size + 1; + } + + /* No free block was found, so we return NULL to indicate failure to + allocate block. */ + return NULL; +} +/*------------------------------------------------------------------------------*/ +/** + * Deallocate a memory block from a memory block previously declared + * with MEMB(). + * + * \param m m A memory block previosly declared with MEMB(). + * + * \param ptr A pointer to the memory block that is to be deallocated. + * + * \return The new reference count for the memory block (should be 0 + * if successfully deallocated) or -1 if the pointer "ptr" did not + * point to a legal memory block. + */ +/*------------------------------------------------------------------------------*/ +char +memb_free(struct memb_blocks *m, char *ptr) +{ + int i; + char *ptr2; + + /* Walk through the list of blocks and try to find the block to + which the pointer "ptr" points to. */ + ptr2 = m->mem; + for(i = 0; i < m->num; ++i) { + + if(ptr2 == ptr - 1) { + /* We've found to block to which "ptr" points so we decrease the + reference count and return the new value of it. */ + return --*ptr2; + } + ptr2 += m->size + 1; + } + return -1; +} +/*------------------------------------------------------------------------------*/ +/** + * Increase the reference count for a memory chunk. + * + * \note No sanity checks are currently made. + * + * \param m m A memory block previosly declared with MEMB(). + * + * \param ptr A pointer to the memory chunk for which the reference + * count should be increased. + * + * \return The new reference count. + */ +/*------------------------------------------------------------------------------*/ +char +memb_ref(struct memb_blocks *m, char *ptr) +{ + return ++*(ptr - 1); +} +/*------------------------------------------------------------------------------*/ + + + + diff --git a/apps/telnetd/memb.h b/apps/telnetd/memb.h new file mode 100644 index 0000000..d073b30 --- /dev/null +++ b/apps/telnetd/memb.h @@ -0,0 +1,43 @@ +/** + * \addtogroup exampleapps + * @{ + */ + +/** + * \file + * Memory block allocation routines. + * \author Adam Dunkels + * + */ + +#ifndef __MEMB_H__ +#define __MEMB_H__ + +/** + * Declare a memory block. + * + * \param name The name of the memory block (later used with + * memb_init(), memb_alloc() and memb_free()). + * + * \param size The size of each memory chunk, in bytes. + * + * \param num The total number of memory chunks in the block. + * + */ +#define MEMB(name, size, num) \ + static char memb_mem[(size + 1) * num]; \ + static struct memb_blocks name = {size, num, memb_mem} + +struct memb_blocks { + unsigned short size; + unsigned short num; + char *mem; +}; + +void memb_init(struct memb_blocks *m); +char *memb_alloc(struct memb_blocks *m); +char memb_ref(struct memb_blocks *m, char *ptr); +char memb_free(struct memb_blocks *m, char *ptr); + + +#endif /* __MEMB_H__ */ diff --git a/apps/telnetd/telnetd-shell.c b/apps/telnetd/telnetd-shell.c new file mode 100644 index 0000000..d5abfb8 --- /dev/null +++ b/apps/telnetd/telnetd-shell.c @@ -0,0 +1,181 @@ +/** + * \addtogroup telnetd + * @{ + */ + +/** + * \file + * An example telnet server shell + * \author Adam Dunkels + */ + +/* + * Copyright (c) 2003, Adam Dunkels. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. The name of the author may not be used to endorse or promote + * products derived from this software without specific prior + * written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS + * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE + * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + * This file is part of the Contiki desktop OS. + * + * $Id: telnetd-shell.c,v 1.1.2.1 2003/10/06 22:56:22 adam Exp $ + * + */ + +#include "uip.h" +#include "telnetd.h" +#include + +struct ptentry { + char c; + void (* pfunc)(struct telnetd_state *s, char *str); +}; + +/*-----------------------------------------------------------------------------------*/ +static void +parse(struct telnetd_state *s, register char *str, struct ptentry *t) +{ + register struct ptentry *p; + char *sstr; + + sstr = str; + + /* Loop over the parse table entries in t in order to find one that + matches the first character in str. */ + for(p = t; p->c != 0; ++p) { + if(*str == p->c) { + /* Skip rest of the characters up to the first space. */ + while(*str != ' ') { + ++str; + } + + /* Skip all spaces.*/ + while(*str == ' ') { + ++str; + } + + /* Call parse table entry function and return. */ + p->pfunc(s, str); + return; + } + } + + /* Did not find matching entry in parse table. We just call the + default handler supplied by the caller and return. */ + p->pfunc(s, str); +} +/*-----------------------------------------------------------------------------------*/ +static void +exitt(struct telnetd_state *s, char *str) +{ + telnetd_close(s); +} +/*-----------------------------------------------------------------------------------*/ +static void +inttostr(register char *str, unsigned int i) +{ + str[0] = '0' + i / 100; + if(str[0] == '0') { + str[0] = ' '; + } + str[1] = '0' + (i / 10) % 10; + if(str[1] == '0') { + str[1] = ' '; + } + str[2] = '0' + i % 10; + str[3] = ' '; + str[4] = 0; +} +/*-----------------------------------------------------------------------------------*/ +static void +stats(struct telnetd_state *s, char *strr) +{ + char str[10]; + + inttostr(str, uip_stat.ip.recv); + telnetd_output(s, "IP packets received ", str); + inttostr(str, uip_stat.ip.sent); + telnetd_output(s, "IP packets sent ", str); + inttostr(str, uip_stat.ip.drop); + telnetd_output(s, "IP packets dropped ", str); + + inttostr(str, uip_stat.icmp.recv); + telnetd_output(s, "ICMP packets received ", str); + inttostr(str, uip_stat.icmp.sent); + telnetd_output(s, "ICMP packets sent ", str); + inttostr(str, uip_stat.icmp.drop); + telnetd_output(s, "ICMP packets dropped ", str); + + inttostr(str, uip_stat.tcp.recv); + telnetd_output(s, "TCP packets received ", str); + inttostr(str, uip_stat.tcp.sent); + telnetd_output(s, "TCP packets sent ", str); + inttostr(str, uip_stat.tcp.drop); + telnetd_output(s, "TCP packets dropped ", str); + inttostr(str, uip_stat.tcp.rexmit); + telnetd_output(s, "TCP packets retransmitted ", str); + inttostr(str, uip_stat.tcp.synrst); + telnetd_output(s, "TCP connection attempts ", str); +} +/*-----------------------------------------------------------------------------------*/ +static void +help(struct telnetd_state *s, char *str) +{ + telnetd_output(s, "Available commands:", ""); + telnetd_output(s, "stats - show uIP statistics", ""); + telnetd_output(s, "exit - exit shell", ""); + telnetd_output(s, "? - show this help", ""); +} +/*-----------------------------------------------------------------------------------*/ +static void +none(struct telnetd_state *s, char *str) +{ + if(strlen(str) > 0) { + telnetd_output(s, "Unknown command", ""); + } +} +/*-----------------------------------------------------------------------------------*/ +static struct ptentry configparsetab[] = + {{'s', stats}, + {'e', exitt}, + {'?', help}, + + /* Default action */ + {0, none}}; +/*-----------------------------------------------------------------------------------*/ +void +telnetd_connected(struct telnetd_state *s) +{ + telnetd_output(s, "uIP command shell", ""); + telnetd_output(s, "Type '?' for help", ""); + telnetd_prompt(s, "uIP-0.9> "); +} +/*-----------------------------------------------------------------------------------*/ +void +telnetd_input(struct telnetd_state *s, char *cmd) +{ + parse(s, cmd, configparsetab); + telnetd_prompt(s, "uIP-0.9> "); +} +/*-----------------------------------------------------------------------------------*/ diff --git a/apps/telnetd/telnetd.c b/apps/telnetd/telnetd.c new file mode 100644 index 0000000..9c7e49e --- /dev/null +++ b/apps/telnetd/telnetd.c @@ -0,0 +1,392 @@ +/** + * \addtogroup exampleapps + * @{ + */ + +/** + * \defgroup telnetd Telnet server + * @{ + * + * The uIP telnet server provides a command based interface to uIP. It + * allows using the "telnet" application to access uIP, and implements + * the required telnet option negotiation. + * + * The code is structured in a way which makes it possible to add + * commands without having to rewrite the main telnet code. The main + * telnet code calls two callback functions, telnetd_connected() and + * telnetd_input(), when a telnet connection has been established and + * when a line of text arrives on a telnet connection. These two + * functions can be implemented in a way which suits the particular + * application or environment in which the uIP system is intended to + * be run. + * + * The uIP distribution contains an example telnet shell + * implementation that provides a basic set of commands. + */ + +/** + * \file + * Implementation of the Telnet server. + * \author Adam Dunkels + */ + +/* + * Copyright (c) 2003, Adam Dunkels. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. The name of the author may not be used to endorse or promote + * products derived from this software without specific prior + * written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS + * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE + * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + * This file is part of the uIP TCP/IP stack. + * + * $Id: telnetd.c,v 1.1.2.2 2003/10/07 13:47:50 adam Exp $ + * + */ + +#include "uip.h" +#include "memb.h" +#include "telnetd.h" +#include + +#define ISO_nl 0x0a +#define ISO_cr 0x0d + +MEMB(linemem, TELNETD_LINELEN, TELNETD_NUMLINES); + +static u8_t i; + +#define STATE_NORMAL 0 +#define STATE_IAC 1 +#define STATE_WILL 2 +#define STATE_WONT 3 +#define STATE_DO 4 +#define STATE_DONT 5 +#define STATE_CLOSE 6 + +#define TELNET_IAC 255 +#define TELNET_WILL 251 +#define TELNET_WONT 252 +#define TELNET_DO 253 +#define TELNET_DONT 254 +/*-----------------------------------------------------------------------------------*/ +static char * +alloc_line(void) +{ + return memb_alloc(&linemem); +} +/*-----------------------------------------------------------------------------------*/ +static void +dealloc_line(char *line) +{ + memb_free(&linemem, line); +} +/*-----------------------------------------------------------------------------------*/ +static void +sendline(struct telnetd_state *s, char *line) +{ + static unsigned int i; + for(i = 0; i < TELNETD_NUMLINES; ++i) { + if(s->lines[i] == NULL) { + s->lines[i] = line; + break; + } + } + if(i == TELNETD_NUMLINES) { + dealloc_line(line); + } +} +/*-----------------------------------------------------------------------------------*/ +/** + * Close a telnet session. + * + * This function can be called from a telnet command in order to close + * the connection. + * + * \param s The connection which is to be closed. + * + */ +/*-----------------------------------------------------------------------------------*/ +void +telnetd_close(struct telnetd_state *s) +{ + s->state = STATE_CLOSE; +} +/*-----------------------------------------------------------------------------------*/ +/** + * Print a prompt on a telnet connection. + * + * This function can be called by the telnet command shell in order to + * print out a command prompt. + * + * \param s A telnet connection. + * + * \param str The command prompt. + * + */ +/*-----------------------------------------------------------------------------------*/ +void +telnetd_prompt(struct telnetd_state *s, char *str) +{ + char *line; + line = alloc_line(); + if(line != NULL) { + strncpy(line, str, TELNETD_LINELEN); + sendline(s, line); + } +} +/*-----------------------------------------------------------------------------------*/ +/** + * Print out a string on a telnet connection. + * + * This function can be called from a telnet command parser in order + * to print out a string of text on the connection. The two strings + * given as arguments to the function will be concatenated, a carrige + * return and a new line character will be added, and the line is + * sent. + * + * \param s The telnet connection. + * + * \param str1 The first string. + * + * \param str2 The second string. + * + */ +/*-----------------------------------------------------------------------------------*/ +void +telnetd_output(struct telnetd_state *s, char *str1, char *str2) +{ + static unsigned len; + char *line; + + line = alloc_line(); + if(line != NULL) { + len = strlen(str1); + strncpy(line, str1, TELNETD_LINELEN); + if(len < TELNETD_LINELEN) { + strncpy(line + len, str2, TELNETD_LINELEN - len); + } + len = strlen(line); + if(len < TELNETD_LINELEN - 2) { + line[len] = ISO_cr; + line[len+1] = ISO_nl; + line[len+2] = 0; + } + sendline(s, line); + } +} +/*-----------------------------------------------------------------------------------*/ +/** + * Initialize the telnet server. + * + * This function will perform the necessary initializations and start + * listening on TCP port 23. + */ +/*-----------------------------------------------------------------------------------*/ +void +telnetd_init(void) +{ + memb_init(&linemem); + uip_listen(HTONS(23)); +} +/*-----------------------------------------------------------------------------------*/ +static void +acked(struct telnetd_state *s) +{ + dealloc_line(s->lines[0]); + for(i = 1; i < TELNETD_NUMLINES; ++i) { + s->lines[i - 1] = s->lines[i]; + } +} +/*-----------------------------------------------------------------------------------*/ +static void +senddata(struct telnetd_state *s) +{ + if(s->lines[0] != NULL) { + uip_send(s->lines[0], strlen(s->lines[0])); + } +} +/*-----------------------------------------------------------------------------------*/ +static void +getchar(struct telnetd_state *s, u8_t c) +{ + if(c == ISO_cr) { + return; + } + + s->buf[(int)s->bufptr] = c; + if(s->buf[(int)s->bufptr] == ISO_nl || + s->bufptr == sizeof(s->buf) - 1) { + if(s->bufptr > 0) { + s->buf[(int)s->bufptr] = 0; + } + telnetd_input(s, s->buf); + s->bufptr = 0; + } else { + ++s->bufptr; + } +} +/*-----------------------------------------------------------------------------------*/ +static void +sendopt(struct telnetd_state *s, u8_t option, u8_t value) +{ + char *line; + line = alloc_line(); + if(line != NULL) { + line[0] = TELNET_IAC; + line[1] = option; + line[2] = value; + line[3] = 0; + sendline(s, line); + } +} +/*-----------------------------------------------------------------------------------*/ +static void +newdata(struct telnetd_state *s) +{ + u16_t len; + u8_t c; + + + len = uip_datalen(); + + while(len > 0 && s->bufptr < sizeof(s->buf)) { + c = *uip_appdata; + ++uip_appdata; + --len; + switch(s->state) { + case STATE_IAC: + if(c == TELNET_IAC) { + getchar(s, c); + s->state = STATE_NORMAL; + } else { + switch(c) { + case TELNET_WILL: + s->state = STATE_WILL; + break; + case TELNET_WONT: + s->state = STATE_WONT; + break; + case TELNET_DO: + s->state = STATE_DO; + break; + case TELNET_DONT: + s->state = STATE_DONT; + break; + default: + s->state = STATE_NORMAL; + break; + } + } + break; + case STATE_WILL: + /* Reply with a DONT */ + sendopt(s, TELNET_DONT, c); + s->state = STATE_NORMAL; + break; + + case STATE_WONT: + /* Reply with a DONT */ + sendopt(s, TELNET_DONT, c); + s->state = STATE_NORMAL; + break; + case STATE_DO: + /* Reply with a WONT */ + sendopt(s, TELNET_WONT, c); + s->state = STATE_NORMAL; + break; + case STATE_DONT: + /* Reply with a WONT */ + sendopt(s, TELNET_WONT, c); + s->state = STATE_NORMAL; + break; + case STATE_NORMAL: + if(c == TELNET_IAC) { + s->state = STATE_IAC; + } else { + getchar(s, c); + } + break; + } + + + } + +} +/*-----------------------------------------------------------------------------------*/ +void +telnetd_app(void) +{ + struct telnetd_state *s; + + s = (struct telnetd_state *)uip_conn->appstate; + + if(uip_connected()) { + + for(i = 0; i < TELNETD_NUMLINES; ++i) { + s->lines[i] = NULL; + } + s->bufptr = 0; + s->state = STATE_NORMAL; + + telnetd_connected(s); + senddata(s); + return; + } + + if(s->state == STATE_CLOSE) { + s->state = STATE_NORMAL; + uip_close(); + return; + } + + if(uip_closed()) { + telnetd_output(s, "Connection closed", ""); + } + + + if(uip_aborted()) { + telnetd_output(s, "Connection reset", ""); + } + + if(uip_timedout()) { + telnetd_output(s, "Connection timed out", ""); + } + + if(uip_acked()) { + acked(s); + } + + if(uip_newdata()) { + newdata(s); + } + + if(uip_rexmit() || + uip_newdata() || + uip_acked()) { + senddata(s); + } else if(uip_poll()) { + senddata(s); + } +} +/*-----------------------------------------------------------------------------------*/ diff --git a/apps/telnetd/telnetd.h b/apps/telnetd/telnetd.h new file mode 100644 index 0000000..9f292cf --- /dev/null +++ b/apps/telnetd/telnetd.h @@ -0,0 +1,114 @@ +/** + * \addtogroup telnetd + * @{ + */ + +/** + * \file + * Header file for the telnet server. + * \author Adam Dunkels + */ + +/* + * Copyright (c) 2002, Adam Dunkels. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. The name of the author may not be used to endorse or promote + * products derived from this software without specific prior + * written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS + * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE + * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + * This file is part of the uIP TCP/IP stack. + * + * $Id: telnetd.h,v 1.1.2.2 2003/10/07 13:22:27 adam Exp $ + * + */ +#ifndef __TELNETD_H__ +#define __TELNETD_H__ + +#include "uip.h" + +/** + * The maximum length of a telnet line. + * + * \hideinitializer + */ +#define TELNETD_LINELEN 36 + +/** + * The number of output lines being buffered for all telnet + * connections. + * + * \hideinitializer + */ +#define TELNETD_NUMLINES 24 + +/** + * A telnet connection structure. + */ +struct telnetd_state { + char *lines[TELNETD_NUMLINES]; + char buf[TELNETD_LINELEN]; + char bufptr; + u8_t state; +}; + + +/** + * Callback function that is called when a telnet connection has been + * established. + * + * \param s The telnet connection. + */ +void telnetd_connected(struct telnetd_state *s); + +/** + * Callback function that is called when a line of text has arrived on + * a telnet connection. + * + * \param s The telnet connection. + * + * \param cmd The line of text. + */ +void telnetd_input(struct telnetd_state *s, char *cmd); + + +void telnetd_close(struct telnetd_state *s); +void telnetd_output(struct telnetd_state *s, char *s1, char *s2); +void telnetd_prompt(struct telnetd_state *s, char *str); + +void telnetd_app(void); + +#ifndef UIP_APPCALL +#define UIP_APPCALL telnetd_app +#endif + +#ifndef UIP_APPSTATE_SIZE +#define UIP_APPSTATE_SIZE (sizeof(struct telnetd_state)) +#endif + +void telnetd_init(void); + + +#endif /* __TELNET_H__ */ + +/** @} */ diff --git a/apps/webclient/http-strings b/apps/webclient/http-strings new file mode 100644 index 0000000..8710354 --- /dev/null +++ b/apps/webclient/http-strings @@ -0,0 +1,12 @@ +http_200 "200 " +http_301 "301 " +http_302 "302 " +http_get "GET " +http_10 "HTTP/1.0" +http_11 "HTTP/1.1" +http_content_type "Content-Type: " +http_texthtml "text/html" +http_location "Location: " +http_host "Host: " +http_connection_close "Connection: close" +http_user_agent "User-Agent: Contiki/1.0 (Commodore 64; http://dunkels.com/adam/contiki/)" diff --git a/apps/webclient/http-strings.c b/apps/webclient/http-strings.c new file mode 100644 index 0000000..b5afbbc --- /dev/null +++ b/apps/webclient/http-strings.c @@ -0,0 +1,39 @@ +char http_200[5] = +/* 200 */ +{0x32, 0x30, 0x30, 0x20, }; +char http_301[5] = +/* 301 */ +{0x33, 0x30, 0x31, 0x20, }; +char http_302[5] = +/* 302 */ +{0x33, 0x30, 0x32, 0x20, }; +char http_get[5] = +/* GET */ +{0x47, 0x45, 0x54, 0x20, }; +char http_10[9] = +/* HTTP/1.0 */ +{0x48, 0x54, 0x54, 0x50, 0x2f, 0x31, 0x2e, 0x30, }; +char http_11[9] = +/* HTTP/1.1 */ +{0x48, 0x54, 0x54, 0x50, 0x2f, 0x31, 0x2e, 0x31, }; +char http_content_type[15] = +/* Content-Type: */ +{0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2d, 0x54, 0x79, 0x70, 0x65, 0x3a, 0x20, }; +char http_texthtml[10] = +/* text/html */ +{0x74, 0x65, 0x78, 0x74, 0x2f, 0x68, 0x74, 0x6d, 0x6c, }; +char http_location[11] = +/* Location: */ +{0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x20, }; +char http_host[7] = +/* Host: */ +{0x48, 0x6f, 0x73, 0x74, 0x3a, 0x20, }; +char http_connection_close[18] = +/* Connection: close */ +{0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x20, 0x63, 0x6c, 0x6f, 0x73, 0x65, }; +char http_user_agent[73] = +/* User-Agent: Contiki/1.0 (Commodore 64; http://dunkels.com/adam/contiki/) */ +{0x55, 0x73, 0x65, 0x72, 0x2d, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x3a, 0x20, 0x43, 0x6f, 0x6e, 0x74, 0x69, 0x6b, 0x69, 0x2f, 0x31, 0x2e, 0x30, 0x20, 0x28, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x64, 0x6f, 0x72, 0x65, 0x20, 0x36, 0x34, 0x3b, 0x20, 0x68, 0x74, 0x74, 0x70, 0x3a, 0x2f, 0x2f, 0x64, 0x75, 0x6e, 0x6b, 0x65, 0x6c, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x64, 0x61, 0x6d, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x69, 0x6b, 0x69, 0x2f, 0x29, }; +char test_httpstring[16] = +/* HTTP/1.0 200 OK */ +{0x48, 0x54, 0x54, 0x50, 0x2f, 0x31, 0x2e, 0x30, 0x20, 0x32, 0x30, 0x30, 0x20, 0x4f, 0x4b, }; diff --git a/apps/webclient/http-strings.h b/apps/webclient/http-strings.h new file mode 100644 index 0000000..8a49c32 --- /dev/null +++ b/apps/webclient/http-strings.h @@ -0,0 +1,13 @@ +extern char http_200[5]; +extern char http_301[5]; +extern char http_302[5]; +extern char http_get[5]; +extern char http_10[9]; +extern char http_11[9]; +extern char http_content_type[15]; +extern char http_texthtml[10]; +extern char http_location[11]; +extern char http_host[7]; +extern char http_connection_close[18]; +extern char http_user_agent[73]; +extern char test_httpstring[16]; diff --git a/apps/webclient/makehttpstrings b/apps/webclient/makehttpstrings new file mode 100755 index 0000000..b39d6ac --- /dev/null +++ b/apps/webclient/makehttpstrings @@ -0,0 +1,27 @@ +#!/usr/bin/perl + +open(OUTPUTC, "> http-strings.c"); +open(OUTPUTH, "> http-strings.h"); + +open(FILE, "http-strings"); + +while() { + if(/(.+) "(.+)"/) { + $var = $1; + $data = $2; + + printf(OUTPUTC "char $var\[%d] = \n", length($data) + 1); + printf(OUTPUTC "/* $data */\n"); + printf(OUTPUTC "{"); + for($j = 0; $j < length($data); $j++) { + printf(OUTPUTC "%#02x, ", unpack("C", substr($data, $j, 1))); + } + printf(OUTPUTC "};\n"); + + printf(OUTPUTH "extern char $var\[%d];\n", length($data) + 1); + + } +} +exit 0; + +printf(OUTPUT "%#02x, ", unpack("C", $data)); diff --git a/apps/webclient/webclient.c b/apps/webclient/webclient.c new file mode 100644 index 0000000..ae04a9e --- /dev/null +++ b/apps/webclient/webclient.c @@ -0,0 +1,460 @@ +/** + * \addtogroup exampleapps + * @{ + */ + +/** + * \defgroup webclient Web client + * @{ + * + * This example shows a HTTP client that is able to download web pages + * and files from web servers. It requires a number of callback + * functions to be implemented by the module that utilizes the code: + * webclient_datahandler(), webclient_connected(), + * webclient_timedout(), webclient_aborted(), webclient_closed(). + */ + +/** + * \file + * Implementation of the HTTP client. + * \author Adam Dunkels + */ + +/* + * Copyright (c) 2002, Adam Dunkels. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following + * disclaimer in the documentation and/or other materials provided + * with the distribution. + * 3. The name of the author may not be used to endorse or promote + * products derived from this software without specific prior + * written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS + * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE + * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + * This file is part of the "contiki" web browser. + * + * $Id: webclient.c,v 1.1.2.5 2003/10/06 22:56:45 adam Exp $ + * + */ + +#include "uip.h" +#include "webclient.h" +#include "resolv.h" + +#include + +#define WEBCLIENT_TIMEOUT 100 + +#define WEBCLIENT_STATE_STATUSLINE 0 +#define WEBCLIENT_STATE_HEADERS 1 +#define WEBCLIENT_STATE_DATA 2 +#define WEBCLIENT_STATE_CLOSE 3 + +#define HTTPFLAG_NONE 0 +#define HTTPFLAG_OK 1 +#define HTTPFLAG_MOVED 2 +#define HTTPFLAG_ERROR 3 + + +#define ISO_nl 0x0a +#define ISO_cr 0x0d +#define ISO_space 0x20 + +struct webclient_state { + u8_t timer; + u8_t state; + u8_t httpflag; + + u16_t port; + char host[40]; + char file[WWW_CONF_MAX_URLLEN]; + u16_t getrequestptr; + u16_t getrequestleft; + + char httpheaderline[200]; + u16_t httpheaderlineptr; + + char mimetype[32]; +}; + +static struct webclient_state s; + +/*-----------------------------------------------------------------------------------*/ +char * +webclient_mimetype(void) +{ + return s.mimetype; +} +/*-----------------------------------------------------------------------------------*/ +char * +webclient_filename(void) +{ + return s.file; +} +/*-----------------------------------------------------------------------------------*/ +char * +webclient_hostname(void) +{ + return s.host; +} +/*-----------------------------------------------------------------------------------*/ +unsigned short +webclient_port(void) +{ + return s.port; +} +/*-----------------------------------------------------------------------------------*/ +void +webclient_init(void) +{ + +} +/*-----------------------------------------------------------------------------------*/ +static void +init_connection(void) +{ + s.state = WEBCLIENT_STATE_STATUSLINE; + + s.getrequestleft = sizeof(http_get) - 1 + 1 + + sizeof(http_10) - 1 + + sizeof(http_crnl) - 1 + + sizeof(http_host) - 1 + + sizeof(http_crnl) - 1 + + strlen(http_user_agent_fields) + + strlen(s.file) + strlen(s.host); + s.getrequestptr = 0; + + s.httpheaderlineptr = 0; +} +/*-----------------------------------------------------------------------------------*/ +void +webclient_close(void) +{ + s.state = WEBCLIENT_STATE_CLOSE; +} +/*-----------------------------------------------------------------------------------*/ +unsigned char +webclient_get(char *host, u16_t port, char *file) +{ + struct uip_conn *conn; + u16_t *ipaddr; + static u16_t addr[2]; + + /* First check if the host is an IP address. */ + ipaddr = &addr[0]; + if(uip_main_ipaddrconv(host, (unsigned char *)addr) == 0) { + ipaddr = resolv_lookup(host); + + if(ipaddr == NULL) { + return 0; + } + } + + conn = uip_connect(ipaddr, htons(port)); + + if(conn == NULL) { + return 0; + } + + s.port = port; + strncpy(s.file, file, sizeof(s.file)); + strncpy(s.host, host, sizeof(s.host)); + + init_connection(); + return 1; +} +/*-----------------------------------------------------------------------------------*/ +static unsigned char * CC_FASTCALL +copy_string(unsigned char *dest, + const unsigned char *src, unsigned char len) +{ + return strcpy(dest, src) + len; +} +/*-----------------------------------------------------------------------------------*/ +static void +senddata(void) +{ + u16_t len; + char *getrequest; + char *cptr; + + if(s.getrequestleft > 0) { + cptr = getrequest = (char *)uip_appdata; + + cptr = copy_string(cptr, http_get, sizeof(http_get) - 1); + cptr = copy_string(cptr, s.file, strlen(s.file)); + *cptr++ = ISO_space; + cptr = copy_string(cptr, http_10, sizeof(http_10) - 1); + + cptr = copy_string(cptr, http_crnl, sizeof(http_crnl) - 1); + + cptr = copy_string(cptr, http_host, sizeof(http_host) - 1); + cptr = copy_string(cptr, s.host, strlen(s.host)); + cptr = copy_string(cptr, http_crnl, sizeof(http_crnl) - 1); + + cptr = copy_string(cptr, http_user_agent_fields, + strlen(http_user_agent_fields)); + + len = s.getrequestleft > uip_mss()? + uip_mss(): + s.getrequestleft; + uip_send(&(getrequest[s.getrequestptr]), len); + } +} +/*-----------------------------------------------------------------------------------*/ +static void +acked(void) +{ + u16_t len; + + if(s.getrequestleft > 0) { + len = s.getrequestleft > uip_mss()? + uip_mss(): + s.getrequestleft; + s.getrequestleft -= len; + s.getrequestptr += len; + } +} +/*-----------------------------------------------------------------------------------*/ +static u16_t +parse_statusline(u16_t len) +{ + char *cptr; + + while(len > 0 && s.httpheaderlineptr < sizeof(s.httpheaderline)) { + s.httpheaderline[s.httpheaderlineptr] = *uip_appdata; + ++uip_appdata; + --len; + if(s.httpheaderline[s.httpheaderlineptr] == ISO_nl) { + + if((strncmp(s.httpheaderline, http_10, + sizeof(http_10) - 1) == 0) || + (strncmp(s.httpheaderline, http_11, + sizeof(http_11) - 1) == 0)) { + cptr = &(s.httpheaderline[9]); + s.httpflag = HTTPFLAG_NONE; + if(strncmp(cptr, http_200, sizeof(http_200) - 1) == 0) { + /* 200 OK */ + s.httpflag = HTTPFLAG_OK; + } else if(strncmp(cptr, http_301, sizeof(http_301) - 1) == 0 || + strncmp(cptr, http_302, sizeof(http_302) - 1) == 0) { + /* 301 Moved permanently or 302 Found. Location: header line + will contain thw new location. */ + s.httpflag = HTTPFLAG_MOVED; + } else { + s.httpheaderline[s.httpheaderlineptr - 1] = 0; + } + } else { + uip_abort(); + webclient_aborted(); + return 0; + } + + /* We're done parsing the status line, so we reset the pointer + and start parsing the HTTP headers.*/ + s.httpheaderlineptr = 0; + s.state = WEBCLIENT_STATE_HEADERS; + break; + } else { + ++s.httpheaderlineptr; + } + } + return len; +} +/*-----------------------------------------------------------------------------------*/ +static char +casecmp(char *str1, const char *str2, char len) +{ + static char c; + + while(len > 0) { + c = *str1; + /* Force lower-case characters. */ + if(c & 0x40) { + c |= 0x20; + } + if(*str2 != c) { + return 1; + } + ++str1; + ++str2; + --len; + } + return 0; +} +/*-----------------------------------------------------------------------------------*/ +static u16_t +parse_headers(u16_t len) +{ + char *cptr; + static unsigned char i; + + while(len > 0 && s.httpheaderlineptr < sizeof(s.httpheaderline)) { + s.httpheaderline[s.httpheaderlineptr] = *uip_appdata; + ++uip_appdata; + --len; + if(s.httpheaderline[s.httpheaderlineptr] == ISO_nl) { + /* We have an entire HTTP header line in s.httpheaderline, so + we parse it. */ + if(s.httpheaderline[0] == ISO_cr) { + /* This was the last header line (i.e., and empty "\r\n"), so + we are done with the headers and proceed with the actual + data. */ + s.state = WEBCLIENT_STATE_DATA; + return len; + } + + s.httpheaderline[s.httpheaderlineptr - 1] = 0; + /* Check for specific HTTP header fields. */ + if(casecmp(s.httpheaderline, http_content_type, + sizeof(http_content_type) - 1) == 0) { + /* Found Content-type field. */ + cptr = strchr(s.httpheaderline, ';'); + if(cptr != NULL) { + *cptr = 0; + } + strncpy(s.mimetype, s.httpheaderline + + sizeof(http_content_type) - 1, sizeof(s.mimetype)); + } else if(casecmp(s.httpheaderline, http_location, + sizeof(http_location) - 1) == 0) { + cptr = s.httpheaderline + + sizeof(http_location) - 1; + + if(strncmp(cptr, http_http, 7) == 0) { + cptr += 7; + for(i = 0; i < s.httpheaderlineptr - 7; ++i) { + if(*cptr == 0 || + *cptr == '/' || + *cptr == ' ' || + *cptr == ':') { + s.host[i] = 0; + break; + } + s.host[i] = *cptr; + ++cptr; + } + } + strncpy(s.file, cptr, sizeof(s.file)); + /* s.file[s.httpheaderlineptr - i] = 0;*/ + } + + + /* We're done parsing, so we reset the pointer and start the + next line. */ + s.httpheaderlineptr = 0; + } else { + ++s.httpheaderlineptr; + } + } + return len; +} +/*-----------------------------------------------------------------------------------*/ +static void +newdata(void) +{ + u16_t len; + + len = uip_datalen(); + + if(s.state == WEBCLIENT_STATE_STATUSLINE) { + len = parse_statusline(len); + } + + if(s.state == WEBCLIENT_STATE_HEADERS && len > 0) { + len = parse_headers(len); + } + + if(len > 0 && s.state == WEBCLIENT_STATE_DATA && + s.httpflag != HTTPFLAG_MOVED) { + webclient_datahandler((char *)uip_appdata, len); + } +} +/*-----------------------------------------------------------------------------------*/ +void webclient_appcall(void) +{ + if(uip_connected()) { + s.timer = 0; + s.state = WEBCLIENT_STATE_STATUSLINE; + senddata(); + webclient_connected(); + return; + } + + + if(state == NULL) { + uip_abort(); + return; + } + + if(s.state == WEBCLIENT_STATE_CLOSE) { + webclient_closed(); + uip_abort(); + return; + } + + + + if(uip_aborted()) { + webclient_aborted(); + } + if(uip_timedout()) { + webclient_timedout(); + } + + + if(uip_acked()) { + s.timer = 0; + acked(); + } + if(uip_newdata()) { + s.timer = 0; + newdata(); + } + if(uip_rexmit() || + uip_newdata() || + uip_acked()) { + senddata(); + } else if(uip_poll()) { + ++s.timer; + if(s.timer == WEBCLIENT_TIMEOUT) { + webclient_timedout(); + uip_abort(); + return; + } + /* senddata();*/ + } + + if(uip_closed()) { + if(s.httpflag != HTTPFLAG_MOVED) { + /* Send NULL data to signal EOF. */ + webclient_datahandler(NULL, 0); + } else { + if(resolv_lookup(s.host) == NULL) { + resolv_query(s.host); + } + webclient_get(s.host, s.port, s.file); + } + } +} +/*-----------------------------------------------------------------------------------*/ + +/** @} */ +/** @} */ diff --git a/apps/webclient/webclient.h b/apps/webclient/webclient.h new file mode 100644 index 0000000..9ec2686 --- /dev/null +++ b/apps/webclient/webclient.h @@ -0,0 +1,207 @@ +/** + * \addtogroup webclient + * @{ + */ + +/** + * \file + * Header file for the HTTP client. + * \author Adam Dunkels + */ + +/* + * Copyright (c) 2002, Adam Dunkels. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following + * disclaimer in the documentation and/or other materials provided + * with the distribution. + * 3. The name of the author may not be used to endorse or promote + * products derived from this software without specific prior + * written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS + * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE + * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + * This file is part of the "contiki" web browser. + * + * $Id: webclient.h,v 1.1.2.5 2003/10/06 22:56:45 adam Exp $ + * + */ +#ifndef __WEBCLIENT_H__ +#define __WEBCLIENT_H__ + + +#include "http-strings.h" +#include "http-user-agent-string.h" + + +struct webclient_state; + +/** + * Callback function that is called from the webclient code when HTTP + * data has been received. + * + * This function must be implemented by the module that uses the + * webclient code. The function is called from the webclient module + * when HTTP data has been received. The function is not called when + * HTTP headers are received, only for the actual data. + * + * \note This function is called many times, repetedly, when data is + * being received, and not once when all data has been received. + * + * \param data A pointer to the data that has been received. + * \param len The length of the data that has been received. + */ +void webclient_datahandler(char *data, u16_t len); + +/** + * Callback function that is called from the webclient code when the + * HTTP connection has been connected to the web server. + * + * This function must be implemented by the module that uses the + * webclient code. + */ +void webclient_connected(void); + +/** + * Callback function that is called from the webclient code if the + * HTTP connection to the web server has timed out. + * + * This function must be implemented by the module that uses the + * webclient code. + */ +void webclient_timedout(void); + +/** + * Callback function that is called from the webclient code if the + * HTTP connection to the web server has been aborted by the web + * server. + * + * This function must be implemented by the module that uses the + * webclient code. + */ +void webclient_aborted(void); + +/** + * Callback function that is called from the webclient code when the + * HTTP connection to the web server has been closed. + * + * This function must be implemented by the module that uses the + * webclient code. + */ +void webclient_closed(void); + + + +/** + * Initialize the webclient module. + */ +void webclient_init(void); + +/** + * Open an HTTP connection to a web server and ask for a file using + * the GET method. + * + * This function opens an HTTP connection to the specified web server + * and requests the specified file using the GET method. When the HTTP + * connection has been connected, the webclient_connected() callback + * function is called and when the HTTP data arrives the + * webclient_datahandler() callback function is called. + * + * The callback function webclient_timedout() is called if the web + * server could not be contacted, and the webclient_aborted() callback + * function is called if the HTTP connection is aborted by the web + * server. + * + * When the HTTP request has been completed and the HTTP connection is + * closed, the webclient_closed() callback function will be called. + * + * \note If the function is passed a host name, it must already be in + * the resolver cache in order for the function to connect to the web + * server. It is therefore up to the calling module to implement the + * resolver calls and the signal handler used for reporting a resolv + * query answer. + * + * \param host A pointer to a string containing either a host name or + * a numerical IP address in dotted decimal notation (e.g., 192.168.23.1). + * + * \param port The port number to which to connect, in host byte order. + * + * \param file A pointer to the name of the file to get. + * + * \retval 0 if the host name could not be found in the cache, or + * if a TCP connection could not be created. + * + * \retval 1 if the connection was initiated. + */ +unsigned char webclient_get(char *host, u16_t port, char *file); + +/** + * Close the currently open HTTP connection. + */ +void webclient_close(void); +void webclient_appcall(void); + +/** + * Obtain the MIME type of the current HTTP data stream. + * + * \return A pointer to a string contaning the MIME type. The string + * may be empty if no MIME type was reported by the web server. + */ +char *webclient_mimetype(void); + +/** + * Obtain the filename of the current HTTP data stream. + * + * The filename of an HTTP request may be changed by the web server, + * and may therefore not be the same as when the original GET request + * was made with webclient_get(). This function is used for obtaining + * the current filename. + * + * \return A pointer to the current filename. + */ +char *webclient_filename(void); + +/** + * Obtain the hostname of the current HTTP data stream. + * + * The hostname of the web server of an HTTP request may be changed + * by the web server, and may therefore not be the same as when the + * original GET request was made with webclient_get(). This function + * is used for obtaining the current hostname. + * + * \return A pointer to the current hostname. + */ +char *webclient_hostname(void); + +/** + * Obtain the port number of the current HTTP data stream. + * + * The port number of an HTTP request may be changed by the web + * server, and may therefore not be the same as when the original GET + * request was made with webclient_get(). This function is used for + * obtaining the current port number. + * + * \return The port number of the current HTTP data stream, in host byte order. + */ +unsigned short webclient_port(void); + +#endif /* __WEBCLIENT_H__ */ + +/** @} */ diff --git a/cc65/Makefile b/cc65/Makefile deleted file mode 100644 index f9b8f88..0000000 --- a/cc65/Makefile +++ /dev/null @@ -1,70 +0,0 @@ -# Copyright (c) 2001, Adam Dunkels. -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions -# are met: -# 1. Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# 2. Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in the -# documentation and/or other materials provided with the distribution. -# 3. All advertising materials mentioning features or use of this software -# must display the following acknowledgement: -# This product includes software developed by Adam Dunkels. -# 4. The name of the author may not be used to endorse or promote -# products derived from this software without specific prior -# written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS -# OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY -# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE -# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# -# This file is part of the uIP TCP/IP stack. -# -# $Id: Makefile,v 1.2 2001/11/24 16:03:59 adam Exp $ -# - -# Change the target system type here -SYS=c64 - -CC=cc65 -AS=ca65 -AR=ar65 -ARFLAGS=a -CFLAGS= -I ../uip -I ../apps/httpd -t $(SYS) -Oi - -%.o: - $(CC) $(CFLAGS) -o $(patsubst %c, %s, $(notdir $<)) $< - $(AS) -o $@ $(AFLAGS) $(*).s - -uip: uip.o uip_arch.o rs232dev.o main.o httpd.o fs.o cgi.o - cl65 -o uip -t $(SYS) $^ - - -tunslip: tunslip.c - gcc -o tunslip tunslip.c - -rs232dev.o: rs232dev.c ../uip/uip.h uipopt.h -main.o: main.c ../uip/uip.h uipopt.h \ - rs232dev.h -uip.o: ../uip/uip.c uipopt.h -httpd.o: ../apps/httpd/httpd.c ../apps/httpd/httpd.h ../uip/uip.h uipopt.h \ - ../apps/httpd/fs.c ../apps/httpd/fs.h \ - ../apps/httpd/fsdata.c ../apps/httpd/fsdata.h -cgi.o: ../apps/httpd/cgi.c ../apps/httpd/cgi.h -fs.o: ../apps/httpd/fs.c ../apps/httpd/fs.h ../apps/httpd/fsdata.c -uip_arch.o: uip_arch.c uip_arch.h ../uip/uip.h uipopt.h \ - ../apps/httpd/httpd.h - - -clean: - rm -f *.o *~ *core uip *.s diff --git a/cc65/README b/cc65/README deleted file mode 100644 index 13f8aae..0000000 --- a/cc65/README +++ /dev/null @@ -1,5 +0,0 @@ -This directory is a port of uIP to the popular Commodore 64 home -computer. In order to compile it, you need the cc65 C compiler that -can be downloaded from . - -The "tunslip" executable can be used on a FreeBSD system to create a virtual SLIP interface between the kernel and the Vice emulator. diff --git a/cc65/slipdev.c b/cc65/slipdev.c deleted file mode 100644 index 5cf85be..0000000 --- a/cc65/slipdev.c +++ /dev/null @@ -1,141 +0,0 @@ -/* - * Copyright (c) 2001, Adam Dunkels. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Adam Dunkels. - * 4. The name of the author may not be used to endorse or promote - * products derived from this software without specific prior - * written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS - * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE - * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, - * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * This file is part of the uIP TCP/IP stack. - * - * $Id: slipdev.c,v 1.1 2001/11/20 20:49:45 adam Exp $ - * - */ - - -#include "uip.h" - -#define SLIP_END 0300 -#define SLIP_ESC 0333 -#define SLIP_ESC_END 0334 -#define SLIP_ESC_ESC 0335 - - -#define SIO_RECV(c) while(rs232_get(&c) == RS_ERR_NO_DATA) -#define SIO_SEND(c) while(rs232_put(c) == RS_ERR_OVERFLOW) - -#define MAX_SIZE UIP_BUFSIZE - -static const unsigned char slip_end = SLIP_END, - slip_esc = SLIP_ESC, - slip_esc_end = SLIP_ESC_END, - slip_esc_esc = SLIP_ESC_ESC; - -/*-----------------------------------------------------------------------------------*/ -void -slipdev_send(void) -{ - u8_t i; - u8_t *ptr; - u8_t c; - - SIO_SEND(slip_end); - - ptr = uip_buf; - for(i = 0; i < uip_len; i++) { - c = *ptr++; - switch(c) { - case SLIP_END: - SIO_SEND(slip_esc); - SIO_SEND(slip_esc_end); - break; - case SLIP_ESC: - SIO_SEND(slip_esc); - SIO_SEND(slip_esc_esc); - break; - default: - SIO_SEND(c); - break; - } - } - SIO_SEND(slip_end); -} -/*-----------------------------------------------------------------------------------*/ -u8_t -slipdev_read(void) -{ - u8_t c; - - start: - uip_len = 0; - while(1) { - if(uip_len >= MAX_SIZE) { - goto start; - } - SIO_RECV(c); - switch(c) { - case SLIP_END: - if(uip_len > 0) { - return uip_len; - } else { - goto start; - } - break; - case SLIP_ESC: - SIO_RECV(c); - switch(c) { - case SLIP_ESC_END: - c = SLIP_END; - break; - case SLIP_ESC_ESC: - c = SLIP_ESC; - break; - } - /* FALLTHROUGH */ - default: - if(uip_len < MAX_SIZE) { - uip_buf[uip_len] = c; - uip_len++; - } - break; - } - - } - return 0; -} -/*-----------------------------------------------------------------------------------*/ -void -slipdev_init(void) -{ -} -/*-----------------------------------------------------------------------------------*/ - - - - - - - diff --git a/cc65/tunslip.c b/cc65/tunslip.c deleted file mode 100644 index 7aed724..0000000 --- a/cc65/tunslip.c +++ /dev/null @@ -1,186 +0,0 @@ -/* - * Copyright (c) 2001, Adam Dunkels. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Adam Dunkels. - * 4. The name of the author may not be used to endorse or promote - * products derived from this software without specific prior - * written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS - * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE - * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, - * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * This file is part of the uIP TCP/IP stack. - * - * $Id: tunslip.c,v 1.1 2001/11/20 20:49:45 adam Exp $ - * - */ - - -#include -#include -#include -#include -#include - -#define SLIP_END 0300 -#define SLIP_ESC 0333 -#define SLIP_ESC_END 0334 -#define SLIP_ESC_ESC 0335 - -/*-----------------------------------------------------------------------------------*/ -void -do_slip(int infd, int outfd) -{ - static unsigned char inbuf[2000]; - static int inbufptr = 0; - unsigned char c; - - if(read(infd, &c, 1) == -1) { - perror("do_slip: read"); - } - fprintf(stderr, "."); - switch(c) { - case SLIP_END: - if(inbufptr > 0) { - if(write(outfd, inbuf, inbufptr) == -1) { - perror("do_slip: write"); - } - inbufptr = 0; - } - return; - case SLIP_ESC: - if(read(infd, &c, 1) == -1) { - perror("do_slip: read after esc"); - } - switch(c) { - case SLIP_ESC_END: - c = SLIP_END; - break; - case SLIP_ESC_ESC: - c = SLIP_ESC; - break; - } - /* FALLTHROUGH */ - default: - inbuf[inbufptr++] = c; - break; - } -} -/*-----------------------------------------------------------------------------------*/ -void -slip_send(int outfd, unsigned char data) -{ - unsigned char d; - - d = data; - write(outfd, &d, 1); -} -/*-----------------------------------------------------------------------------------*/ -void -do_tun(int infd, int outfd) -{ - unsigned char inbuf[2000]; - int i, size; - - if((size = read(infd, inbuf, 2000)) == -1) { - perror("do_tun: read"); - } - - for(i = 0; i < size; i++) { - switch(inbuf[i]) { - case SLIP_END: - slip_send(outfd, SLIP_ESC); - slip_send(outfd, SLIP_ESC_END); - break; - case SLIP_ESC: - slip_send(outfd, SLIP_ESC); - slip_send(outfd, SLIP_ESC_ESC); - break; - default: - slip_send(outfd, inbuf[i]); - break; - } - - } - slip_send(outfd, SLIP_END); -} -/*-----------------------------------------------------------------------------------*/ -int -main(int argc, char **argv) -{ - int tunfd, infd, outfd, maxfd; - int ret; - fd_set fdset; - - infd = STDIN_FILENO; - outfd = STDOUT_FILENO; - - fprintf(stderr, "tunslip started...\n"); - tunfd = open("/dev/tun0", O_RDWR); - if(tunfd == -1) { - perror("main: open"); - exit(1); - } - fprintf(stderr, "opened device...\n"); -#ifdef linux - system("ifconfig tun0 inet 192.168.0.2 192.168.0.1"); - - system("route add -net 192.168.0.0 netmask 255.255.255.0 dev tun0"); -#else - /* system("ifconfig tun0 inet sidewalker rallarsnus"); */ - system("ifconfig tun0 inet 192.168.0.1 192.168.0.2"); -#endif /* linux */ - - fprintf(stderr, "configured interface...\n"); - - while(1) { - maxfd = 0; - FD_ZERO(&fdset); - FD_SET(infd, &fdset); - if(infd > maxfd) maxfd = infd; - - FD_SET(outfd, &fdset); - if(outfd > maxfd) maxfd = outfd; - - FD_SET(tunfd, &fdset); - if(tunfd > maxfd) maxfd = tunfd; - - ret = select(maxfd + 1, &fdset, NULL, NULL, NULL); - if(ret == -1) { - perror("select"); - exit(0); - } else if(ret > 0) { - if(FD_ISSET(infd, &fdset)) { - do_slip(infd, tunfd); - } else if(FD_ISSET(tunfd, &fdset)) { - do_tun(tunfd, outfd); - } else { - exit(0); - } - } else { - exit(0); - } - } - -} -/*-----------------------------------------------------------------------------------*/ diff --git a/cc65/uip_arch.c b/cc65/uip_arch.c deleted file mode 100644 index af2b58c..0000000 --- a/cc65/uip_arch.c +++ /dev/null @@ -1,299 +0,0 @@ -/* - * Copyright (c) 2001, Adam Dunkels. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Adam Dunkels. - * 4. The name of the author may not be used to endorse or promote - * products derived from this software without specific prior - * written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS - * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE - * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, - * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * This file is part of the uIP TCP/IP stack. - * - * $Id: uip_arch.c,v 1.1 2001/11/20 20:49:45 adam Exp $ - * - */ - - -#include "uip_arch.h" -#include "uip.h" - -/* This is assembler versions of the uIP support functions for the - 6502 CPU. Note that the checksum function ("_chksum()", defined - under uip_ipchksum()) does not support buffer sizes > 255 bytes. */ - -/*-----------------------------------------------------------------------------------*/ -static u16_t chksum_ptr, chksum_len, chksum_tmp; -static u16_t chksum(void); -/*-----------------------------------------------------------------------------------*/ -u16_t -uip_ipchksum(void) -{ - chksum_ptr = (u16_t)uip_buf; - chksum_len = 20; - return chksum(); -} -/*asm("__chksum:");*/ -u16_t chksum(void) { -asm("lda #0"); -asm("sta tmp1"); -asm("sta tmp1+1"); -asm("lda _chksum_ptr"); -asm("sta ptr1"); -asm("lda _chksum_ptr+1"); -asm("sta ptr1+1"); -asm("lda _chksum_len"); -asm("lsr"); -asm("bcc chksum_noodd"); -asm("pha"); -asm("ldy _chksum_len"); -asm("dey"); -asm("lda (ptr1),y"); -asm("sta tmp1"); -asm("pla"); -asm("chksum_noodd:"); -asm("asl"); -asm("tay"); -asm("clc"); -asm("php"); -asm("chksum_loop1:"); -asm("cpy #0"); -asm("beq chksum_loop1_end"); -asm("plp"); -asm("dey"); -asm("dey"); -asm("lda (ptr1),y"); -asm("adc tmp1"); -asm("sta tmp1"); -asm("iny"); -asm("lda (ptr1),y"); -asm("adc tmp1+1"); -asm("sta tmp1+1"); -asm("dey"); -asm("php"); -asm("jmp chksum_loop1"); -asm("chksum_loop1_end:"); -asm("plp"); -asm("chksum_endloop:"); -asm("lda tmp1"); -asm("adc #0"); -asm("sta tmp1"); -asm("lda tmp1+1"); -asm("adc #0"); -asm("sta tmp1+1"); -asm("bcs chksum_endloop"); -asm("lda tmp1"); -asm("ldx tmp1+1"); -asm("rts"); -} -/*-----------------------------------------------------------------------------------*/ -u16_t -uip_tcpchksum(void) -{ - chksum_ptr = (u16_t)&uip_buf[20]; - chksum_len = 20; - chksum_tmp = chksum(); - - chksum_ptr = (u16_t)uip_appdata; - asm("lda _uip_buf+3"); - asm("sec"); - asm("sbc #40"); - asm("sta _chksum_len"); - /* asm("lda _uip_buf+2"); - asm("sbc #0");*/ - asm("lda #0"); - asm("sta _chksum_len+1"); - asm("jsr %v", chksum); - - asm("clc"); - asm("adc _chksum_tmp"); - asm("sta _chksum_tmp"); - asm("txa"); - asm("adc _chksum_tmp+1"); - asm("sta _chksum_tmp+1"); - - asm("tcpchksum_loop1:"); - asm("lda _chksum_tmp"); - asm("adc #0"); - asm("sta _chksum_tmp"); - asm("lda _chksum_tmp+1"); - asm("adc #0"); - asm("sta _chksum_tmp+1"); - asm("bcs tcpchksum_loop1"); - - - asm("lda _uip_buf+3"); - asm("sec"); - asm("sbc #20"); - asm("sta _chksum_len"); - asm("lda _uip_buf+2"); - asm("sbc #0"); - asm("sta _chksum_len+1"); - - - asm("ldy #$0c"); - asm("clc"); - asm("php"); - asm("tcpchksum_loop2:"); - asm("plp"); - asm("lda _uip_buf,y"); - asm("adc _chksum_tmp"); - asm("sta _chksum_tmp"); - asm("iny"); - asm("lda _uip_buf,y"); - asm("adc _chksum_tmp+1"); - asm("sta _chksum_tmp+1"); - asm("iny"); - asm("php"); - asm("cpy #$14"); - asm("bne tcpchksum_loop2"); - - asm("plp"); - - asm("lda _chksum_tmp"); - asm("adc #0"); - asm("sta _chksum_tmp"); - asm("lda _chksum_tmp+1"); - asm("adc #6"); /* IP_PROTO_TCP */ - asm("sta _chksum_tmp+1"); - - - asm("lda _chksum_tmp"); - asm("adc _chksum_len+1"); - asm("sta _chksum_tmp"); - asm("lda _chksum_tmp+1"); - asm("adc _chksum_len"); - asm("sta _chksum_tmp+1"); - - - - asm("tcpchksum_loop3:"); - asm("lda _chksum_tmp"); - asm("adc #0"); - asm("sta _chksum_tmp"); - asm("lda _chksum_tmp+1"); - asm("adc #0"); - asm("sta _chksum_tmp+1"); - asm("bcs tcpchksum_loop3"); - - - return chksum_tmp; -} -/*-----------------------------------------------------------------------------------*/ -/*void -uip_add_rcv_nxt(u8_t n) -{ - uip_conn->rcv_nxt[3] += n; - if(uip_conn->rcv_nxt[3] < n) { - uip_conn->rcv_nxt[2]++; - if(uip_conn->rcv_nxt[2] == 0) { - uip_conn->rcv_nxt[1]++; - if(uip_conn->rcv_nxt[1] == 0) { - uip_conn->rcv_nxt[0]++; - } - } - } -}*/ -void __fastcall__ -uip_add_rcv_nxt(u8_t n) { - /*asm("_uip_add_rcv_nxt:");*/ - asm("pha"); - asm("lda _uip_conn"); - asm("sta ptr1"); - asm("lda _uip_conn+1"); - asm("sta ptr1+1"); - asm("pla"); - asm("clc"); - asm("ldy #12"); - asm("adc (ptr1),y"); - asm("sta (ptr1),y"); - asm("dey"); -#if UIP_BUFSIZE > 255 - asm("txa"); -#else - asm("lda #0"); -#endif /* UIP_BUFSIZE > 255 */ - asm("adc (ptr1),y"); - asm("sta (ptr1),y"); - asm("dey"); - asm("lda #0"); - asm("adc (ptr1),y"); - asm("sta (ptr1),y"); - asm("dey"); - asm("lda #0"); - asm("adc (ptr1),y"); - asm("sta (ptr1),y"); - /*asm("rts"); - asm(".export _uip_add_rcv_nxt");*/ -} -/*-----------------------------------------------------------------------------------*/ -/*void -uip_add_ack_nxt(u8_t n) -{ - uip_conn->ack_nxt[3] += n; - if(uip_conn->ack_nxt[3] < n) { - uip_conn->ack_nxt[2]++; - if(uip_conn->ack_nxt[2] == 0) { - uip_conn->ack_nxt[1]++; - if(uip_conn->ack_nxt[1] == 0) { - uip_conn->ack_nxt[0]++; - } - } - } -}*/ -void __fastcall__ -uip_add_ack_nxt(u8_t n) { - /*asm("_uip_add_ack_nxt:");*/ - asm("pha"); - asm("lda _uip_conn"); - asm("sta ptr1"); - asm("lda _uip_conn+1"); - asm("sta ptr1+1"); - asm("pla"); - asm("clc"); - asm("ldy #20"); - asm("adc (ptr1),y"); - asm("sta (ptr1),y"); - asm("dey"); -#if UIP_BUFSIZE > 255 - asm("txa"); -#else - asm("lda #0"); -#endif /* UIP_BUFSIZE > 255 */ - asm("adc (ptr1),y"); - asm("sta (ptr1),y"); - asm("dey"); - asm("lda #0"); - asm("adc (ptr1),y"); - asm("sta (ptr1),y"); - asm("dey"); - asm("lda #0"); - asm("adc (ptr1),y"); - asm("sta (ptr1),y"); - /*asm("rts"); - asm(".export _uip_add_ack_nxt");*/ -} -/*-----------------------------------------------------------------------------------*/ - - diff --git a/cc65/uipopt.h b/cc65/uipopt.h deleted file mode 100644 index 8eda8eb..0000000 --- a/cc65/uipopt.h +++ /dev/null @@ -1,189 +0,0 @@ -/* - * Copyright (c) 2001, Adam Dunkels. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Adam Dunkels. - * 4. The name of the author may not be used to endorse or promote - * products derived from this software without specific prior - * written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS - * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE - * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, - * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * This file is part of the uIP TCP/IP stack. - * - * $Id: uipopt.h,v 1.6 2002/01/11 12:43:14 adam Exp $ - * - */ - -#ifndef __UIPOPT_H__ -#define __UIPOPT_H__ - -/* This file is used for tweaking various configuration options for - uIP. You should make a copy of this file into one of your project's - directories instead of editing this example "uipopt.h" file that - comes with the uIP distribution. */ - -/*-----------------------------------------------------------------------------------*/ -/* First, two typedefs that may have to be tweaked for your particular - compiler. The uX_t types are unsigned integer types, where the X is - the number of bits in the integer type. Most compilers use - "unsigned char" and "unsigned short" for those two, - respectively. */ -typedef unsigned char u8_t; -typedef unsigned short u16_t; - -/*-----------------------------------------------------------------------------------*/ -/* The configuration options for a specific node. This includes IP - * address, netmask and default router as well as the Ethernet - * address. The netmask, default router and Ethernet address are - * appliciable only if uIP should be run over Ethernet. - * - * All of these should be changed to suit your project. -*/ - -/* UIP_IPADDR: The IP address of this uIP node. */ -#define UIP_IPADDR0 192 -#define UIP_IPADDR1 168 -#define UIP_IPADDR2 0 -#define UIP_IPADDR3 2 - -/* UIP_NETMASK: The netmask. */ -#define UIP_NETMASK0 255 -#define UIP_NETMASK1 255 -#define UIP_NETMASK2 255 -#define UIP_NETMASK3 0 - -/* UIP_DRIPADDR: IP address of the default router. */ -#define UIP_DRIPADDR0 192 -#define UIP_DRIPADDR1 168 -#define UIP_DRIPADDR2 0 -#define UIP_DRIPADDR3 1 - -/* UIP_ETHADDR: The Ethernet address. */ -#define UIP_ETHADDR0 0x00 -#define UIP_ETHADDR1 0xbd -#define UIP_ETHADDR2 0x3b -#define UIP_ETHADDR3 0x33 -#define UIP_ETHADDR4 0x05 -#define UIP_ETHADDR5 0x71 - - -/*-----------------------------------------------------------------------------------*/ -/* The following options are used to configure application specific - * setting such as how many TCP ports that should be avaliable and if - * the uIP should be configured to support active opens. - * - * These should probably be tweaked to suite your project. - */ - -/* Include the header file for the application program that should be - used. If you don't use the example web server, you should change - this. */ -#include "httpd.h" - -/* UIP_CONNS: The maximum number of simultaneously active - connections. */ -#define UIP_CONNS 10 - -/* UIP_LISTENPORTS: The maximum number of simultaneously listening TCP - ports. */ -#define UIP_LISTENPORTS 1 - -/* UIP_ACTIVE_OPEN: Determines if support for opening connections from - uIP should be compiled in. If this isn't needed for your - application, don't turn it on. (A web server doesn't need this, for - instance.) */ -#define UIP_ACTIVE_OPEN 0 - -/* UIP_BUFSIZE: The size of the buffer that holds incoming and - outgoing packets. */ -#define UIP_BUFSIZE 160 - -/* UIP_STATISTICS: Determines if statistics support should be compiled - in. The statistics is useful for debugging and to show the user. */ -#define UIP_STATISTICS 1 - -/* UIP_LOGGING: Determines if logging of certain events should be - compiled in. Useful mostly for debugging. The function uip_log(char - *msg) must be implemented to suit your architecture if logging is - turned on. */ -#define UIP_LOGGING 0 - -/* UIP_LLH_LEN: The link level header length; this is the offset into - the uip_buf where the IP header can be found. For Ethernet, this - should be set to 14. For SLIP, this should be set to 0. */ -#define UIP_LLH_LEN 0 - -/*-----------------------------------------------------------------------------------*/ -/* The following configuration options can be tweaked for your - * project, but you are probably safe to use the default values. The - * options are listed in order of importance. - */ - -/* UIP_MAXRTX: The maximum number of times a segment should be - retransmitted before the connection should be aborted. */ -#define UIP_MAXRTX 8 - -/* UIP_ARPTAB_SIZE: The size of the ARP table - use a larger value if - this uIP node will have many connections from the local network. */ -#define UIP_ARPTAB_SIZE 8 - -/* The maxium age of ARP table entries measured in 10ths of - seconds. An UIP_ARP_MAXAGE of 120 corresponds to 20 minutes (BSD - default). */ -#define UIP_ARP_MAXAGE 120 - -/* UIP_RTO: The retransmission timeout counted in timer pulses (i.e., - the speed of the periodic timer, usually one second). */ -#define UIP_RTO 3 - -/* UIP_TCP_MSS: The TCP maximum segment size. This should be set to - at most UIP_BUFSIZE - UIP_LLH_LEN - 40. */ -#define UIP_TCP_MSS (UIP_BUFSIZE - UIP_LLH_LEN - 40) - -/* UIP_TTL: The IP TTL (time to live) of IP packets sent by uIP. */ -#define UIP_TTL 255 - -/* UIP_TIME_WAIT_TIMEOUT: How long a connection should stay in the - TIME_WAIT state. Has no real implication, so it should be left - untouched. */ -#define UIP_TIME_WAIT_TIMEOUT 120 -/*-----------------------------------------------------------------------------------*/ -/* This is where you configure if your CPU architecture is big or - * little endian. Most CPUs today are little endian. The most notable - * exception are the Motorolas which are big endian. Tweak the - * definition of the BYTE_ORDER macro to configure uIP for your - * project. - */ -#ifndef LITTLE_ENDIAN -#define LITTLE_ENDIAN 3412 -#endif /* LITTLE_ENDIAN */ -#ifndef BIG_ENDIAN -#define BIG_ENDIAN 1234 -#endif /* BIGE_ENDIAN */ - -#ifndef BYTE_ORDER -#define BYTE_ORDER LITTLE_ENDIAN -#endif /* BYTE_ORDER */ - -#endif /* __UIPOPT_H__ */ diff --git a/doc/Doxyfile b/doc/Doxyfile new file mode 100644 index 0000000..d1c00fb --- /dev/null +++ b/doc/Doxyfile @@ -0,0 +1,234 @@ +# Doxyfile 1.3.3 + +#--------------------------------------------------------------------------- +# General configuration options +#--------------------------------------------------------------------------- +PROJECT_NAME = "uIP 0.9" +PROJECT_NUMBER = +OUTPUT_DIRECTORY = . +OUTPUT_LANGUAGE = English +USE_WINDOWS_ENCODING = NO +EXTRACT_ALL = NO +EXTRACT_PRIVATE = NO +EXTRACT_STATIC = NO +EXTRACT_LOCAL_CLASSES = NO +HIDE_UNDOC_MEMBERS = YES +HIDE_UNDOC_CLASSES = YES +HIDE_FRIEND_COMPOUNDS = NO +HIDE_IN_BODY_DOCS = NO +BRIEF_MEMBER_DESC = YES +REPEAT_BRIEF = YES +ALWAYS_DETAILED_SEC = NO +INLINE_INHERITED_MEMB = NO +FULL_PATH_NAMES = YES +STRIP_FROM_PATH = ../ \ + ../../ +INTERNAL_DOCS = NO +CASE_SENSE_NAMES = YES +SHORT_NAMES = YES +HIDE_SCOPE_NAMES = NO +SHOW_INCLUDE_FILES = YES +JAVADOC_AUTOBRIEF = YES +MULTILINE_CPP_IS_BRIEF = NO +DETAILS_AT_TOP = YES +INHERIT_DOCS = YES +INLINE_INFO = YES +SORT_MEMBER_DOCS = YES +DISTRIBUTE_GROUP_DOC = NO +TAB_SIZE = 8 +GENERATE_TODOLIST = YES +GENERATE_TESTLIST = YES +GENERATE_BUGLIST = NO +GENERATE_DEPRECATEDLIST= NO +ALIASES = +ENABLED_SECTIONS = +MAX_INITIALIZER_LINES = 30 +OPTIMIZE_OUTPUT_FOR_C = YES +OPTIMIZE_OUTPUT_JAVA = NO +SHOW_USED_FILES = NO +SUBGROUPING = YES +#--------------------------------------------------------------------------- +# configuration options related to warning and progress messages +#--------------------------------------------------------------------------- +QUIET = NO +WARNINGS = YES +WARN_IF_UNDOCUMENTED = YES +WARN_IF_DOC_ERROR = YES +WARN_FORMAT = "$file:$line: $text" +WARN_LOGFILE = +#--------------------------------------------------------------------------- +# configuration options related to the input files +#--------------------------------------------------------------------------- +INPUT = uip-doc.txt \ + ../uip/uip.h \ + ../uip/uip.c \ + ../uip/uip_arch.h \ + ../uip/uip_arp.h \ + ../uip/uip_arp.c \ + ../uip/slipdev.h \ + ../uip/slipdev.c \ + ../unix/uipopt.h \ + ../apps/webclient/webclient.h \ + ../apps/webclient/webclient.c \ + ../apps/smtp/smtp.h \ + ../apps/smtp/smtp.c \ + ../apps/telnetd/telnetd.h \ + ../apps/telnetd/telnetd.c \ + ../apps/telnetd/telnetd-shell.c \ + ../apps/telnetd/memb.h \ + ../apps/telnetd/memb.c \ + ../apps/httpd/httpd.h \ + ../apps/httpd/httpd.c \ + ../apps/httpd/cgi.h \ + ../apps/httpd/cgi.c \ + ../apps/httpd/fs.h \ + ../apps/httpd/fs.c \ + ../apps/resolv/resolv.h \ + ../apps/resolv/resolv.c +FILE_PATTERNS = +RECURSIVE = NO +EXCLUDE = +EXCLUDE_SYMLINKS = NO +EXCLUDE_PATTERNS = +EXAMPLE_PATH = +EXAMPLE_PATTERNS = +EXAMPLE_RECURSIVE = NO +IMAGE_PATH = +INPUT_FILTER = +FILTER_SOURCE_FILES = NO +#--------------------------------------------------------------------------- +# configuration options related to source browsing +#--------------------------------------------------------------------------- +SOURCE_BROWSER = NO +INLINE_SOURCES = NO +STRIP_CODE_COMMENTS = NO +REFERENCED_BY_RELATION = YES +REFERENCES_RELATION = YES +VERBATIM_HEADERS = NO +#--------------------------------------------------------------------------- +# configuration options related to the alphabetical class index +#--------------------------------------------------------------------------- +ALPHABETICAL_INDEX = YES +COLS_IN_ALPHA_INDEX = 5 +IGNORE_PREFIX = +#--------------------------------------------------------------------------- +# configuration options related to the HTML output +#--------------------------------------------------------------------------- +GENERATE_HTML = YES +HTML_OUTPUT = html +HTML_FILE_EXTENSION = .html +HTML_HEADER = +HTML_FOOTER = +HTML_STYLESHEET = +HTML_ALIGN_MEMBERS = YES +GENERATE_HTMLHELP = YES +CHM_FILE = +HHC_LOCATION = +GENERATE_CHI = YES +BINARY_TOC = YES +TOC_EXPAND = NO +DISABLE_INDEX = NO +ENUM_VALUES_PER_LINE = 4 +GENERATE_TREEVIEW = YES +TREEVIEW_WIDTH = 250 +#--------------------------------------------------------------------------- +# configuration options related to the LaTeX output +#--------------------------------------------------------------------------- +GENERATE_LATEX = YES +LATEX_OUTPUT = latex +LATEX_CMD_NAME = latex +MAKEINDEX_CMD_NAME = makeindex +COMPACT_LATEX = NO +PAPER_TYPE = a4wide +EXTRA_PACKAGES = +LATEX_HEADER = +PDF_HYPERLINKS = YES +USE_PDFLATEX = YES +LATEX_BATCHMODE = NO +LATEX_HIDE_INDICES = NO +#--------------------------------------------------------------------------- +# configuration options related to the RTF output +#--------------------------------------------------------------------------- +GENERATE_RTF = NO +RTF_OUTPUT = rtf +COMPACT_RTF = NO +RTF_HYPERLINKS = NO +RTF_STYLESHEET_FILE = +RTF_EXTENSIONS_FILE = +#--------------------------------------------------------------------------- +# configuration options related to the man page output +#--------------------------------------------------------------------------- +GENERATE_MAN = NO +MAN_OUTPUT = man +MAN_EXTENSION = .3 +MAN_LINKS = NO +#--------------------------------------------------------------------------- +# configuration options related to the XML output +#--------------------------------------------------------------------------- +GENERATE_XML = NO +XML_OUTPUT = xml +XML_SCHEMA = +XML_DTD = +#--------------------------------------------------------------------------- +# configuration options for the AutoGen Definitions output +#--------------------------------------------------------------------------- +GENERATE_AUTOGEN_DEF = NO +#--------------------------------------------------------------------------- +# configuration options related to the Perl module output +#--------------------------------------------------------------------------- +GENERATE_PERLMOD = NO +PERLMOD_LATEX = NO +PERLMOD_PRETTY = YES +PERLMOD_MAKEVAR_PREFIX = +#--------------------------------------------------------------------------- +# Configuration options related to the preprocessor +#--------------------------------------------------------------------------- +ENABLE_PREPROCESSING = YES +MACRO_EXPANSION = NO +EXPAND_ONLY_PREDEF = NO +SEARCH_INCLUDES = YES +INCLUDE_PATH = +INCLUDE_FILE_PATTERNS = +PREDEFINED = UIP_UDP +EXPAND_AS_DEFINED = +SKIP_FUNCTION_MACROS = YES +#--------------------------------------------------------------------------- +# Configuration::addtions related to external references +#--------------------------------------------------------------------------- +TAGFILES = +GENERATE_TAGFILE = +ALLEXTERNALS = NO +EXTERNAL_GROUPS = YES +PERL_PATH = /usr/bin/perl +#--------------------------------------------------------------------------- +# Configuration options related to the dot tool +#--------------------------------------------------------------------------- +CLASS_DIAGRAMS = YES +HIDE_UNDOC_RELATIONS = YES +HAVE_DOT = YES +CLASS_GRAPH = NO +COLLABORATION_GRAPH = YES +UML_LOOK = NO +TEMPLATE_RELATIONS = NO +INCLUDE_GRAPH = YES +INCLUDED_BY_GRAPH = YES +CALL_GRAPH = YES +GRAPHICAL_HIERARCHY = YES +DOT_IMAGE_FORMAT = png +DOT_PATH = +DOTFILE_DIRS = +MAX_DOT_GRAPH_WIDTH = 1024 +MAX_DOT_GRAPH_HEIGHT = 1024 +MAX_DOT_GRAPH_DEPTH = 0 +GENERATE_LEGEND = YES +DOT_CLEANUP = YES +#--------------------------------------------------------------------------- +# Configuration::addtions related to the search engine +#--------------------------------------------------------------------------- +SEARCHENGINE = NO +CGI_NAME = search.cgi +CGI_URL = +DOC_URL = +DOC_ABSPATH = +BIN_ABSPATH = /usr/local/bin/ +EXT_DOC_PATHS = diff --git a/doc/Makefile b/doc/Makefile new file mode 100644 index 0000000..fadaea6 --- /dev/null +++ b/doc/Makefile @@ -0,0 +1,5 @@ +htmldoc: + doxygen Doxyfile + +pdfdoc: htmldoc + cd latex; make refman.pdf && mv refman.pdf ../uip-refman.pdf \ No newline at end of file diff --git a/doc/README b/doc/README new file mode 100644 index 0000000..3a65aef --- /dev/null +++ b/doc/README @@ -0,0 +1,12 @@ +The files in this directory comprise the uIP documentation. The files +are: + +html/ The uIP reference manual in HTML format. + +uip-refman.pdf The uIP reference manual in a printable PDF version. + +mobisys2003.pdf Conference paper about uIP from the First + International Conference on Mobile Systems, + Applications and Services (MobiSys), San + Francisco, May 2003. + diff --git a/doc/html/a00030.html b/doc/html/a00030.html new file mode 100644 index 0000000..725cf12 --- /dev/null +++ b/doc/html/a00030.html @@ -0,0 +1,33 @@ + + +uIP 0.9: fs_file struct Reference + + + + +

    fs_file Struct Reference
    + +[Web server] +

    #include <fs.h> +

    +


    Detailed Description

    +An open file in the read-only file system. +

    + + + + + + + + + +

    Data Fields

    +char * data
     The actual file data.

    +int len
     The length of the file data.

    +


    Generated on Tue Oct 7 15:51:41 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/a00036.html b/doc/html/a00036.html new file mode 100644 index 0000000..ea1329f --- /dev/null +++ b/doc/html/a00036.html @@ -0,0 +1,24 @@ + + +uIP 0.9: telnetd_state struct Reference + + + + +

    telnetd_state Struct Reference
    + +[Telnet server] +

    #include <telnetd.h> +

    +


    Detailed Description

    +A telnet connection structure. +

    + + +
    +


    Generated on Tue Oct 7 15:51:41 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/a00037.html b/doc/html/a00037.html new file mode 100644 index 0000000..ede2947 --- /dev/null +++ b/doc/html/a00037.html @@ -0,0 +1,87 @@ + + +uIP 0.9: uip_conn struct Reference + + + + +

    uip_conn Struct Reference
    + +[The uIP TCP/IP stack] +

    #include <uip.h> +

    +


    Detailed Description

    +Representation of a uIP TCP connection. +

    +The uip_conn structure is used for identifying a connection. All but one field in the structure are to be considered read-only by an application. The only exception is the appstate field whos purpose is to let the application store application-specific state (e.g., file pointers) for the connection. The size of this field is configured in the "uipopt.h" header file. +

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    Data Fields

    +u16_t ripaddr [2]
     The IP address of the remote host.

    +u16_t lport
     The local TCP port, in network byte order.

    +u16_t rport
     The local remote TCP port, in network byte order.

    +u8_t rcv_nxt [4]
     The sequence number that we expect to receive next.

    +u8_t snd_nxt [4]
     The sequence number that was last sent by us.

    +u16_t len
     Length of the data that was previously sent.

    +u16_t mss
     Current maximum segment size for the connection.

    +u16_t initialmss
     Initial maximum segment size for the connection.

    +u8_t sa
     Retransmission time-out calculation state variable.

    +u8_t sv
     Retransmission time-out calculation state variable.

    +u8_t rto
     Retransmission time-out.

    +u8_t tcpstateflags
     TCP state and flags.

    +u8_t timer
     The retransmission timer.

    +u8_t nrtx
     The number of retransmissions for the last segment sent.

    +u8_t appstate [UIP_APPSTATE_SIZE]
     The application state.

    +


    Generated on Tue Oct 7 15:51:41 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/a00038.html b/doc/html/a00038.html new file mode 100644 index 0000000..a8dba05 --- /dev/null +++ b/doc/html/a00038.html @@ -0,0 +1,24 @@ + + +uIP 0.9: uip_eth_addr struct Reference + + + + +

    uip_eth_addr Struct Reference
    + +[uIP Address Resolution Protocol] +

    #include <uip_arp.h> +

    +


    Detailed Description

    +Representation of a 48-bit Ethernet address. +

    + + +
    +


    Generated on Tue Oct 7 15:51:41 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/a00039.html b/doc/html/a00039.html new file mode 100644 index 0000000..f8d5c0f --- /dev/null +++ b/doc/html/a00039.html @@ -0,0 +1,28 @@ + + +uIP 0.9: uip_eth_hdr struct Reference + + + + +

    uip_eth_hdr Struct Reference
    + +[uIP Address Resolution Protocol] +

    #include <uip_arp.h> +

    +Collaboration diagram for uip_eth_hdr:

    Collaboration graph
    + + + +
    [legend]

    Detailed Description

    +The Ethernet header. +

    + + +
    +


    Generated on Tue Oct 7 15:51:42 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/a00041.html b/doc/html/a00041.html new file mode 100644 index 0000000..3afba21 --- /dev/null +++ b/doc/html/a00041.html @@ -0,0 +1,448 @@ + + +uIP 0.9: uip_stats struct Reference + + + + +

    uip_stats Struct Reference
    + +[The uIP TCP/IP stack] +

    #include <uip.h> +

    +


    Detailed Description

    +The structure holding the TCP/IP statistics that are gathered if UIP_STATISTICS is set to 1. +

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    Data Fields

    +struct {
       uip_stats_t   drop
       uip_stats_t   recv
       uip_stats_t   sent
       uip_stats_t   vhlerr
       uip_stats_t   hblenerr
       uip_stats_t   lblenerr
       uip_stats_t   fragerr
       uip_stats_t   chkerr
       uip_stats_t   protoerr
    ip
     IP statistics.

    +struct {
       uip_stats_t   drop
       uip_stats_t   recv
       uip_stats_t   sent
       uip_stats_t   typeerr
    icmp
     ICMP statistics.

    +struct {
       uip_stats_t   drop
       uip_stats_t   recv
       uip_stats_t   sent
       uip_stats_t   chkerr
       uip_stats_t   ackerr
       uip_stats_t   rst
       uip_stats_t   rexmit
       uip_stats_t   syndrop
       uip_stats_t   synrst
    tcp
     TCP statistics.

    +


    Field Documentation

    +

    + + + + +
    + + +
    uip_stats_t uip_stats::ackerr +
    +
    + + + + + +
    +   + + +

    +Number of TCP segments with a bad ACK number. +

    +

    +

    + + + + +
    + + +
    uip_stats_t uip_stats::chkerr +
    +
    + + + + + +
    +   + + +

    +Number of TCP segments with a bad checksum. +

    +

    +

    + + + + +
    + + +
    uip_stats_t uip_stats::drop +
    +
    + + + + + +
    +   + + +

    +Number of dropped TCP segments. +

    +

    +

    + + + + +
    + + +
    uip_stats_t uip_stats::fragerr +
    +
    + + + + + +
    +   + + +

    +Number of packets dropped since they were IP fragments. +

    +

    +

    + + + + +
    + + +
    uip_stats_t uip_stats::hblenerr +
    +
    + + + + + +
    +   + + +

    +Number of packets dropped due to wrong IP length, high byte. +

    +

    +

    + + + + +
    + + +
    uip_stats_t uip_stats::lblenerr +
    +
    + + + + + +
    +   + + +

    +Number of packets dropped due to wrong IP length, low byte. +

    +

    +

    + + + + +
    + + +
    uip_stats_t uip_stats::protoerr +
    +
    + + + + + +
    +   + + +

    +Number of packets dropped since they were neither ICMP, UDP nor TCP. +

    +

    +

    + + + + +
    + + +
    uip_stats_t uip_stats::recv +
    +
    + + + + + +
    +   + + +

    +Number of recived TCP segments. +

    +

    +

    + + + + +
    + + +
    uip_stats_t uip_stats::rexmit +
    +
    + + + + + +
    +   + + +

    +Number of retransmitted TCP segments. +

    +

    +

    + + + + +
    + + +
    uip_stats_t uip_stats::rst +
    +
    + + + + + +
    +   + + +

    +Number of recevied TCP RST (reset) segments. +

    +

    +

    + + + + +
    + + +
    uip_stats_t uip_stats::sent +
    +
    + + + + + +
    +   + + +

    +Number of sent TCP segments. +

    +

    +

    + + + + +
    + + +
    uip_stats_t uip_stats::syndrop +
    +
    + + + + + +
    +   + + +

    +Number of dropped SYNs due to too few connections was avaliable. +

    +

    +

    + + + + +
    + + +
    uip_stats_t uip_stats::synrst +
    +
    + + + + + +
    +   + + +

    +Number of SYNs for closed ports, triggering a RST. +

    +

    +

    + + + + +
    + + +
    uip_stats_t uip_stats::typeerr +
    +
    + + + + + +
    +   + + +

    +Number of ICMP packets with a wrong type. +

    +

    +

    + + + + +
    + + +
    uip_stats_t uip_stats::vhlerr +
    +
    + + + + + +
    +   + + +

    +Number of packets dropped due to wrong IP version or header length. +

    +

    +


    Generated on Tue Oct 7 15:51:43 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/a00046.html b/doc/html/a00046.html new file mode 100644 index 0000000..21a22e3 --- /dev/null +++ b/doc/html/a00046.html @@ -0,0 +1,37 @@ + + +uIP 0.9: uip_udp_conn struct Reference + + + + +

    uip_udp_conn Struct Reference
    + +[The uIP TCP/IP stack] +

    #include <uip.h> +

    +


    Detailed Description

    +Representation of a uIP UDP connection. +

    + + + + + + + + + + + + +

    Data Fields

    +u16_t ripaddr [2]
     The IP address of the remote peer.

    +u16_t lport
     The local port number in network byte order.

    +u16_t rport
     The remote port number in network byte order.

    +


    Generated on Tue Oct 7 15:51:43 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/a00049.html b/doc/html/a00049.html new file mode 100644 index 0000000..bd9dea0 --- /dev/null +++ b/doc/html/a00049.html @@ -0,0 +1,43 @@ + + +uIP 0.9: cgi.c File Reference + + + + +

    apps/httpd/cgi.c File Reference


    Detailed Description

    +HTTP server script language C functions file. +

    +

    Author:
    Adam Dunkels <adam@dunkels.com>
    +This file contains functions that are called by the web server scripts. The functions takes one argument, and the return value is interpreted as follows. A zero means that the function did not complete and should be invoked for the next packet as well. A non-zero value indicates that the function has completed and that the web server should move along to the next script line. +

    +#include "uip.h"
    +#include "cgi.h"
    +#include "httpd.h"
    +#include "fs.h"
    +#include <stdio.h>
    +#include <string.h>
    + +

    +Include dependency graph for cgi.c:

    Include dependency graph
    + + + + + + + + + + + + + +

    Variables

    +cgifunction cgitab []
     A table containing pointers to C functions that can be called from a web server script.

    +
    Generated on Tue Oct 7 15:51:03 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/a00050.html b/doc/html/a00050.html new file mode 100644 index 0000000..fddbfc4 --- /dev/null +++ b/doc/html/a00050.html @@ -0,0 +1,34 @@ + + +uIP 0.9: cgi.h File Reference + + + + +

    apps/httpd/cgi.h File Reference


    Detailed Description

    +HTTP script language header file. +

    +

    Author:
    Adam Dunkels <adam@dunkels.com>
    + +

    + +

    +This graph shows which files directly or indirectly include this file:

    Included by dependency graph
    + + + + + + + + + + +

    Variables

    +cgifunction cgitab []
     A table containing pointers to C functions that can be called from a web server script.

    +
    Generated on Tue Oct 7 15:51:04 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/a00051.html b/doc/html/a00051.html new file mode 100644 index 0000000..a1dc71c --- /dev/null +++ b/doc/html/a00051.html @@ -0,0 +1,44 @@ + + +uIP 0.9: fs.c File Reference + + + + +

    apps/httpd/fs.c File Reference


    Detailed Description

    +HTTP server read-only file system code. +

    +

    Author:
    Adam Dunkels <adam@dunkels.com>
    +A simple read-only filesystem. +

    +#include "uip.h"
    +#include "httpd.h"
    +#include "fs.h"
    +#include "fsdata.h"
    +#include "fsdata.c"
    + +

    +Include dependency graph for fs.c:

    Include dependency graph
    + + + + + + + + + + + + + + + +

    Functions

    int fs_open (const char *name, struct fs_file *file)
     Open a file in the read-only file system.

    +void fs_init (void)
     Initialize the read-only file system.

    +
    Generated on Tue Oct 7 15:51:05 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/a00052.html b/doc/html/a00052.html new file mode 100644 index 0000000..9482628 --- /dev/null +++ b/doc/html/a00052.html @@ -0,0 +1,51 @@ + + +uIP 0.9: fs.h File Reference + + + + +

    apps/httpd/fs.h File Reference


    Detailed Description

    +HTTP server read-only file system header file. +

    +

    Author:
    Adam Dunkels <adam@dunkels.com>
    + +

    +#include "uip.h"
    + +

    +Include dependency graph for fs.h:

    Include dependency graph
    + + + + + + +

    +This graph shows which files directly or indirectly include this file:

    Included by dependency graph
    + + + + + + + + + + + + + + + + + + +

    Data Structures

    struct  fs_file
     An open file in the read-only file system. More...


    Functions

    int fs_open (const char *name, struct fs_file *file)
     Open a file in the read-only file system.

    +void fs_init (void)
     Initialize the read-only file system.

    +
    Generated on Tue Oct 7 15:51:07 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/a00053.html b/doc/html/a00053.html new file mode 100644 index 0000000..b9951cc --- /dev/null +++ b/doc/html/a00053.html @@ -0,0 +1,41 @@ + + +uIP 0.9: httpd.c File Reference + + + + +

    apps/httpd/httpd.c File Reference


    Detailed Description

    +HTTP server. +

    +

    Author:
    Adam Dunkels <adam@dunkels.com>
    + +

    +#include "uip.h"
    +#include "httpd.h"
    +#include "fs.h"
    +#include "fsdata.h"
    +#include "cgi.h"
    + +

    +Include dependency graph for httpd.c:

    Include dependency graph
    + + + + + + + + + + + + + +

    Functions

    void httpd_init (void)
     Initialize the web server.

    +
    Generated on Tue Oct 7 15:51:07 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/a00054.html b/doc/html/a00054.html new file mode 100644 index 0000000..a0ee8cd --- /dev/null +++ b/doc/html/a00054.html @@ -0,0 +1,38 @@ + + +uIP 0.9: httpd.h File Reference + + + + +

    apps/httpd/httpd.h File Reference


    Detailed Description

    +HTTP server header file. +

    +

    Author:
    Adam Dunkels <adam@dunkels.com>
    + +

    + +

    +This graph shows which files directly or indirectly include this file:

    Included by dependency graph
    + + + + + + + + + + + + + + + +

    Functions

    void httpd_init (void)
     Initialize the web server.

    +
    Generated on Tue Oct 7 15:51:09 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/a00055.html b/doc/html/a00055.html new file mode 100644 index 0000000..a3e2037 --- /dev/null +++ b/doc/html/a00055.html @@ -0,0 +1,50 @@ + + +uIP 0.9: resolv.c File Reference + + + + +

    apps/resolv/resolv.c File Reference


    Detailed Description

    +DNS host name to IP address resolver. +

    +

    Author:
    Adam Dunkels <adam@dunkels.com>
    +This file implements a DNS host name to IP address resolver. +

    +#include "resolv.h"
    +#include <string.h>
    + +

    +Include dependency graph for resolv.c:

    Include dependency graph
    + + + + + + + + + + + + + + + + + + + + + + + + +

    Functions

    void resolv_query (char *name)
     Queues a name so that a question for the name will be sent out.

    u16_tresolv_lookup (char *name)
     Look up a hostname in the array of known hostnames.

    u16_tresolv_getserver (void)
     Obtain the currently configured DNS server.

    void resolv_conf (u16_t *dnsserver)
     Configure which DNS server to use for queries.

    +void resolv_init (void)
     Initalize the resolver.

    +
    Generated on Tue Oct 7 15:51:09 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/a00056.html b/doc/html/a00056.html new file mode 100644 index 0000000..eb1c2b3 --- /dev/null +++ b/doc/html/a00056.html @@ -0,0 +1,58 @@ + + +uIP 0.9: resolv.h File Reference + + + + +

    apps/resolv/resolv.h File Reference


    Detailed Description

    +DNS resolver code header file. +

    +

    Author:
    Adam Dunkels <adam@dunkels.com>
    + +

    +#include "uip.h"
    + +

    +Include dependency graph for resolv.h:

    Include dependency graph
    + + + + + + +

    +This graph shows which files directly or indirectly include this file:

    Included by dependency graph
    + + + + + + + + + + + + + + + + + + + + + + + + + +

    Functions

    void resolv_found (char *name, u16_t *ipaddr)
     Callback function which is called when a hostname is found.

    void resolv_conf (u16_t *dnsserver)
     Configure which DNS server to use for queries.

    u16_tresolv_getserver (void)
     Obtain the currently configured DNS server.

    +void resolv_init (void)
     Initalize the resolver.

    u16_tresolv_lookup (char *name)
     Look up a hostname in the array of known hostnames.

    void resolv_query (char *name)
     Queues a name so that a question for the name will be sent out.

    +
    Generated on Tue Oct 7 15:51:11 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/a00057.html b/doc/html/a00057.html new file mode 100644 index 0000000..022aed2 --- /dev/null +++ b/doc/html/a00057.html @@ -0,0 +1,42 @@ + + +uIP 0.9: smtp.c File Reference + + + + +

    apps/smtp/smtp.c File Reference


    Detailed Description

    +SMTP example implementation. +

    +

    Author:
    Adam Dunkels <adam@dunkels.com>
    + +

    +#include "uip.h"
    +#include "smtp.h"
    +#include "smtp-strings.h"
    +#include <string.h>
    + +

    +Include dependency graph for smtp.c:

    Include dependency graph
    + + + + + + + + + + + + + + + +

    Functions

    unsigned char smtp_send (char *to, char *from, char *subject, char *msg, u16_t msglen)
     Send an e-mail.

    void smtp_configure (char *lhostname, u16_t *server)
     Specificy an SMTP server and hostname.

    +
    Generated on Tue Oct 7 15:51:12 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/a00058.html b/doc/html/a00058.html new file mode 100644 index 0000000..f617cc1 --- /dev/null +++ b/doc/html/a00058.html @@ -0,0 +1,59 @@ + + +uIP 0.9: smtp.h File Reference + + + + +

    apps/smtp/smtp.h File Reference


    Detailed Description

    +SMTP header file. +

    +

    Author:
    Adam Dunkels <adam@dunkels.com>
    + +

    +#include "uipopt.h"
    + +

    +Include dependency graph for smtp.h:

    Include dependency graph
    + + + + + +

    +This graph shows which files directly or indirectly include this file:

    Included by dependency graph
    + + + + + + + + + + + + + + + + + + + + + + + + + +

    Defines

    +#define SMTP_ERR_OK   0
     Error number that signifies a non-error condition.

    +#define UIP_APPCALL   smtp_appcall
     The name of the application function that uIP should call in response to TCP/IP events.

    +#define UIP_APPSTATE_SIZE   (sizeof(struct smtp_state))
     The size of the application state that is to be stored in the uip_conn structure.


    Functions

    void smtp_done (unsigned char error)
     Callback function that is called when an e-mail transmission is done.

    void smtp_configure (char *localhostname, u16_t *smtpserver)
     Specificy an SMTP server and hostname.

    unsigned char smtp_send (char *to, char *from, char *subject, char *msg, u16_t msglen)
     Send an e-mail.

    +
    Generated on Tue Oct 7 15:51:14 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/a00059.html b/doc/html/a00059.html new file mode 100644 index 0000000..292bc97 --- /dev/null +++ b/doc/html/a00059.html @@ -0,0 +1,65 @@ + + +uIP 0.9: memb.c File Reference + + + + +

    apps/telnetd/memb.c File Reference


    Detailed Description

    +Memory block allocation routines. +

    +

    Author:
    Adam Dunkels <adam@sics.se>
    +The memory block allocation routines provide a simple yet powerful set of functions for managing a set of memory blocks of fixed size. A set of memory blocks is statically declared with the MEMB() macro. Memory blocks are allocated from the declared memory by the memb_alloc() function, and are deallocated with the memb_free() function.

    +

    Note:
    Because of namespace clashes only one MEMB() can be declared per C module, and the name scope of a MEMB() memory block is local to each C module.
    +The following example shows how to declare and use a memory block called "cmem" which has 8 chunks of memory with each memory chunk being 20 bytes large.

    +

     MEMB(cmem, 20, 8);
    +
    + int main(int argc, char *argv[]) {
    +    char *ptr;
    +    
    +    memb_init(&cmem);
    +
    +    ptr = memb_alloc(&cmem);
    +
    +    if(ptr != NULL) {
    +       do_something(ptr);
    +    } else {
    +       printf("Could not allocate memory.\n");
    +    }
    +
    +    if(memb_free(ptr) == 0) {
    +       printf("Deallocation succeeded.\n");
    +    }
    + }
    +
    +

    +#include <string.h>
    +#include "memb.h"
    + +

    +Include dependency graph for memb.c:

    Include dependency graph
    + + + + + + + + + + + + + + + + + + +

    Functions

    void memb_init (struct memb_blocks *m)
     Initialize a memory block that was declared with MEMB().

    char * memb_alloc (struct memb_blocks *m)
     Allocate a memory block from a block of memory declared with MEMB().

    char memb_free (struct memb_blocks *m, char *ptr)
     Deallocate a memory block from a memory block previously declared with MEMB().

    char memb_ref (struct memb_blocks *m, char *ptr)
     Increase the reference count for a memory chunk.

    +
    Generated on Tue Oct 7 15:51:14 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/a00060.html b/doc/html/a00060.html new file mode 100644 index 0000000..d0941c3 --- /dev/null +++ b/doc/html/a00060.html @@ -0,0 +1,46 @@ + + +uIP 0.9: memb.h File Reference + + + + +

    apps/telnetd/memb.h File Reference


    Detailed Description

    +Memory block allocation routines. +

    +

    Author:
    Adam Dunkels <adam@sics.se>
    + +

    + +

    +This graph shows which files directly or indirectly include this file:

    Included by dependency graph
    + + + + + + + + + + + + + + + + + + + + + + + +

    Defines

    #define MEMB(name, size, num)
     Declare a memory block.


    Functions

    void memb_init (struct memb_blocks *m)
     Initialize a memory block that was declared with MEMB().

    char * memb_alloc (struct memb_blocks *m)
     Allocate a memory block from a block of memory declared with MEMB().

    char memb_ref (struct memb_blocks *m, char *ptr)
     Increase the reference count for a memory chunk.

    char memb_free (struct memb_blocks *m, char *ptr)
     Deallocate a memory block from a memory block previously declared with MEMB().

    +
    Generated on Tue Oct 7 15:51:15 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/a00061.html b/doc/html/a00061.html new file mode 100644 index 0000000..1eb004b --- /dev/null +++ b/doc/html/a00061.html @@ -0,0 +1,41 @@ + + +uIP 0.9: telnetd-shell.c File Reference + + + + +

    apps/telnetd/telnetd-shell.c File Reference


    Detailed Description

    +An example telnet server shell. +

    +

    Author:
    Adam Dunkels <adam@dunkels.com>
    + +

    +#include "uip.h"
    +#include "telnetd.h"
    +#include <string.h>
    + +

    +Include dependency graph for telnetd-shell.c:

    Include dependency graph
    + + + + + + + + + + + + + + + +

    Functions

    void telnetd_connected (struct telnetd_state *s)
     Callback function that is called when a telnet connection has been established.

    void telnetd_input (struct telnetd_state *s, char *cmd)
     Callback function that is called when a line of text has arrived on a telnet connection.

    +
    Generated on Tue Oct 7 15:51:16 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/a00062.html b/doc/html/a00062.html new file mode 100644 index 0000000..254217b --- /dev/null +++ b/doc/html/a00062.html @@ -0,0 +1,49 @@ + + +uIP 0.9: telnetd.c File Reference + + + + +

    apps/telnetd/telnetd.c File Reference


    Detailed Description

    +Implementation of the Telnet server. +

    +

    Author:
    Adam Dunkels <adam@dunkels.com>
    + +

    +#include "uip.h"
    +#include "memb.h"
    +#include "telnetd.h"
    +#include <string.h>
    + +

    +Include dependency graph for telnetd.c:

    Include dependency graph
    + + + + + + + + + + + + + + + + + + + + + + +

    Functions

    void telnetd_close (struct telnetd_state *s)
     Close a telnet session.

    void telnetd_prompt (struct telnetd_state *s, char *str)
     Print a prompt on a telnet connection.

    void telnetd_output (struct telnetd_state *s, char *str1, char *str2)
     Print out a string on a telnet connection.

    void telnetd_init (void)
     Initialize the telnet server.

    +
    Generated on Tue Oct 7 15:51:17 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/a00063.html b/doc/html/a00063.html new file mode 100644 index 0000000..3da5afc --- /dev/null +++ b/doc/html/a00063.html @@ -0,0 +1,70 @@ + + +uIP 0.9: telnetd.h File Reference + + + + +

    apps/telnetd/telnetd.h File Reference


    Detailed Description

    +Header file for the telnet server. +

    +

    Author:
    Adam Dunkels <adam@dunkels.com>
    + +

    +#include "uip.h"
    + +

    +Include dependency graph for telnetd.h:

    Include dependency graph
    + + + + + + +

    +This graph shows which files directly or indirectly include this file:

    Included by dependency graph
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    Data Structures

    struct  telnetd_state
     A telnet connection structure. More...


    Defines

    +#define TELNETD_LINELEN
     The maximum length of a telnet line.

    +#define TELNETD_NUMLINES
     The number of output lines being buffered for all telnet connections.


    Functions

    void telnetd_connected (struct telnetd_state *s)
     Callback function that is called when a telnet connection has been established.

    void telnetd_input (struct telnetd_state *s, char *cmd)
     Callback function that is called when a line of text has arrived on a telnet connection.

    void telnetd_close (struct telnetd_state *s)
     Close a telnet session.

    void telnetd_output (struct telnetd_state *s, char *s1, char *s2)
     Print out a string on a telnet connection.

    void telnetd_prompt (struct telnetd_state *s, char *str)
     Print a prompt on a telnet connection.

    void telnetd_init (void)
     Initialize the telnet server.

    +
    Generated on Tue Oct 7 15:51:21 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/a00064.html b/doc/html/a00064.html new file mode 100644 index 0000000..8a5acfd --- /dev/null +++ b/doc/html/a00064.html @@ -0,0 +1,60 @@ + + +uIP 0.9: webclient.c File Reference + + + + +

    apps/webclient/webclient.c File Reference


    Detailed Description

    +Implementation of the HTTP client. +

    +

    Author:
    Adam Dunkels <adam@dunkels.com>
    + +

    +#include "uip.h"
    +#include "webclient.h"
    +#include "resolv.h"
    +#include <string.h>
    + +

    +Include dependency graph for webclient.c:

    Include dependency graph
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    Functions

    char * webclient_mimetype (void)
     Obtain the MIME type of the current HTTP data stream.

    char * webclient_filename (void)
     Obtain the filename of the current HTTP data stream.

    char * webclient_hostname (void)
     Obtain the hostname of the current HTTP data stream.

    unsigned short webclient_port (void)
     Obtain the port number of the current HTTP data stream.

    +void webclient_init (void)
     Initialize the webclient module.

    +void webclient_close (void)
     Close the currently open HTTP connection.

    unsigned char webclient_get (char *host, u16_t port, char *file)
     Open an HTTP connection to a web server and ask for a file using the GET method.

    +
    Generated on Tue Oct 7 15:51:24 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/a00065.html b/doc/html/a00065.html new file mode 100644 index 0000000..7a9e0fe --- /dev/null +++ b/doc/html/a00065.html @@ -0,0 +1,72 @@ + + +uIP 0.9: webclient.h File Reference + + + + +

    apps/webclient/webclient.h File Reference


    Detailed Description

    +Header file for the HTTP client. +

    +

    Author:
    Adam Dunkels <adam@dunkels.com>
    + +

    +#include "http-strings.h"
    +#include "http-user-agent-string.h"
    + +

    +Include dependency graph for webclient.h:

    Include dependency graph
    + +

    +This graph shows which files directly or indirectly include this file:

    Included by dependency graph
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    Functions

    void webclient_datahandler (char *data, u16_t len)
     Callback function that is called from the webclient code when HTTP data has been received.

    void webclient_connected (void)
     Callback function that is called from the webclient code when the HTTP connection has been connected to the web server.

    void webclient_timedout (void)
     Callback function that is called from the webclient code if the HTTP connection to the web server has timed out.

    void webclient_aborted (void)
     Callback function that is called from the webclient code if the HTTP connection to the web server has been aborted by the web server.

    void webclient_closed (void)
     Callback function that is called from the webclient code when the HTTP connection to the web server has been closed.

    +void webclient_init (void)
     Initialize the webclient module.

    unsigned char webclient_get (char *host, u16_t port, char *file)
     Open an HTTP connection to a web server and ask for a file using the GET method.

    +void webclient_close (void)
     Close the currently open HTTP connection.

    char * webclient_mimetype (void)
     Obtain the MIME type of the current HTTP data stream.

    char * webclient_filename (void)
     Obtain the filename of the current HTTP data stream.

    char * webclient_hostname (void)
     Obtain the hostname of the current HTTP data stream.

    unsigned short webclient_port (void)
     Obtain the port number of the current HTTP data stream.

    +
    Generated on Tue Oct 7 15:51:29 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/a00067.html b/doc/html/a00067.html new file mode 100644 index 0000000..984f8a1 --- /dev/null +++ b/doc/html/a00067.html @@ -0,0 +1,41 @@ + + +uIP 0.9: slipdev.c File Reference + + + + +

    uip/slipdev.c File Reference


    Detailed Description

    +SLIP protocol implementation. +

    +

    Author:
    Adam Dunkels <adam@dunkels.com>
    + +

    +#include "uip.h"
    + +

    +Include dependency graph for slipdev.c:

    Include dependency graph
    + + + + + + + + + + + + + + + + + +

    Functions

    void slipdev_send (void)
     Send the packet in the uip_buf and uip_appdata buffers using the SLIP protocol.

    u16_t slipdev_poll (void)
     Poll the SLIP device for an available packet.

    void slipdev_init (void)
     Initialize the SLIP module.

    +
    Generated on Tue Oct 7 15:51:30 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/a00068.html b/doc/html/a00068.html new file mode 100644 index 0000000..0fb5a0d --- /dev/null +++ b/doc/html/a00068.html @@ -0,0 +1,47 @@ + + +uIP 0.9: slipdev.h File Reference + + + + +

    uip/slipdev.h File Reference


    Detailed Description

    +SLIP header file. +

    +

    Author:
    Adam Dunkels <adam@dunkels.com>
    + +

    +#include "uip.h"
    + +

    +Include dependency graph for slipdev.h:

    Include dependency graph
    + + + + + + + + + + + + + + + + + + + + + + + +

    Functions

    void slipdev_char_put (u8_t c)
     Put a character on the serial device.

    u8_t slipdev_char_poll (u8_t *c)
     Poll the serial device for a character.

    void slipdev_init (void)
     Initialize the SLIP module.

    void slipdev_send (void)
     Send the packet in the uip_buf and uip_appdata buffers using the SLIP protocol.

    u16_t slipdev_poll (void)
     Poll the SLIP device for an available packet.

    +
    Generated on Tue Oct 7 15:51:31 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/a00069.html b/doc/html/a00069.html new file mode 100644 index 0000000..ed3c40f --- /dev/null +++ b/doc/html/a00069.html @@ -0,0 +1,61 @@ + + +uIP 0.9: uip.c File Reference + + + + +

    uip/uip.c File Reference


    Detailed Description

    +The uIP TCP/IP stack code. +

    +

    Author:
    Adam Dunkels <adam@dunkels.com>
    + +

    +#include "uip.h"
    +#include "uipopt.h"
    +#include "uip_arch.h"
    + +

    +Include dependency graph for uip.c:

    Include dependency graph
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    Functions

    void uip_init (void)
     uIP initialization function.

    uip_udp_connuip_udp_new (u16_t *ripaddr, u16_t rport)
     Set up a new UDP connection.

    void uip_unlisten (u16_t port)
     Stop listening to the specified port.

    void uip_listen (u16_t port)
     Start listening to the specified port.

    u16_t htons (u16_t val)
     Convert 16-bit quantity from host byte order to network byte order.


    Variables

    u8_t uip_buf [UIP_BUFSIZE+2]
     The uIP packet buffer.

    volatile u8_tuip_appdata
     Pointer to the application data in the packet buffer.

    +volatile u8_t uip_acc32 [4]
     4-byte array used for the 32-bit sequence number calculations.

    +
    Generated on Tue Oct 7 15:51:32 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/a00070.html b/doc/html/a00070.html new file mode 100644 index 0000000..6d71f1d --- /dev/null +++ b/doc/html/a00070.html @@ -0,0 +1,183 @@ + + +uIP 0.9: uip.h File Reference + + + + +

    uip/uip.h File Reference


    Detailed Description

    +Header file for the uIP TCP/IP stack. +

    +

    Author:
    Adam Dunkels <adam@dunkels.com>
    +The uIP TCP/IP stack header file contains definitions for a number of C macros that are used by uIP programs as well as internal uIP structures, TCP/IP header structures and function declarations. +

    +#include "uipopt.h"
    + +

    +Include dependency graph for uip.h:

    Include dependency graph
    + + + + + +

    +This graph shows which files directly or indirectly include this file:

    Included by dependency graph
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    Data Structures

    struct  uip_conn
     Representation of a uIP TCP connection. More...

    struct  uip_stats
     The structure holding the TCP/IP statistics that are gathered if UIP_STATISTICS is set to 1. More...

    struct  uip_udp_conn
     Representation of a uIP UDP connection. More...


    Defines

    #define uip_sethostaddr(addr)
     Set the IP address of this host.

    #define uip_gethostaddr(addr)
     Get the IP address of this host.

    #define uip_input()
     Process an incoming packet.

    #define uip_periodic(conn)
     Periodic processing for a connection identified by its number.

    #define uip_periodic_conn(conn)
     Periodic processing for a connection identified by a pointer to its structure.

    #define uip_udp_periodic(conn)
     Periodic processing for a UDP connection identified by its number.

    #define uip_udp_periodic_conn(conn)
     Periodic processing for a UDP connection identified by a pointer to its structure.

    #define uip_send(data, len)
     Send data on the current connection.

    #define uip_datalen()
     The length of any incoming data that is currently avaliable (if avaliable) in the uip_appdata buffer.

    #define uip_urgdatalen()
     The length of any out-of-band data (urgent data) that has arrived on the connection.

    #define uip_close()
     Close the current connection.

    #define uip_abort()
     Abort the current connection.

    #define uip_stop()
     Tell the sending host to stop sending data.

    +#define uip_stopped(conn)
     Find out if the current connection has been previously stopped with uip_stop().

    #define uip_restart()
     Restart the current connection, if is has previously been stopped with uip_stop().

    #define uip_newdata()
     Is new incoming data available?

    #define uip_acked()
     Has previously sent data been acknowledged?

    #define uip_connected()
     Has the connection just been connected?

    #define uip_closed()
     Has the connection been closed by the other end?

    #define uip_aborted()
     Has the connection been aborted by the other end?

    #define uip_timedout()
     Has the connection timed out?

    #define uip_rexmit()
     Do we need to retransmit previously data?

    #define uip_poll()
     Is the connection being polled by uIP?

    +#define uip_initialmss()
     Get the initial maxium segment size (MSS) of the current connection.

    #define uip_mss()
     Get the current maxium segment size that can be sent on the current connection.

    #define uip_udp_remove(conn)
     Removed a UDP connection.

    #define uip_udp_send(len)
     Send a UDP datagram of length len on the current connection.

    #define uip_ipaddr(addr, addr0, addr1, addr2, addr3)
     Pack an IP address into a 4-byte array which is used by uIP to represent IP addresses.

    #define HTONS(n)
     Convert 16-bit quantity from host byte order to network byte order.


    Functions

    void uip_init (void)
     uIP initialization function.

    void uip_listen (u16_t port)
     Start listening to the specified port.

    void uip_unlisten (u16_t port)
     Stop listening to the specified port.

    uip_connuip_connect (u16_t *ripaddr, u16_t port)
     Connect to a remote host using TCP.

    uip_udp_connuip_udp_new (u16_t *ripaddr, u16_t rport)
     Set up a new UDP connection.

    u16_t htons (u16_t val)
     Convert 16-bit quantity from host byte order to network byte order.


    Variables

    u8_t uip_buf [UIP_BUFSIZE+2]
     The uIP packet buffer.

    volatile u8_tuip_appdata
     Pointer to the application data in the packet buffer.

    +volatile u8_t uip_acc32 [4]
     4-byte array used for the 32-bit sequence number calculations.

    uip_stats uip_stat
     The uIP TCP/IP statistics.

    +
    Generated on Tue Oct 7 15:51:34 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/a00071.html b/doc/html/a00071.html new file mode 100644 index 0000000..f2348e6 --- /dev/null +++ b/doc/html/a00071.html @@ -0,0 +1,50 @@ + + +uIP 0.9: uip_arch.h File Reference + + + + +

    uip/uip_arch.h File Reference


    Detailed Description

    +Declarations of architecture specific functions. +

    +

    Author:
    Adam Dunkels <adam@dunkels.com>
    + +

    +#include "uip.h"
    + +

    +Include dependency graph for uip_arch.h:

    Include dependency graph
    + + + + + + +

    +This graph shows which files directly or indirectly include this file:

    Included by dependency graph
    + + + + + + + + + + + + + + + + + + +

    Functions

    void uip_add32 (u8_t *op32, u16_t op16)
     Carry out a 32-bit addition.

    u16_t uip_chksum (u16_t *buf, u16_t len)
     Calculate the Internet checksum over a buffer.

    u16_t uip_ipchksum (void)
     Calculate the IP header checksum of the packet header in uip_buf.

    u16_t uip_tcpchksum (void)
     Calculate the TCP checksum of the packet in uip_buf and uip_appdata.

    +
    Generated on Tue Oct 7 15:51:36 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/a00072.html b/doc/html/a00072.html new file mode 100644 index 0000000..01fc222 --- /dev/null +++ b/doc/html/a00072.html @@ -0,0 +1,50 @@ + + +uIP 0.9: uip_arp.c File Reference + + + + +

    uip/uip_arp.c File Reference


    Detailed Description

    +Implementation of the ARP Address Resolution Protocol. +

    +

    Author:
    Adam Dunkels <adam@dunkels.com>
    + +

    +#include "uip_arp.h"
    +#include <string.h>
    + +

    +Include dependency graph for uip_arp.c:

    Include dependency graph
    + + + + + + + + + + + + + + + + + + + + + + + + +

    Functions

    +void uip_arp_init (void)
     Initialize the ARP module.

    void uip_arp_timer (void)
     Periodic ARP processing function.

    void uip_arp_ipin (void)
     ARP processing for incoming IP packets.

    void uip_arp_arpin (void)
     ARP processing for incoming ARP packets.

    void uip_arp_out (void)
     Prepend Ethernet header to an outbound IP packet and see if we need to send out an ARP request.

    +
    Generated on Tue Oct 7 15:51:37 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/a00073.html b/doc/html/a00073.html new file mode 100644 index 0000000..483b616 --- /dev/null +++ b/doc/html/a00073.html @@ -0,0 +1,77 @@ + + +uIP 0.9: uip_arp.h File Reference + + + + +

    uip/uip_arp.h File Reference


    Detailed Description

    +Macros and definitions for the ARP module. +

    +

    Author:
    Adam Dunkels <adam@dunkels.com>
    + +

    +#include "uip.h"
    + +

    +Include dependency graph for uip_arp.h:

    Include dependency graph
    + + + + + + +

    +This graph shows which files directly or indirectly include this file:

    Included by dependency graph
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    Data Structures

    struct  uip_eth_addr
     Representation of a 48-bit Ethernet address. More...

    struct  uip_eth_hdr
     The Ethernet header. More...


    Defines

    #define uip_setdraddr(addr)
     Set the default router's IP address.

    #define uip_setnetmask(addr)
     Set the netmask.

    #define uip_getdraddr(addr)
     Get the default router's IP address.

    #define uip_getnetmask(addr)
     Get the netmask.

    #define uip_setethaddr(eaddr)
     Specifiy the Ethernet MAC address.


    Functions

    +void uip_arp_init (void)
     Initialize the ARP module.

    void uip_arp_ipin (void)
     ARP processing for incoming IP packets.

    void uip_arp_arpin (void)
     ARP processing for incoming ARP packets.

    void uip_arp_out (void)
     Prepend Ethernet header to an outbound IP packet and see if we need to send out an ARP request.

    void uip_arp_timer (void)
     Periodic ARP processing function.

    +
    Generated on Tue Oct 7 15:51:39 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/a00074.html b/doc/html/a00074.html new file mode 100644 index 0000000..1cb69e1 --- /dev/null +++ b/doc/html/a00074.html @@ -0,0 +1,209 @@ + + +uIP 0.9: uipopt.h File Reference + + + + +

    unix/uipopt.h File Reference


    Detailed Description

    +Configuration options for uIP. +

    +

    Author:
    Adam Dunkels <adam@dunkels.com>
    +This file is used for tweaking various configuration options for uIP. You should make a copy of this file into one of your project's directories instead of editing this example "uipopt.h" file that comes with the uIP distribution. +

    +#include "httpd.h"
    + +

    +Include dependency graph for uipopt.h:

    Include dependency graph
    + + + + +

    +This graph shows which files directly or indirectly include this file:

    Included by dependency graph
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    Defines

    #define UIP_FIXEDADDR
     Determines if uIP should use a fixed IP address or not.

    #define UIP_PINGADDRCONF
     Ping IP address asignment.

    +#define UIP_IPADDR0
     The first octet of the IP address of this uIP node, if UIP_FIXEDADDR is 1.

    +#define UIP_IPADDR1
     The second octet of the IP address of this uIP node, if UIP_FIXEDADDR is 1.

    +#define UIP_IPADDR2
     The third octet of the IP address of this uIP node, if UIP_FIXEDADDR is 1.

    +#define UIP_IPADDR3
     The fourth octet of the IP address of this uIP node, if UIP_FIXEDADDR is 1.

    +#define UIP_NETMASK0
     The first octet of the netmask of this uIP node, if UIP_FIXEDADDR is 1.

    +#define UIP_NETMASK1
     The second octet of the netmask of this uIP node, if UIP_FIXEDADDR is 1.

    +#define UIP_NETMASK2
     The third octet of the netmask of this uIP node, if UIP_FIXEDADDR is 1.

    +#define UIP_NETMASK3
     The fourth octet of the netmask of this uIP node, if UIP_FIXEDADDR is 1.

    +#define UIP_DRIPADDR0
     The first octet of the IP address of the default router, if UIP_FIXEDADDR is 1.

    +#define UIP_DRIPADDR1
     The second octet of the IP address of the default router, if UIP_FIXEDADDR is 1.

    +#define UIP_DRIPADDR2
     The third octet of the IP address of the default router, if UIP_FIXEDADDR is 1.

    +#define UIP_DRIPADDR3
     The fourth octet of the IP address of the default router, if UIP_FIXEDADDR is 1.

    #define UIP_FIXEDETHADDR
     Specifies if the uIP ARP module should be compiled with a fixed Ethernet MAC address or not.

    +#define UIP_ETHADDR0
     The first octet of the Ethernet address if UIP_FIXEDETHADDR is 1.

    +#define UIP_ETHADDR1
     The second octet of the Ethernet address if UIP_FIXEDETHADDR is 1.

    +#define UIP_ETHADDR2
     The third octet of the Ethernet address if UIP_FIXEDETHADDR is 1.

    +#define UIP_ETHADDR3
     The fourth octet of the Ethernet address if UIP_FIXEDETHADDR is 1.

    +#define UIP_ETHADDR4
     The fifth octet of the Ethernet address if UIP_FIXEDETHADDR is 1.

    +#define UIP_ETHADDR5
     The sixth octet of the Ethernet address if UIP_FIXEDETHADDR is 1.

    #define UIP_TTL   255
     The IP TTL (time to live) of IP packets sent by uIP.

    #define UIP_REASSEMBLY
     Turn on support for IP packet reassembly.

    +#define UIP_REASS_MAXAGE   40
     The maximum time an IP fragment should wait in the reassembly buffer before it is dropped.

    +#define UIP_UDP
     Toggles wether UDP support should be compiled in or not.

    #define UIP_UDP_CHECKSUMS
     Toggles if UDP checksums should be used or not.

    +#define UIP_UDP_CONNS
     The maximum amount of concurrent UDP connections.

    +#define UIP_UDP_APPCALL
     The name of the function that should be called when UDP datagrams arrive.

    #define UIP_ACTIVE_OPEN
     Determines if support for opening connections from uIP should be compiled in.

    #define UIP_CONNS
     The maximum number of simultaneously open TCP connections.

    #define UIP_LISTENPORTS
     The maximum number of simultaneously listening TCP ports.

    #define UIP_RECEIVE_WINDOW
     The size of the advertised receiver's window.

    #define UIP_URGDATA
     Determines if support for TCP urgent data notification should be compiled in.

    #define UIP_RTO   3
     The initial retransmission timeout counted in timer pulses.

    #define UIP_MAXRTX   8
     The maximum number of times a segment should be retransmitted before the connection should be aborted.

    #define UIP_MAXSYNRTX   3
     The maximum number of times a SYN segment should be retransmitted before a connection request should be deemed to have been unsuccessful.

    #define UIP_TCP_MSS   (UIP_BUFSIZE - UIP_LLH_LEN - 40)
     The TCP maximum segment size.

    #define UIP_TIME_WAIT_TIMEOUT   120
     How long a connection should stay in the TIME_WAIT state.

    #define UIP_ARPTAB_SIZE
     The size of the ARP table.

    #define UIP_ARP_MAXAGE   120
     The maxium age of ARP table entries measured in 10ths of seconds.

    #define UIP_BUFSIZE
     The size of the uIP packet buffer.

    #define UIP_STATISTICS
     Determines if statistics support should be compiled in.

    #define UIP_LOGGING
     Determines if logging of certain events should be compiled in.

    #define UIP_LLH_LEN
     The link level header length.

    #define BYTE_ORDER
     The byte order of the CPU architecture on which uIP is to be run.


    Typedefs

    typedef unsigned char u8_t
     The 8-bit unsigned data type.

    typedef unsigned short u16_t
     The 16-bit unsigned data type.

    typedef unsigned short uip_stats_t
     The statistics data type.


    Functions

    void uip_log (char *msg)
     Print out a uIP log message.

    +
    Generated on Tue Oct 7 15:51:41 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/a00075.html b/doc/html/a00075.html new file mode 100644 index 0000000..3cc54a6 --- /dev/null +++ b/doc/html/a00075.html @@ -0,0 +1,358 @@ + + +uIP 0.9: The uIP TCP/IP stack + + + + +

    The uIP TCP/IP stack

    +

    + + + + + + + +

    +

    + + + +

    +

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    Files

    file  uip.c
     The uIP TCP/IP stack code.

    file  uip.h
     Header file for the uIP TCP/IP stack.


    Modules

    uIP configuration functions
    uIP initialization functions
    uIP device driver functions
    uIP application functions
    uIP conversion functions
    uIP Address Resolution Protocol
    Serial Line IP (SLIP) protocol
    uIP hostname resolver functions
    Architecture specific uIP functions

    Data Structures

    struct  uip_conn
     Representation of a uIP TCP connection. More...

    struct  uip_stats
     The structure holding the TCP/IP statistics that are gathered if UIP_STATISTICS is set to 1. More...

    struct  uip_udp_conn
     Representation of a uIP UDP connection. More...


    Functions

    void uip_init (void)
     uIP initialization function.

    uip_udp_connuip_udp_new (u16_t *ripaddr, u16_t rport)
     Set up a new UDP connection.

    void uip_unlisten (u16_t port)
     Stop listening to the specified port.

    void uip_listen (u16_t port)
     Start listening to the specified port.

    u16_t htons (u16_t val)
     Convert 16-bit quantity from host byte order to network byte order.


    Variables

    volatile u8_tuip_appdata
     Pointer to the application data in the packet buffer.

    uip_stats uip_stat
     The uIP TCP/IP statistics.

    u8_t uip_buf [UIP_BUFSIZE+2]
     The uIP packet buffer.

    +volatile u8_t uip_acc32 [4]
     4-byte array used for the 32-bit sequence number calculations.

    +


    Function Documentation

    +

    + + + + +
    + + + + + + + + + + +
    u16_t htons u16_t  val  ) 
    +
    + + + + + +
    +   + + +

    +Convert 16-bit quantity from host byte order to network byte order. +

    +This function is primarily used for converting variables from host byte order to network byte order. For converting constants to network byte order, use the HTONS() macro instead.

    +

    + + + + +
    + + + + + + + + + + +
    void uip_init void   ) 
    +
    + + + + + +
    +   + + +

    +uIP initialization function. +

    +This function should be called at boot up to initilize the uIP TCP/IP stack.

    +

    + + + + +
    + + + + + + + + + + +
    void uip_listen u16_t  port  ) 
    +
    + + + + + +
    +   + + +

    +Start listening to the specified port. +

    +

    Note:
    Since this function expects the port number in network byte order, a conversion using HTONS() or htons() is necessary.
    +
     uip_listen(HTONS(80)); 
    +

    +

    Parameters:
    + + +
    port A 16-bit port number in network byte order.
    +
    +
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + +
    struct uip_udp_conn* uip_udp_new u16_t ripaddr,
    u16_t  rport
    +
    + + + + + +
    +   + + +

    +Set up a new UDP connection. +

    +

    Parameters:
    + + + +
    ripaddr A pointer to a 4-byte structure representing the IP address of the remote host.
    rport The remote port number in network byte order.
    +
    +
    Returns:
    The uip_udp_conn structure for the new connection or NULL if no connection could be allocated.
    +
    +

    + + + + +
    + + + + + + + + + + +
    void uip_unlisten u16_t  port  ) 
    +
    + + + + + +
    +   + + +

    +Stop listening to the specified port. +

    +

    Note:
    Since this function expects the port number in network byte order, a conversion using HTONS() or htons() is necessary.
    +

    +

    Parameters:
    + + +
    port A 16-bit port number in network byte order.
    +
    +
    +


    Variable Documentation

    +

    + + + + +
    + + +
    volatile u8_t* uip_appdata +
    +
    + + + + + +
    +   + + +

    +Pointer to the application data in the packet buffer. +

    +This pointer points to the application data when the application is called. If the application wishes to send data, the application may use this space to write the data into before calling uip_send().

    +

    + + + + +
    + + +
    u8_t uip_buf[UIP_BUFSIZE+2] +
    +
    + + + + + +
    +   + + +

    +The uIP packet buffer. +

    +The uip_buf array is used to hold incoming and outgoing packets. The device driver should place incoming data into this buffer. When sending data, the device driver should read the link level headers and the TCP/IP headers from this buffer. The size of the link level headers is configured by the UIP_LLH_LEN define.

    +

    Note:
    The application data need not be placed in this buffer, so the device driver must read it from the place pointed to by the uip_appdata pointer as illustrated by the following example:
     void
    + devicedriver_send(void)
    + {
    +    hwsend(&uip_buf[0], UIP_LLH_LEN);
    +    hwsend(&uip_buf[UIP_LLH_LEN], 40);
    +    hwsend(uip_appdata, uip_len - 40 - UIP_LLH_LEN);
    + }
    +
    +
    +

    + + + + +
    + + +
    struct uip_stats uip_stat +
    +
    + + + + + +
    +   + + +

    +The uIP TCP/IP statistics. +

    +This is the variable in which the uIP TCP/IP statistics are gathered.

    +


    Generated on Tue Oct 7 15:51:43 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/a00076.html b/doc/html/a00076.html new file mode 100644 index 0000000..5bfedb8 --- /dev/null +++ b/doc/html/a00076.html @@ -0,0 +1,269 @@ + + +uIP 0.9: Example applications + + + + +

    Example applications


    Detailed Description

    +The uIP distribution contains a number of example applications that can be either used directory or studied when learning to develop applications for uIP. +

    + + + + + + + +

    +

    + + + +

    +

    + + + + + + + + + + + + + + + + + + + + + + + + + +

    Files

    file  memb.c
     Memory block allocation routines.

    file  memb.h
     Memory block allocation routines.


    Modules

    Web client
    SMTP E-mail sender
    Telnet server
    Web server

    Defines

    #define MEMB(name, size, num)
     Declare a memory block.


    Functions

    void memb_init (struct memb_blocks *m)
     Initialize a memory block that was declared with MEMB().

    char * memb_alloc (struct memb_blocks *m)
     Allocate a memory block from a block of memory declared with MEMB().

    char memb_ref (struct memb_blocks *m, char *ptr)
     Increase the reference count for a memory chunk.

    char memb_free (struct memb_blocks *m, char *ptr)
     Deallocate a memory block from a memory block previously declared with MEMB().

    +


    Define Documentation

    +

    + + + + +
    + + + + + + + + + + + + + +
    #define MEMBname,
    size,
    num   )  +
    +
    + + + + + +
    +   + + +

    +Value:

    static char memb_mem[(size + 1) * num]; \
    +        static struct memb_blocks name = {size, num, memb_mem}
    +
    Declare a memory block. +

    +

    Parameters:
    + + + + +
    name The name of the memory block (later used with memb_init(), memb_alloc() and memb_free()).
    size The size of each memory chunk, in bytes.
    num The total number of memory chunks in the block.
    +
    +
    +


    Function Documentation

    +

    + + + + +
    + + + + + + + + + + +
    char* memb_alloc struct memb_blocks *  m  ) 
    +
    + + + + + +
    +   + + +

    +Allocate a memory block from a block of memory declared with MEMB(). +

    +

    Parameters:
    + + +
    m A memory block previosly declared with MEMB().
    +
    +
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + +
    char memb_free struct memb_blocks *  m,
    char *  ptr
    +
    + + + + + +
    +   + + +

    +Deallocate a memory block from a memory block previously declared with MEMB(). +

    +

    Parameters:
    + + + +
    m m A memory block previosly declared with MEMB().
    ptr A pointer to the memory block that is to be deallocated.
    +
    +
    Returns:
    The new reference count for the memory block (should be 0 if successfully deallocated) or -1 if the pointer "ptr" did not point to a legal memory block.
    +
    +

    + + + + +
    + + + + + + + + + + +
    void memb_init struct memb_blocks *  m  ) 
    +
    + + + + + +
    +   + + +

    +Initialize a memory block that was declared with MEMB(). +

    +

    Parameters:
    + + +
    m A memory block previosly declared with MEMB().
    +
    +
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + +
    char memb_ref struct memb_blocks *  m,
    char *  ptr
    +
    + + + + + +
    +   + + +

    +Increase the reference count for a memory chunk. +

    +

    Note:
    No sanity checks are currently made.
    +
    Parameters:
    + + + +
    m m A memory block previosly declared with MEMB().
    ptr A pointer to the memory chunk for which the reference count should be increased.
    +
    +
    Returns:
    The new reference count.
    +
    +


    Generated on Tue Oct 7 15:51:43 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/a00077.html b/doc/html/a00077.html new file mode 100644 index 0000000..6ad8ec3 --- /dev/null +++ b/doc/html/a00077.html @@ -0,0 +1,287 @@ + + +uIP 0.9: uIP configuration functions + + + + +

    uIP configuration functions
    + +[The uIP TCP/IP stack] +


    Detailed Description

    +The uIP configuration functions are used for setting run-time parameters in uIP such as IP addresses. +

    + + + + + + + + + + + + + + + + + + + + + + + + +

    Defines

    #define uip_sethostaddr(addr)
     Set the IP address of this host.

    #define uip_gethostaddr(addr)
     Get the IP address of this host.

    #define uip_setdraddr(addr)
     Set the default router's IP address.

    #define uip_setnetmask(addr)
     Set the netmask.

    #define uip_getdraddr(addr)
     Get the default router's IP address.

    #define uip_getnetmask(addr)
     Get the netmask.

    #define uip_setethaddr(eaddr)
     Specifiy the Ethernet MAC address.

    +


    Define Documentation

    +

    + + + + +
    + + + + + + + +
    #define uip_getdraddraddr   )  +
    +
    + + + + + +
    +   + + +

    +Get the default router's IP address. +

    +

    Parameters:
    + + +
    addr A pointer to a 4-byte array that will be filled in with the IP address of the default router.
    +
    +
    +

    + + + + +
    + + + + + + + +
    #define uip_gethostaddraddr   )  +
    +
    + + + + + +
    +   + + +

    +Get the IP address of this host. +

    +The IP address is represented as a 4-byte array where the first octet of the IP address is put in the first member of the 4-byte array.

    +

    Parameters:
    + + +
    addr A pointer to a 4-byte array that will be filled in with the currently configured IP address.
    +
    +
    +

    + + + + +
    + + + + + + + +
    #define uip_getnetmaskaddr   )  +
    +
    + + + + + +
    +   + + +

    +Get the netmask. +

    +

    Parameters:
    + + +
    addr A pointer to a 4-byte array that will be filled in with the value of the netmask.
    +
    +
    +

    + + + + +
    + + + + + + + +
    #define uip_setdraddraddr   )  +
    +
    + + + + + +
    +   + + +

    +Set the default router's IP address. +

    +

    Parameters:
    + + +
    addr A pointer to a 4-byte array containing the IP address of the default router.
    +
    +
    +

    + + + + +
    + + + + + + + +
    #define uip_setethaddreaddr   )  +
    +
    + + + + + +
    +   + + +

    +Specifiy the Ethernet MAC address. +

    +The ARP code needs to know the MAC address of the Ethernet card in order to be able to respond to ARP queries and to generate working Ethernet headers.

    +

    Note:
    This macro only specifies the Ethernet MAC address to the ARP code. It cannot be used to change the MAC address of the Ethernet card.
    +
    Parameters:
    + + +
    eaddr A pointer to a struct uip_eth_addr containing the Ethernet MAC address of the Ethernet card.
    +
    +
    +

    + + + + +
    + + + + + + + +
    #define uip_sethostaddraddr   )  +
    +
    + + + + + +
    +   + + +

    +Set the IP address of this host. +

    +The IP address is represented as a 4-byte array where the first octet of the IP address is put in the first member of the 4-byte array.

    +

    Parameters:
    + + +
    addr A pointer to a 4-byte representation of the IP address.
    +
    +
    +

    + + + + +
    + + + + + + + +
    #define uip_setnetmaskaddr   )  +
    +
    + + + + + +
    +   + + +

    +Set the netmask. +

    +

    Parameters:
    + + +
    addr A pointer to a 4-byte array containing the IP address of the netmask.
    +
    +
    +


    Generated on Tue Oct 7 15:51:43 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/a00078.html b/doc/html/a00078.html new file mode 100644 index 0000000..92b7416 --- /dev/null +++ b/doc/html/a00078.html @@ -0,0 +1,58 @@ + + +uIP 0.9: uIP initialization functions + + + + +

    uIP initialization functions
    + +[The uIP TCP/IP stack] +


    Detailed Description

    +The uIP initialization functions are used for booting uIP. +

    + + + + + + +

    Functions

    void uip_init (void)
     uIP initialization function.

    +


    Function Documentation

    +

    + + + + +
    + + + + + + + + + + +
    void uip_init void   ) 
    +
    + + + + + +
    +   + + +

    +uIP initialization function. +

    +This function should be called at boot up to initilize the uIP TCP/IP stack.

    +


    Generated on Tue Oct 7 15:51:43 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/a00079.html b/doc/html/a00079.html new file mode 100644 index 0000000..7324265 --- /dev/null +++ b/doc/html/a00079.html @@ -0,0 +1,303 @@ + + +uIP 0.9: uIP device driver functions + + + + +

    uIP device driver functions
    + +[The uIP TCP/IP stack] +


    Detailed Description

    +These functions are used by a network device driver for interacting with uIP. +

    + + + + + + + + + + + + + + + + + + + + + + +

    Defines

    #define uip_input()
     Process an incoming packet.

    #define uip_periodic(conn)
     Periodic processing for a connection identified by its number.

    #define uip_periodic_conn(conn)
     Periodic processing for a connection identified by a pointer to its structure.

    #define uip_udp_periodic(conn)
     Periodic processing for a UDP connection identified by its number.

    #define uip_udp_periodic_conn(conn)
     Periodic processing for a UDP connection identified by a pointer to its structure.


    Variables

    u8_t uip_buf [UIP_BUFSIZE+2]
     The uIP packet buffer.

    +


    Define Documentation

    +

    + + + + +
    + + + + +  + + +
    #define uip_input  )  +
    +
    + + + + + +
    +   + + +

    +Process an incoming packet. +

    +This function should be called when the device driver has received a packet from the network. The packet from the device driver must be present in the uip_buf buffer, and the length of the packet should be placed in the uip_len variable.

    +When the function returns, there may be an outbound packet placed in the uip_buf packet buffer. If so, the uip_len variable is set to the length of the packet. If no packet is to be sent out, the uip_len variable is set to 0.

    +The usual way of calling the function is presented by the source code below.

      uip_len = devicedriver_poll();
    +  if(uip_len > 0) {
    +    uip_input();
    +    if(uip_len > 0) {
    +      devicedriver_send();
    +    }
    +  }
    +

    +

    Note:
    If you are writing a uIP device driver that needs ARP (Address Resolution Protocol), e.g., when running uIP over Ethernet, you will need to call the uIP ARP code before calling this function:
      #define BUF ((struct uip_eth_hdr *)&uip_buf[0])
    +  uip_len = ethernet_devicedrver_poll();
    +  if(uip_len > 0) {
    +    if(BUF->type == HTONS(UIP_ETHTYPE_IP)) {
    +      uip_arp_ipin();
    +      uip_input();
    +      if(uip_len > 0) {
    +        uip_arp_out();
    +        ethernet_devicedriver_send();
    +      }
    +    } else if(BUF->type == HTONS(UIP_ETHTYPE_ARP)) {
    +      uip_arp_arpin();
    +      if(uip_len > 0) {
    +        ethernet_devicedriver_send();
    +      }
    +    }
    +
    +
    +

    + + + + +
    + + + + + + + +
    #define uip_periodicconn   )  +
    +
    + + + + + +
    +   + + +

    +Periodic processing for a connection identified by its number. +

    +This function does the necessary periodic processing (timers, polling) for a uIP TCP conneciton, and should be called when the periodic uIP timer goes off. It should be called for every connection, regardless of whether they are open of closed.

    +When the function returns, it may have an outbound packet waiting for service in the uIP packet buffer, and if so the uip_len variable is set to a value larger than zero. The device driver should be called to send out the packet.

    +The ususal way of calling the function is through a for() loop like this:

      for(i = 0; i < UIP_CONNS; ++i) {
    +    uip_periodic(i);
    +    if(uip_len > 0) {
    +      devicedriver_send();
    +    }
    +  }
    +

    +

    Note:
    If you are writing a uIP device driver that needs ARP (Address Resolution Protocol), e.g., when running uIP over Ethernet, you will need to call the uip_arp_out() function before calling the device driver:
      for(i = 0; i < UIP_CONNS; ++i) {
    +    uip_periodic(i);
    +    if(uip_len > 0) {
    +      uip_arp_out();
    +      ethernet_devicedriver_send();
    +    }
    +  }
    +
    +
    Parameters:
    + + +
    conn The number of the connection which is to be periodically polled.
    +
    +
    +

    + + + + +
    + + + + + + + +
    #define uip_periodic_connconn   )  +
    +
    + + + + + +
    +   + + +

    +Periodic processing for a connection identified by a pointer to its structure. +

    +Same as uip_periodic() but takes a pointer to the actual uip_conn struct instead of an integer as its argument. This function can be used to force periodic processing of a specific connection.

    +

    Parameters:
    + + +
    conn A pointer to the uip_conn struct for the connection to be processed.
    +
    +
    +

    + + + + +
    + + + + + + + +
    #define uip_udp_periodicconn   )  +
    +
    + + + + + +
    +   + + +

    +Periodic processing for a UDP connection identified by its number. +

    +This function is essentially the same as uip_prerioic(), but for UDP connections. It is called in a similar fashion as the uip_periodic() function:

      for(i = 0; i < UIP_UDP_CONNS; i++) {
    +    uip_udp_periodic(i);
    +    if(uip_len > 0) {
    +      devicedriver_send();
    +    }
    +  }   
    +

    +

    Note:
    As for the uip_periodic() function, special care has to be taken when using uIP together with ARP and Ethernet:
      for(i = 0; i < UIP_UDP_CONNS; i++) {
    +    uip_udp_periodic(i);
    +    if(uip_len > 0) {
    +      uip_arp_out();
    +      ethernet_devicedriver_send();
    +    }
    +  }   
    +
    +
    Parameters:
    + + +
    conn The number of the UDP connection to be processed.
    +
    +
    +

    + + + + +
    + + + + + + + +
    #define uip_udp_periodic_connconn   )  +
    +
    + + + + + +
    +   + + +

    +Periodic processing for a UDP connection identified by a pointer to its structure. +

    +Same as uip_udp_periodic() but takes a pointer to the actual uip_conn struct instead of an integer as its argument. This function can be used to force periodic processing of a specific connection.

    +

    Parameters:
    + + +
    conn A pointer to the uip_udp_conn struct for the connection to be processed.
    +
    +
    +


    Variable Documentation

    +

    + + + + +
    + + +
    u8_t uip_buf[UIP_BUFSIZE+2] +
    +
    + + + + + +
    +   + + +

    +The uIP packet buffer. +

    +The uip_buf array is used to hold incoming and outgoing packets. The device driver should place incoming data into this buffer. When sending data, the device driver should read the link level headers and the TCP/IP headers from this buffer. The size of the link level headers is configured by the UIP_LLH_LEN define.

    +

    Note:
    The application data need not be placed in this buffer, so the device driver must read it from the place pointed to by the uip_appdata pointer as illustrated by the following example:
     void
    + devicedriver_send(void)
    + {
    +    hwsend(&uip_buf[0], UIP_LLH_LEN);
    +    hwsend(&uip_buf[UIP_LLH_LEN], 40);
    +    hwsend(uip_appdata, uip_len - 40 - UIP_LLH_LEN);
    + }
    +
    +
    +


    Generated on Tue Oct 7 15:51:43 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/a00080.html b/doc/html/a00080.html new file mode 100644 index 0000000..b450f87 --- /dev/null +++ b/doc/html/a00080.html @@ -0,0 +1,827 @@ + + +uIP 0.9: uIP application functions + + + + +

    uIP application functions
    + +[The uIP TCP/IP stack] +


    Detailed Description

    +Functions used by an application running of top of uIP. +

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    Defines

    #define uip_send(data, len)
     Send data on the current connection.

    #define uip_datalen()
     The length of any incoming data that is currently avaliable (if avaliable) in the uip_appdata buffer.

    #define uip_urgdatalen()
     The length of any out-of-band data (urgent data) that has arrived on the connection.

    #define uip_close()
     Close the current connection.

    #define uip_abort()
     Abort the current connection.

    #define uip_stop()
     Tell the sending host to stop sending data.

    +#define uip_stopped(conn)
     Find out if the current connection has been previously stopped with uip_stop().

    #define uip_restart()
     Restart the current connection, if is has previously been stopped with uip_stop().

    #define uip_newdata()
     Is new incoming data available?

    #define uip_acked()
     Has previously sent data been acknowledged?

    #define uip_connected()
     Has the connection just been connected?

    #define uip_closed()
     Has the connection been closed by the other end?

    #define uip_aborted()
     Has the connection been aborted by the other end?

    #define uip_timedout()
     Has the connection timed out?

    #define uip_rexmit()
     Do we need to retransmit previously data?

    #define uip_poll()
     Is the connection being polled by uIP?

    +#define uip_initialmss()
     Get the initial maxium segment size (MSS) of the current connection.

    #define uip_mss()
     Get the current maxium segment size that can be sent on the current connection.

    #define uip_udp_remove(conn)
     Removed a UDP connection.

    #define uip_udp_send(len)
     Send a UDP datagram of length len on the current connection.


    Functions

    void uip_listen (u16_t port)
     Start listening to the specified port.

    void uip_unlisten (u16_t port)
     Stop listening to the specified port.

    uip_connuip_connect (u16_t *ripaddr, u16_t port)
     Connect to a remote host using TCP.

    uip_udp_connuip_udp_new (u16_t *ripaddr, u16_t rport)
     Set up a new UDP connection.

    +


    Define Documentation

    +

    + + + + +
    + + + + +  + + +
    #define uip_abort  )  +
    +
    + + + + + +
    +   + + +

    +Abort the current connection. +

    +This function will abort (reset) the current connection, and is usually used when an error has occured that prevents using the uip_close() function.

    +

    + + + + +
    + + + + +  + + +
    #define uip_aborted  )  +
    +
    + + + + + +
    +   + + +

    +Has the connection been aborted by the other end? +

    +Non-zero if the current connection has been aborted (reset) by the remote host.

    +

    + + + + +
    + + + + +  + + +
    #define uip_acked  )  +
    +
    + + + + + +
    +   + + +

    +Has previously sent data been acknowledged? +

    +Will reduce to non-zero if the previously sent data has been acknowledged by the remote host. This means that the application can send new data.

    +

    + + + + +
    + + + + +  + + +
    #define uip_close  )  +
    +
    + + + + + +
    +   + + +

    +Close the current connection. +

    +This function will close the current connection in a nice way.

    +

    + + + + +
    + + + + +  + + +
    #define uip_closed  )  +
    +
    + + + + + +
    +   + + +

    +Has the connection been closed by the other end? +

    +Is non-zero if the connection has been closed by the remote host. The application may then do the necessary clean-ups.

    +

    + + + + +
    + + + + +  + + +
    #define uip_connected  )  +
    +
    + + + + + +
    +   + + +

    +Has the connection just been connected? +

    +Reduces to non-zero if the current connection has been connected to a remote host. This will happen both if the connection has been actively opened (with uip_connect()) or passively opened (with uip_listen()).

    +

    + + + + +
    + + + + +  + + +
    #define uip_datalen  )  +
    +
    + + + + + +
    +   + + +

    +The length of any incoming data that is currently avaliable (if avaliable) in the uip_appdata buffer. +

    +The test function uip_data() must first be used to check if there is any data available at all.

    +

    + + + + +
    + + + + +  + + +
    #define uip_mss  )  +
    +
    + + + + + +
    +   + + +

    +Get the current maxium segment size that can be sent on the current connection. +

    +The current maxiumum segment size that can be sent on the connection is computed from the receiver's window and the MSS of the connection (which also is available by calling uip_initialmss()).

    +

    + + + + +
    + + + + +  + + +
    #define uip_newdata  )  +
    +
    + + + + + +
    +   + + +

    +Is new incoming data available? +

    +Will reduce to non-zero if there is new data for the application present at the uip_appdata pointer. The size of the data is avaliable through the uip_len variable.

    +

    + + + + +
    + + + + +  + + +
    #define uip_poll  )  +
    +
    + + + + + +
    +   + + +

    +Is the connection being polled by uIP? +

    +Is non-zero if the reason the application is invoked is that the current connection has been idle for a while and should be polled.

    +The polling event can be used for sending data without having to wait for the remote host to send data.

    +

    + + + + +
    + + + + +  + + +
    #define uip_restart  )  +
    +
    + + + + + +
    +   + + +

    +Restart the current connection, if is has previously been stopped with uip_stop(). +

    +This function will open the receiver's window again so that we start receiving data for the current connection.

    +

    + + + + +
    + + + + +  + + +
    #define uip_rexmit  )  +
    +
    + + + + + +
    +   + + +

    +Do we need to retransmit previously data? +

    +Reduces to non-zero if the previously sent data has been lost in the network, and the application should retransmit it. The application should send the exact same data as it did the last time, using the uip_send() function.

    +

    + + + + +
    + + + + + + + + + + +
    #define uip_senddata,
    len   )  +
    +
    + + + + + +
    +   + + +

    +Send data on the current connection. +

    +This function is used to send out a single segment of TCP data. Only applications that have been invoked by uIP for event processing can send data.

    +The amount of data that actually is sent out after a call to this funcion is determined by the maximum amount of data TCP allows. uIP will automatically crop the data so that only the appropriate amount of data is sent. The function uip_mss() can be used to query uIP for the amount of data that actually will be sent.

    +

    Note:
    This function does not guarantee that the sent data will arrive at the destination. If the data is lost in the network, the application will be invoked with the uip_rexmit() event being set. The application will then have to resend the data using this function.
    +
    Parameters:
    + + + +
    data A pointer to the data which is to be sent.
    len The maximum amount of data bytes to be sent.
    +
    +
    +

    + + + + +
    + + + + +  + + +
    #define uip_stop  )  +
    +
    + + + + + +
    +   + + +

    +Tell the sending host to stop sending data. +

    +This function will close our receiver's window so that we stop receiving data for the current connection.

    +

    + + + + +
    + + + + +  + + +
    #define uip_timedout  )  +
    +
    + + + + + +
    +   + + +

    +Has the connection timed out? +

    +Non-zero if the current connection has been aborted due to too many retransmissions.

    +

    + + + + +
    + + + + + + + +
    #define uip_udp_removeconn   )  +
    +
    + + + + + +
    +   + + +

    +Removed a UDP connection. +

    +

    Parameters:
    + + +
    conn A pointer to the uip_udp_conn structure for the connection.
    +
    +
    +

    + + + + +
    + + + + + + + +
    #define uip_udp_sendlen   )  +
    +
    + + + + + +
    +   + + +

    +Send a UDP datagram of length len on the current connection. +

    +This function can only be called in response to a UDP event (poll or newdata). The data must be present in the uip_buf buffer, at the place pointed to by the uip_appdata pointer.

    +

    Parameters:
    + + +
    len The length of the data in the uip_buf buffer.
    +
    +
    +

    + + + + +
    + + + + +  + + +
    #define uip_urgdatalen  )  +
    +
    + + + + + +
    +   + + +

    +The length of any out-of-band data (urgent data) that has arrived on the connection. +

    +

    Note:
    The configuration parameter UIP_URGDATA must be set for this function to be enabled.
    +
    +


    Function Documentation

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + +
    struct uip_conn* uip_connect u16_t ripaddr,
    u16_t  port
    +
    + + + + + +
    +   + + +

    +Connect to a remote host using TCP. +

    +This function is used to start a new connection to the specified port on the specied host. It allocates a new connection identifier, sets the connection to the SYN_SENT state and sets the retransmission timer to 0. This will cause a TCP SYN segment to be sent out the next time this connection is periodically processed, which usually is done within 0.5 seconds after the call to uip_connect().

    +

    Note:
    This function is avaliable only if support for active open has been configured by defining UIP_ACTIVE_OPEN to 1 in uipopt.h.

    +Since this function requires the port number to be in network byte order, a convertion using HTONS() or htons() is necessary.

    +
     u16_t ipaddr[2];
    +
    + uip_ipaddr(ipaddr, 192,168,1,2);
    + uip_connect(ipaddr, HTONS(80)); 
    +

    +

    Parameters:
    + + + +
    ripaddr A pointer to a 4-byte array representing the IP address of the remote hot.
    port A 16-bit port number in network byte order.
    +
    +
    Returns:
    A pointer to the uIP connection identifier for the new connection, or NULL if no connection could be allocated.
    +
    +

    + + + + +
    + + + + + + + + + + +
    void uip_listen u16_t  port  ) 
    +
    + + + + + +
    +   + + +

    +Start listening to the specified port. +

    +

    Note:
    Since this function expects the port number in network byte order, a conversion using HTONS() or htons() is necessary.
    +
     uip_listen(HTONS(80)); 
    +

    +

    Parameters:
    + + +
    port A 16-bit port number in network byte order.
    +
    +
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + +
    struct uip_udp_conn* uip_udp_new u16_t ripaddr,
    u16_t  rport
    +
    + + + + + +
    +   + + +

    +Set up a new UDP connection. +

    +

    Parameters:
    + + + +
    ripaddr A pointer to a 4-byte structure representing the IP address of the remote host.
    rport The remote port number in network byte order.
    +
    +
    Returns:
    The uip_udp_conn structure for the new connection or NULL if no connection could be allocated.
    +
    +

    + + + + +
    + + + + + + + + + + +
    void uip_unlisten u16_t  port  ) 
    +
    + + + + + +
    +   + + +

    +Stop listening to the specified port. +

    +

    Note:
    Since this function expects the port number in network byte order, a conversion using HTONS() or htons() is necessary.
    +

    +

    Parameters:
    + + +
    port A 16-bit port number in network byte order.
    +
    +
    +


    Generated on Tue Oct 7 15:51:43 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/a00081.html b/doc/html/a00081.html new file mode 100644 index 0000000..ea60ddb --- /dev/null +++ b/doc/html/a00081.html @@ -0,0 +1,149 @@ + + +uIP 0.9: uIP conversion functions + + + + +

    uIP conversion functions
    + +[The uIP TCP/IP stack] +


    Detailed Description

    +These functions can be used for converting between different data formats used by uIP. +

    + + + + + + + + + + + + + +

    Defines

    #define uip_ipaddr(addr, addr0, addr1, addr2, addr3)
     Pack an IP address into a 4-byte array which is used by uIP to represent IP addresses.

    #define HTONS(n)
     Convert 16-bit quantity from host byte order to network byte order.


    Functions

    u16_t htons (u16_t val)
     Convert 16-bit quantity from host byte order to network byte order.

    +


    Define Documentation

    +

    + + + + +
    + + + + + + + +
    #define HTONS  )  +
    +
    + + + + + +
    +   + + +

    +Convert 16-bit quantity from host byte order to network byte order. +

    +This macro is primarily used for converting constants from host byte order to network byte order. For converting variables to network byte order, use the htons() function instead.

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + +
    #define uip_ipaddraddr,
    addr0,
    addr1,
    addr2,
    addr3   )  +
    +
    + + + + + +
    +   + + +

    +Pack an IP address into a 4-byte array which is used by uIP to represent IP addresses. +

    +Example:

     u16_t ipaddr[2];
    +
    + uip_ipaddr(&ipaddr, 192,168,1,2); 
    +

    +

    Parameters:
    + + + + + + +
    addr A pointer to a 4-byte array that will be filled in with the IP addres.
    addr0 The first octet of the IP address.
    addr1 The second octet of the IP address.
    addr2 The third octet of the IP address.
    addr3 The forth octet of the IP address.
    +
    +
    +


    Function Documentation

    +

    + + + + +
    + + + + + + + + + + +
    u16_t htons u16_t  val  ) 
    +
    + + + + + +
    +   + + +

    +Convert 16-bit quantity from host byte order to network byte order. +

    +This function is primarily used for converting variables from host byte order to network byte order. For converting constants to network byte order, use the HTONS() macro instead.

    +


    Generated on Tue Oct 7 15:51:43 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/a00082.html b/doc/html/a00082.html new file mode 100644 index 0000000..531c7e2 --- /dev/null +++ b/doc/html/a00082.html @@ -0,0 +1,213 @@ + + +uIP 0.9: Architecture specific uIP functions + + + + +

    Architecture specific uIP functions
    + +[The uIP TCP/IP stack] +


    Detailed Description

    +The functions in the architecture specific module implement the IP check sum and 32-bit additions.

    +The IP checksum calculation is the most computationally expensive operation in the TCP/IP stack and it therefore pays off to implement this in efficient assembler. The purpose of the uip-arch module is to let the checksum functions to be implemented in architecture specific assembler. +

    + + + + + + + +

    +

    + + + + + + + + + + + + + + + + +

    Files

    file  uip_arch.h
     Declarations of architecture specific functions.


    Functions

    void uip_add32 (u8_t *op32, u16_t op16)
     Carry out a 32-bit addition.

    u16_t uip_chksum (u16_t *buf, u16_t len)
     Calculate the Internet checksum over a buffer.

    u16_t uip_ipchksum (void)
     Calculate the IP header checksum of the packet header in uip_buf.

    u16_t uip_tcpchksum (void)
     Calculate the TCP checksum of the packet in uip_buf and uip_appdata.


    Variables

    +volatile u8_t uip_acc32 [4]
     4-byte array used for the 32-bit sequence number calculations.

    +


    Function Documentation

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + +
    void uip_add32 u8_t op32,
    u16_t  op16
    +
    + + + + + +
    +   + + +

    +Carry out a 32-bit addition. +

    +Because not all architectures for which uIP is intended has native 32-bit arithmetic, uIP uses an external C function for doing the required 32-bit additions in the TCP protocol processing. This function should add the two arguments and place the result in the global variable uip_acc32.

    +

    Note:
    The 32-bit integer pointed to by the op32 parameter and the result in the uip_acc32 variable are in network byte order (big endian).
    +
    Parameters:
    + + + +
    op32 A pointer to a 4-byte array representing a 32-bit integer in network byte order (big endian).
    op16 A 16-bit integer in host byte order.
    +
    +
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + +
    u16_t uip_chksum u16_t buf,
    u16_t  len
    +
    + + + + + +
    +   + + +

    +Calculate the Internet checksum over a buffer. +

    +The Internet checksum is the one's complement of the one's complement sum of all 16-bit words in the buffer.

    +See RFC1071.

    +

    Note:
    This function is not called in the current version of uIP, but future versions might make use of it.
    +
    Parameters:
    + + + +
    buf A pointer to the buffer over which the checksum is to be computed.
    len The length of the buffer over which the checksum is to be computed.
    +
    +
    Returns:
    The Internet checksum of the buffer.
    +
    +

    + + + + +
    + + + + + + + + + + +
    u16_t uip_ipchksum void   ) 
    +
    + + + + + +
    +   + + +

    +Calculate the IP header checksum of the packet header in uip_buf. +

    +The IP header checksum is the Internet checksum of the 20 bytes of the IP header.

    +

    Returns:
    The IP header checksum of the IP header in the uip_buf buffer.
    +
    +

    + + + + +
    + + + + + + + + + + +
    u16_t uip_tcpchksum void   ) 
    +
    + + + + + +
    +   + + +

    +Calculate the TCP checksum of the packet in uip_buf and uip_appdata. +

    +The TCP checksum is the Internet checksum of data contents of the TCP segment, and a pseudo-header as defined in RFC793.

    +

    Note:
    The uip_appdata pointer that points to the packet data may point anywhere in memory, so it is not possible to simply calculate the Internet checksum of the contents of the uip_buf buffer.
    +
    Returns:
    The TCP checksum of the TCP segment in uip_buf and pointed to by uip_appdata.
    +
    +


    Generated on Tue Oct 7 15:51:44 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/a00083.html b/doc/html/a00083.html new file mode 100644 index 0000000..12db106 --- /dev/null +++ b/doc/html/a00083.html @@ -0,0 +1,190 @@ + + +uIP 0.9: uIP Address Resolution Protocol + + + + +

    uIP Address Resolution Protocol
    + +[The uIP TCP/IP stack] +


    Detailed Description

    +The Address Resolution Protocol ARP is used for mapping between IP addresses and link level addresses such as the Ethernet MAC addresses. ARP uses broadcast queries to ask for the link level address of a known IP address and the host which is configured with the IP address for which the query was meant, will respond with its link level address.

    +

    Note:
    This ARP implementation only supports Ethernet.
    + +

    + + + + + + + +

    +

    + + + +

    +

    + + + + + + + + + + + + + + + + + + + + + + +

    Files

    file  uip_arp.c
     Implementation of the ARP Address Resolution Protocol.

    file  uip_arp.h
     Macros and definitions for the ARP module.


    Data Structures

    struct  uip_eth_addr
     Representation of a 48-bit Ethernet address. More...

    struct  uip_eth_hdr
     The Ethernet header. More...


    Functions

    +void uip_arp_init (void)
     Initialize the ARP module.

    void uip_arp_ipin (void)
     ARP processing for incoming IP packets.

    void uip_arp_arpin (void)
     ARP processing for incoming ARP packets.

    void uip_arp_out (void)
     Prepend Ethernet header to an outbound IP packet and see if we need to send out an ARP request.

    void uip_arp_timer (void)
     Periodic ARP processing function.

    +


    Function Documentation

    +

    + + + + +
    + + + + + + + + + + +
    void uip_arp_arpin void   ) 
    +
    + + + + + +
    +   + + +

    +ARP processing for incoming ARP packets. +

    +This function should be called by the device driver when an ARP packet has been received. The function will act differently depending on the ARP packet type: if it is a reply for a request that we previously sent out, the ARP cache will be filled in with the values from the ARP reply. If the incoming ARP packet is an ARP request for our IP address, an ARP reply packet is created and put into the uip_buf[] buffer.

    +When the function returns, the value of the global variable uip_len indicates whether the device driver should send out a packet or not. If uip_len is zero, no packet should be sent. If uip_len is non-zero, it contains the length of the outbound packet that is present in the uip_buf[] buffer.

    +This function expects an ARP packet with a prepended Ethernet header in the uip_buf[] buffer, and the length of the packet in the global variable uip_len.

    +

    + + + + +
    + + + + + + + + + + +
    void uip_arp_ipin void   ) 
    +
    + + + + + +
    +   + + +

    +ARP processing for incoming IP packets. +

    +This function should be called by the device driver when an IP packet has been received. The function will check if the address is in the ARP cache, and if so the ARP cache entry will be refreshed. If no ARP cache entry was found, a new one is created.

    +This function expects an IP packet with a prepended Ethernet header in the uip_buf[] buffer, and the length of the packet in the global variable uip_len.

    +

    + + + + +
    + + + + + + + + + + +
    void uip_arp_out void   ) 
    +
    + + + + + +
    +   + + +

    +Prepend Ethernet header to an outbound IP packet and see if we need to send out an ARP request. +

    +This function should be called before sending out an IP packet. The function checks the destination IP address of the IP packet to see what Ethernet MAC address that should be used as a destination MAC address on the Ethernet.

    +If the destination IP address is in the local network (determined by logical ANDing of netmask and our IP address), the function checks the ARP cache to see if an entry for the destination IP address is found. If so, an Ethernet header is prepended and the function returns. If no ARP cache entry is found for the destination IP address, the packet in the uip_buf[] is replaced by an ARP request packet for the IP address. The IP packet is dropped and it is assumed that they higher level protocols (e.g., TCP) eventually will retransmit the dropped packet.

    +If the destination IP address is not on the local network, the IP address of the default router is used instead.

    +When the function returns, a packet is present in the uip_buf[] buffer, and the length of the packet is in the global variable uip_len.

    +

    + + + + +
    + + + + + + + + + + +
    void uip_arp_timer void   ) 
    +
    + + + + + +
    +   + + +

    +Periodic ARP processing function. +

    +This function performs periodic timer processing in the ARP module and should be called at regular intervals. The recommended interval is 10 seconds between the calls.

    +


    Generated on Tue Oct 7 15:51:44 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/a00084.html b/doc/html/a00084.html new file mode 100644 index 0000000..56d946c --- /dev/null +++ b/doc/html/a00084.html @@ -0,0 +1,239 @@ + + +uIP 0.9: Serial Line IP (SLIP) protocol + + + + +

    Serial Line IP (SLIP) protocol
    + +[The uIP TCP/IP stack] +


    Detailed Description

    +The SLIP protocol is a very simple way to transmit IP packets over a serial line. It does not provide any framing or error control, and is therefore not very widely used today.

    +This SLIP implementation requires two functions for accessing the serial device: slipdev_char_poll() and slipdev_char_put(). These must be implemented specifically for the system on which the SLIP protocol is to be run. +

    + + + + + + + +

    +

    + + + +

    +

    + + + + + + + + + + + + + + + +

    Files

    file  slipdev.c
     SLIP protocol implementation.

    file  slipdev.h
     SLIP header file.


    Functions

    void slipdev_char_put (u8_t c)
     Put a character on the serial device.

    u8_t slipdev_char_poll (u8_t *c)
     Poll the serial device for a character.

    void slipdev_init (void)
     Initialize the SLIP module.

    void slipdev_send (void)
     Send the packet in the uip_buf and uip_appdata buffers using the SLIP protocol.

    u16_t slipdev_poll (void)
     Poll the SLIP device for an available packet.

    +


    Function Documentation

    +

    + + + + +
    + + + + + + + + + + +
    u8_t slipdev_char_poll u8_t c  ) 
    +
    + + + + + +
    +   + + +

    +Poll the serial device for a character. +

    +This function is used by the SLIP implementation to poll the serial device for a character. It must be implemented specifically for the system on which the SLIP implementation is to be run.

    +The function should return immediately regardless if a character is available or not. If a character is available it should be placed at the memory location pointed to by the pointer supplied by the arguement c.

    +

    Parameters:
    + + +
    c A pointer to a byte that is filled in by the function with the received character, if available.
    +
    +
    Return values:
    + + + +
    0 If no character is available.
    Non-zero If a character is available.
    +
    +
    +

    + + + + +
    + + + + + + + + + + +
    void slipdev_char_put u8_t  c  ) 
    +
    + + + + + +
    +   + + +

    +Put a character on the serial device. +

    +This function is used by the SLIP implementation to put a character on the serial device. It must be implemented specifically for the system on which the SLIP implementation is to be run.

    +

    Parameters:
    + + +
    c The character to be put on the serial device.
    +
    +
    +

    + + + + +
    + + + + + + + + + + +
    void slipdev_init void   ) 
    +
    + + + + + +
    +   + + +

    +Initialize the SLIP module. +

    +This function does not initialize the underlying RS232 device, but only the SLIP part.

    +

    + + + + +
    + + + + + + + + + + +
    u16_t slipdev_poll void   ) 
    +
    + + + + + +
    +   + + +

    +Poll the SLIP device for an available packet. +

    +This function will poll the SLIP device to see if a packet is available. It uses a buffer in which all avaliable bytes from the RS232 interface are read into. When a full packet has been read into the buffer, the packet is copied into the uip_buf buffer and the length of the packet is returned.

    +

    Returns:
    The length of the packet placed in the uip_buf buffer, or zero if no packet is available.
    +
    + +

    +Here is the call graph for this function:

    + + + +

    + + + + +
    + + + + + + + + + + +
    void slipdev_send void   ) 
    +
    + + + + + +
    +   + + +

    +Send the packet in the uip_buf and uip_appdata buffers using the SLIP protocol. +

    +The first 40 bytes of the packet (the IP and TCP headers) are read from the uip_buf buffer, and the following bytes (the application data) are read from the uip_appdata buffer.

    + +

    +Here is the call graph for this function:

    + + + +
    Generated on Tue Oct 7 15:51:45 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/a00084_a8_cgraph.png b/doc/html/a00084_a8_cgraph.png new file mode 100644 index 0000000000000000000000000000000000000000..a5575eca9865a0dc6ca897e948f63ccca8192a1b GIT binary patch literal 730 zcmV<00ww*4P)6q1y&N@E>QvLe|g{_*^5!3jUOIQiRv?KqNliT{8U(Y?dpChhh4EzpN+bO|T_Z6cC*62s8cX{wac4GZec|6BDaz>@Y1#e9q<+|p5DB_f z+F&~MnC5A8E))~HMQcwKRV+D@PEwSZbmeq?%-rUX_lU+9L|^E9ESDbCnM+JoASNEv z1i1VO&^V%*Br^A|fD|?#=p`|sJveyMmWeSgz3Q!ow2BYu8 zr4*7pa$@7m;BJ*AcrxDkz>}oh012Dnk|eX#&Ld4Hf;1y>Eq$ifbli&%nc5#!y|y4_ z)KU_HG@1$0gvGUV!N2l(Lk@~sk|b+M8d`c}4)Qjx5*Fl%)8Mq}w82}{jV}e)z9+R% zX30xGaVrupJCE|j>2TUK-lIhx#M7Bt7aJEC=c9yFuJZuqsCFi4<7&!@7jN&>3urT* z-CF-PX?<*e((+BuI(8-P6mR~QKo;p$;&uNH97-HXyTp;SOB^8S7vGW6HciB)@c;k- M07*qoM6N<$f=Sv^+5i9m literal 0 HcmV?d00001 diff --git a/doc/html/a00084_a9_cgraph.png b/doc/html/a00084_a9_cgraph.png new file mode 100644 index 0000000000000000000000000000000000000000..ba1cb6bdb52416c38bfe7dbadd85b480e843fb49 GIT binary patch literal 687 zcmV;g0#N;lP)B0000XP)t-s|Ns9P z8E`*8KYxFJpP!!}A0NNJzu({AUteDU00960|5y{t?f?J)0d!JMQvg8b*k%9#0z64X zK~#90?bc6k+AtIV@P36{d#xyi^AJmp)4GaY`8RT0hbnTUMG%fVtb^MU3^=zXBqr}u z?%7F1X~5ZF(pZ-#Sw@Z_KR-XaJ%f{qv%d}4j+`TlSIi0N!QrGizx~}5=kS%}oSgH@ zIV9BMm+Ctp(bE*?$N4i3bIf?yd@+sfT1PZ}KZhQ`QIzv%oMiZD&Qs6~b>av&ry_!b8QVBliAHFjED+rqOCPph}TZ)%q9ja5W}3@a%|-&RLPDc0SV&bTNuJHCgS%!8!94=PX%NJ6G@p{DyeQYe#VU31^yBJG2@U z#K}_eRB5yUU1~=MU#~t$PS%D473*G{EDcYU3L{zsFPhFub-r0%=W-r%D)o$$m0T|A z3uo&R%Dk0#UNA3X>sI=AIsDmioa9%w27Z;38UN*9^rPd?{_B1Uk#l5`b7XO1oS$9^ Vfdn0O`-%Vn002ovPDHLkV1kXBKJ@?q literal 0 HcmV?d00001 diff --git a/doc/html/a00085.html b/doc/html/a00085.html new file mode 100644 index 0000000..8966abe --- /dev/null +++ b/doc/html/a00085.html @@ -0,0 +1,44 @@ + + +uIP 0.9: Configuration options for uIP + + + + +

    Configuration options for uIP


    Detailed Description

    +uIP is configured using the per-project configuration file "uipopt.h". This file contains all compile-time options for uIP and should be tweaked to match each specific project. The uIP distribution contains a documented example "uipopt.h" that can be copied and modified for each project. +

    + + + + + + + +

    +

    + + + + + + + + + + + + + + + + + + +

    Files

    file  uipopt.h
     Configuration options for uIP.


    Modules

    uIP type definitions
    Static configuration options
    IP configuration options
    UDP configuration options
    TCP configuration options
    ARP configuration options
    General configuration options
    CPU architecture configuration
    Appication specific configurations
    +


    Generated on Tue Oct 7 15:51:45 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/a00086.html b/doc/html/a00086.html new file mode 100644 index 0000000..efd35a0 --- /dev/null +++ b/doc/html/a00086.html @@ -0,0 +1,104 @@ + + +uIP 0.9: uIP type definitions + + + + +

    uIP type definitions
    + +[Configuration options for uIP] +

    +

    + + + + + + + + + + + + +

    Typedefs

    typedef unsigned char u8_t
     The 8-bit unsigned data type.

    typedef unsigned short u16_t
     The 16-bit unsigned data type.

    typedef unsigned short uip_stats_t
     The statistics data type.

    +


    Typedef Documentation

    +

    + + + + +
    + + +
    typedef unsigned short u16_t +
    +
    + + + + + +
    +   + + +

    +The 16-bit unsigned data type. +

    +This may have to be tweaked for your particular compiler. "unsigned short" works for most compilers.

    +

    + + + + +
    + + +
    typedef unsigned char u8_t +
    +
    + + + + + +
    +   + + +

    +The 8-bit unsigned data type. +

    +This may have to be tweaked for your particular compiler. "unsigned char" works for most compilers.

    +

    + + + + +
    + + +
    typedef unsigned short uip_stats_t +
    +
    + + + + + +
    +   + + +

    +The statistics data type. +

    +This datatype determines how high the statistics counters are able to count.

    +


    Generated on Tue Oct 7 15:51:45 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/a00087.html b/doc/html/a00087.html new file mode 100644 index 0000000..5a3ae33 --- /dev/null +++ b/doc/html/a00087.html @@ -0,0 +1,180 @@ + + +uIP 0.9: Static configuration options + + + + +

    Static configuration options
    + +[Configuration options for uIP] +


    Detailed Description

    +These configuration options can be used for setting the IP address settings statically, but only if UIP_FIXEDADDR is set to 1. The configuration options for a specific node includes IP address, netmask and default router as well as the Ethernet address. The netmask, default router and Ethernet address are appliciable only if uIP should be run over Ethernet.

    +All of these should be changed to suit your project. +

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    Defines

    #define UIP_FIXEDADDR
     Determines if uIP should use a fixed IP address or not.

    #define UIP_PINGADDRCONF
     Ping IP address asignment.

    +#define UIP_IPADDR0
     The first octet of the IP address of this uIP node, if UIP_FIXEDADDR is 1.

    +#define UIP_IPADDR1
     The second octet of the IP address of this uIP node, if UIP_FIXEDADDR is 1.

    +#define UIP_IPADDR2
     The third octet of the IP address of this uIP node, if UIP_FIXEDADDR is 1.

    +#define UIP_IPADDR3
     The fourth octet of the IP address of this uIP node, if UIP_FIXEDADDR is 1.

    +#define UIP_NETMASK0
     The first octet of the netmask of this uIP node, if UIP_FIXEDADDR is 1.

    +#define UIP_NETMASK1
     The second octet of the netmask of this uIP node, if UIP_FIXEDADDR is 1.

    +#define UIP_NETMASK2
     The third octet of the netmask of this uIP node, if UIP_FIXEDADDR is 1.

    +#define UIP_NETMASK3
     The fourth octet of the netmask of this uIP node, if UIP_FIXEDADDR is 1.

    +#define UIP_DRIPADDR0
     The first octet of the IP address of the default router, if UIP_FIXEDADDR is 1.

    +#define UIP_DRIPADDR1
     The second octet of the IP address of the default router, if UIP_FIXEDADDR is 1.

    +#define UIP_DRIPADDR2
     The third octet of the IP address of the default router, if UIP_FIXEDADDR is 1.

    +#define UIP_DRIPADDR3
     The fourth octet of the IP address of the default router, if UIP_FIXEDADDR is 1.

    #define UIP_FIXEDETHADDR
     Specifies if the uIP ARP module should be compiled with a fixed Ethernet MAC address or not.

    +#define UIP_ETHADDR0
     The first octet of the Ethernet address if UIP_FIXEDETHADDR is 1.

    +#define UIP_ETHADDR1
     The second octet of the Ethernet address if UIP_FIXEDETHADDR is 1.

    +#define UIP_ETHADDR2
     The third octet of the Ethernet address if UIP_FIXEDETHADDR is 1.

    +#define UIP_ETHADDR3
     The fourth octet of the Ethernet address if UIP_FIXEDETHADDR is 1.

    +#define UIP_ETHADDR4
     The fifth octet of the Ethernet address if UIP_FIXEDETHADDR is 1.

    +#define UIP_ETHADDR5
     The sixth octet of the Ethernet address if UIP_FIXEDETHADDR is 1.

    +


    Define Documentation

    +

    + + + + +
    + + +
    #define UIP_FIXEDADDR +
    +
    + + + + + +
    +   + + +

    +Determines if uIP should use a fixed IP address or not. +

    +If uIP should use a fixed IP address, the settings are set in the uipopt.h file. If not, the macros uip_sethostaddr(), uip_setdraddr() and uip_setnetmask() should be used instead.

    +

    + + + + +
    + + +
    #define UIP_FIXEDETHADDR +
    +
    + + + + + +
    +   + + +

    +Specifies if the uIP ARP module should be compiled with a fixed Ethernet MAC address or not. +

    +If this configuration option is 0, the macro uip_setethaddr() can be used to specify the Ethernet address at run-time.

    +

    + + + + +
    + + +
    #define UIP_PINGADDRCONF +
    +
    + + + + + +
    +   + + +

    +Ping IP address asignment. +

    +uIP uses a "ping" packets for setting its own IP address if this option is set. If so, uIP will start with an empty IP address and the destination IP address of the first incoming "ping" (ICMP echo) packet will be used for setting the hosts IP address.

    +

    Note:
    This works only if UIP_FIXEDADDR is 0.
    +
    +


    Generated on Tue Oct 7 15:51:45 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/a00088.html b/doc/html/a00088.html new file mode 100644 index 0000000..83c83d7 --- /dev/null +++ b/doc/html/a00088.html @@ -0,0 +1,83 @@ + + +uIP 0.9: IP configuration options + + + + +

    IP configuration options
    + +[Configuration options for uIP] +

    +

    + + + + + + + + + + + + +

    Defines

    #define UIP_TTL   255
     The IP TTL (time to live) of IP packets sent by uIP.

    #define UIP_REASSEMBLY
     Turn on support for IP packet reassembly.

    +#define UIP_REASS_MAXAGE   40
     The maximum time an IP fragment should wait in the reassembly buffer before it is dropped.

    +


    Define Documentation

    +

    + + + + +
    + + +
    #define UIP_REASSEMBLY +
    +
    + + + + + +
    +   + + +

    +Turn on support for IP packet reassembly. +

    +uIP supports reassembly of fragmented IP packets. This features requires an additonal amount of RAM to hold the reassembly buffer and the reassembly code size is approximately 700 bytes. The reassembly buffer is of the same size as the uip_buf buffer (configured by UIP_BUFSIZE).

    +

    Note:
    IP packet reassembly is not heavily tested.
    +
    +

    + + + + +
    + + +
    #define UIP_TTL   255 +
    +
    + + + + + +
    +   + + +

    +The IP TTL (time to live) of IP packets sent by uIP. +

    +This should normally not be changed.

    +


    Generated on Tue Oct 7 15:51:45 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/a00089.html b/doc/html/a00089.html new file mode 100644 index 0000000..24d7327 --- /dev/null +++ b/doc/html/a00089.html @@ -0,0 +1,65 @@ + + +uIP 0.9: UDP configuration options + + + + +

    UDP configuration options
    + +[Configuration options for uIP] +


    Detailed Description

    +
    Note:
    The UDP support in uIP is still not entirely complete; there is no support for sending or receiving broadcast or multicast packets, but it works well enough to support a number of vital applications such as DNS queries, though
    + +

    + + + + + + + + + + + + + + + +

    Defines

    +#define UIP_UDP
     Toggles wether UDP support should be compiled in or not.

    #define UIP_UDP_CHECKSUMS
     Toggles if UDP checksums should be used or not.

    +#define UIP_UDP_CONNS
     The maximum amount of concurrent UDP connections.

    +#define UIP_UDP_APPCALL
     The name of the function that should be called when UDP datagrams arrive.

    +


    Define Documentation

    +

    + + + + +
    + + +
    #define UIP_UDP_CHECKSUMS +
    +
    + + + + + +
    +   + + +

    +Toggles if UDP checksums should be used or not. +

    +

    Note:
    Support for UDP checksums is currently not included in uIP, so this option has no function.
    +
    +


    Generated on Tue Oct 7 15:51:45 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/a00090.html b/doc/html/a00090.html new file mode 100644 index 0000000..c21fe00 --- /dev/null +++ b/doc/html/a00090.html @@ -0,0 +1,293 @@ + + +uIP 0.9: TCP configuration options + + + + +

    TCP configuration options
    + +[Configuration options for uIP] +

    +

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    Defines

    #define UIP_ACTIVE_OPEN
     Determines if support for opening connections from uIP should be compiled in.

    #define UIP_CONNS
     The maximum number of simultaneously open TCP connections.

    #define UIP_LISTENPORTS
     The maximum number of simultaneously listening TCP ports.

    #define UIP_RECEIVE_WINDOW
     The size of the advertised receiver's window.

    #define UIP_URGDATA
     Determines if support for TCP urgent data notification should be compiled in.

    #define UIP_RTO   3
     The initial retransmission timeout counted in timer pulses.

    #define UIP_MAXRTX   8
     The maximum number of times a segment should be retransmitted before the connection should be aborted.

    #define UIP_MAXSYNRTX   3
     The maximum number of times a SYN segment should be retransmitted before a connection request should be deemed to have been unsuccessful.

    #define UIP_TCP_MSS   (UIP_BUFSIZE - UIP_LLH_LEN - 40)
     The TCP maximum segment size.

    #define UIP_TIME_WAIT_TIMEOUT   120
     How long a connection should stay in the TIME_WAIT state.

    +


    Define Documentation

    +

    + + + + +
    + + +
    #define UIP_ACTIVE_OPEN +
    +
    + + + + + +
    +   + + +

    +Determines if support for opening connections from uIP should be compiled in. +

    +If the applications that are running on top of uIP for this project do not need to open outgoing TCP connections, this configration option can be turned off to reduce the code size of uIP.

    +

    + + + + +
    + + +
    #define UIP_CONNS +
    +
    + + + + + +
    +   + + +

    +The maximum number of simultaneously open TCP connections. +

    +Since the TCP connections are statically allocated, turning this configuration knob down results in less RAM used. Each TCP connection requires approximatly 30 bytes of memory.

    +

    + + + + +
    + + +
    #define UIP_LISTENPORTS +
    +
    + + + + + +
    +   + + +

    +The maximum number of simultaneously listening TCP ports. +

    +Each listening TCP port requires 2 bytes of memory.

    +

    + + + + +
    + + +
    #define UIP_MAXRTX   8 +
    +
    + + + + + +
    +   + + +

    +The maximum number of times a segment should be retransmitted before the connection should be aborted. +

    +This should not be changed.

    +

    + + + + +
    + + +
    #define UIP_MAXSYNRTX   3 +
    +
    + + + + + +
    +   + + +

    +The maximum number of times a SYN segment should be retransmitted before a connection request should be deemed to have been unsuccessful. +

    +This should not need to be changed.

    +

    + + + + +
    + + +
    #define UIP_RECEIVE_WINDOW +
    +
    + + + + + +
    +   + + +

    +The size of the advertised receiver's window. +

    +Should be set low (i.e., to the size of the uip_buf buffer) is the application is slow to process incoming data, or high (32768 bytes) if the application processes data quickly.

    +

    + + + + +
    + + +
    #define UIP_RTO   3 +
    +
    + + + + + +
    +   + + +

    +The initial retransmission timeout counted in timer pulses. +

    +This should not be changed.

    +

    + + + + +
    + + +
    #define UIP_TCP_MSS   (UIP_BUFSIZE - UIP_LLH_LEN - 40) +
    +
    + + + + + +
    +   + + +

    +The TCP maximum segment size. +

    +This is should not be to set to more than UIP_BUFSIZE - UIP_LLH_LEN - 40.

    +

    + + + + +
    + + +
    #define UIP_TIME_WAIT_TIMEOUT   120 +
    +
    + + + + + +
    +   + + +

    +How long a connection should stay in the TIME_WAIT state. +

    +This configiration option has no real implication, and it should be left untouched.

    +

    + + + + +
    + + +
    #define UIP_URGDATA +
    +
    + + + + + +
    +   + + +

    +Determines if support for TCP urgent data notification should be compiled in. +

    +Urgent data (out-of-band data) is a rarely used TCP feature that very seldom would be required.

    +


    Generated on Tue Oct 7 15:51:45 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/a00091.html b/doc/html/a00091.html new file mode 100644 index 0000000..ec24111 --- /dev/null +++ b/doc/html/a00091.html @@ -0,0 +1,77 @@ + + +uIP 0.9: ARP configuration options + + + + +

    ARP configuration options
    + +[Configuration options for uIP] +

    +

    + + + + + + + + + +

    Defines

    #define UIP_ARPTAB_SIZE
     The size of the ARP table.

    #define UIP_ARP_MAXAGE   120
     The maxium age of ARP table entries measured in 10ths of seconds.

    +


    Define Documentation

    +

    + + + + +
    + + +
    #define UIP_ARP_MAXAGE   120 +
    +
    + + + + + +
    +   + + +

    +The maxium age of ARP table entries measured in 10ths of seconds. +

    +An UIP_ARP_MAXAGE of 120 corresponds to 20 minutes (BSD default).

    +

    + + + + +
    + + +
    #define UIP_ARPTAB_SIZE +
    +
    + + + + + +
    +   + + +

    +The size of the ARP table. +

    +This option should be set to a larger value if this uIP node will have many connections from the local network.

    +


    Generated on Tue Oct 7 15:51:45 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/a00092.html b/doc/html/a00092.html new file mode 100644 index 0000000..68a1059 --- /dev/null +++ b/doc/html/a00092.html @@ -0,0 +1,167 @@ + + +uIP 0.9: General configuration options + + + + +

    General configuration options
    + +[Configuration options for uIP] +

    +

    + + + + + + + + + + + + + + + + + + + +

    Defines

    #define UIP_BUFSIZE
     The size of the uIP packet buffer.

    #define UIP_STATISTICS
     Determines if statistics support should be compiled in.

    #define UIP_LOGGING
     Determines if logging of certain events should be compiled in.

    #define UIP_LLH_LEN
     The link level header length.


    Functions

    void uip_log (char *msg)
     Print out a uIP log message.

    +


    Define Documentation

    +

    + + + + +
    + + +
    #define UIP_BUFSIZE +
    +
    + + + + + +
    +   + + +

    +The size of the uIP packet buffer. +

    +The uIP packet buffer should not be smaller than 60 bytes, and does not need to be larger than 1500 bytes. Lower size results in lower TCP throughput, larger size results in higher TCP throughput.

    +

    + + + + +
    + + +
    #define UIP_LLH_LEN +
    +
    + + + + + +
    +   + + +

    +The link level header length. +

    +This is the offset into the uip_buf where the IP header can be found. For Ethernet, this should be set to 14. For SLIP, this should be set to 0.

    +

    + + + + +
    + + +
    #define UIP_LOGGING +
    +
    + + + + + +
    +   + + +

    +Determines if logging of certain events should be compiled in. +

    +This is useful mostly for debugging. The function uip_log() must be implemented to suit the architecture of the project, if logging is turned on.

    +

    + + + + +
    + + +
    #define UIP_STATISTICS +
    +
    + + + + + +
    +   + + +

    +Determines if statistics support should be compiled in. +

    +The statistics is useful for debugging and to show the user.

    +


    Function Documentation

    +

    + + + + +
    + + + + + + + + + + +
    void uip_log char *  msg  ) 
    +
    + + + + + +
    +   + + +

    +Print out a uIP log message. +

    +This function must be implemented by the module that uses uIP, and is called by uIP whenever a log message is generated.

    +


    Generated on Tue Oct 7 15:51:45 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/a00093.html b/doc/html/a00093.html new file mode 100644 index 0000000..1d115ab --- /dev/null +++ b/doc/html/a00093.html @@ -0,0 +1,51 @@ + + +uIP 0.9: CPU architecture configuration + + + + +

    CPU architecture configuration
    + +[Configuration options for uIP] +


    Detailed Description

    +The CPU architecture configuration is where the endianess of the CPU on which uIP is to be run is specified. Most CPUs today are little endian, and the most notable exception are the Motorolas which are big endian. The BYTE_ORDER macro should be changed to reflect the CPU architecture on which uIP is to be run. +

    + + + + + + +

    Defines

    #define BYTE_ORDER
     The byte order of the CPU architecture on which uIP is to be run.

    +


    Define Documentation

    +

    + + + + +
    + + +
    #define BYTE_ORDER +
    +
    + + + + + +
    +   + + +

    +The byte order of the CPU architecture on which uIP is to be run. +

    +This option can be either BIG_ENDIAN (Motorola byte order) or LITTLE_ENDIAN (Intel byte order).

    +


    Generated on Tue Oct 7 15:51:45 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/a00094.html b/doc/html/a00094.html new file mode 100644 index 0000000..2e6f3c2 --- /dev/null +++ b/doc/html/a00094.html @@ -0,0 +1,44 @@ + + +uIP 0.9: Appication specific configurations + + + + +

    Appication specific configurations
    + +[Configuration options for uIP] +


    Detailed Description

    +An uIP application is implemented using a single application function that is called by uIP whenever a TCP/IP event occurs. The name of this function must be registered with uIP at compile time using the UIP_APPCALL definition.

    +uIP applications can store the application state within the uip_conn structure by specifying the size of the application structure with the UIP_APPSTATE_SIZE macro.

    +The file containing the definitions must be included in the uipopt.h file.

    +The following example illustrates how this can look.

    void httpd_appcall(void);
    +#define UIP_APPCALL     httpd_appcall
    +
    +struct httpd_state {
    +  u8_t state; 
    +  u16_t count;
    +  char *dataptr;
    +  char *script;
    +};
    +#define UIP_APPSTATE_SIZE (sizeof(struct httpd_state))
    +
    +

    + + + + + + + + + +

    Defines

    +#define UIP_APPCALL   smtp_appcall
     The name of the application function that uIP should call in response to TCP/IP events.

    +#define UIP_APPSTATE_SIZE   (sizeof(struct smtp_state))
     The size of the application state that is to be stored in the uip_conn structure.

    +


    Generated on Tue Oct 7 15:51:45 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/a00095.html b/doc/html/a00095.html new file mode 100644 index 0000000..2d49f8e --- /dev/null +++ b/doc/html/a00095.html @@ -0,0 +1,447 @@ + + +uIP 0.9: Web client + + + + +

    Web client
    + +[Example applications] +


    Detailed Description

    +This example shows a HTTP client that is able to download web pages and files from web servers. It requires a number of callback functions to be implemented by the module that utilizes the code: webclient_datahandler(), webclient_connected(), webclient_timedout(), webclient_aborted(), webclient_closed(). +

    + + + + + + + +

    +

    + + + +

    +

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    Files

    file  webclient.c
     Implementation of the HTTP client.

    file  webclient.h
     Header file for the HTTP client.


    Functions

    void webclient_datahandler (char *data, u16_t len)
     Callback function that is called from the webclient code when HTTP data has been received.

    void webclient_connected (void)
     Callback function that is called from the webclient code when the HTTP connection has been connected to the web server.

    void webclient_timedout (void)
     Callback function that is called from the webclient code if the HTTP connection to the web server has timed out.

    void webclient_aborted (void)
     Callback function that is called from the webclient code if the HTTP connection to the web server has been aborted by the web server.

    void webclient_closed (void)
     Callback function that is called from the webclient code when the HTTP connection to the web server has been closed.

    +void webclient_init (void)
     Initialize the webclient module.

    unsigned char webclient_get (char *host, u16_t port, char *file)
     Open an HTTP connection to a web server and ask for a file using the GET method.

    +void webclient_close (void)
     Close the currently open HTTP connection.

    char * webclient_mimetype (void)
     Obtain the MIME type of the current HTTP data stream.

    char * webclient_filename (void)
     Obtain the filename of the current HTTP data stream.

    char * webclient_hostname (void)
     Obtain the hostname of the current HTTP data stream.

    unsigned short webclient_port (void)
     Obtain the port number of the current HTTP data stream.

    +


    Function Documentation

    +

    + + + + +
    + + + + + + + + + + +
    void webclient_aborted void   ) 
    +
    + + + + + +
    +   + + +

    +Callback function that is called from the webclient code if the HTTP connection to the web server has been aborted by the web server. +

    +This function must be implemented by the module that uses the webclient code.

    +

    + + + + +
    + + + + + + + + + + +
    void webclient_closed void   ) 
    +
    + + + + + +
    +   + + +

    +Callback function that is called from the webclient code when the HTTP connection to the web server has been closed. +

    +This function must be implemented by the module that uses the webclient code.

    +

    + + + + +
    + + + + + + + + + + +
    void webclient_connected void   ) 
    +
    + + + + + +
    +   + + +

    +Callback function that is called from the webclient code when the HTTP connection has been connected to the web server. +

    +This function must be implemented by the module that uses the webclient code.

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + +
    void webclient_datahandler char *  data,
    u16_t  len
    +
    + + + + + +
    +   + + +

    +Callback function that is called from the webclient code when HTTP data has been received. +

    +This function must be implemented by the module that uses the webclient code. The function is called from the webclient module when HTTP data has been received. The function is not called when HTTP headers are received, only for the actual data.

    +

    Note:
    This function is called many times, repetedly, when data is being received, and not once when all data has been received.
    +
    Parameters:
    + + + +
    data A pointer to the data that has been received.
    len The length of the data that has been received.
    +
    +
    +

    + + + + +
    + + + + + + + + + + +
    char* webclient_filename void   ) 
    +
    + + + + + +
    +   + + +

    +Obtain the filename of the current HTTP data stream. +

    +The filename of an HTTP request may be changed by the web server, and may therefore not be the same as when the original GET request was made with webclient_get(). This function is used for obtaining the current filename.

    +

    Returns:
    A pointer to the current filename.
    +
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + +
    unsigned char webclient_get char *  host,
    u16_t  port,
    char *  file
    +
    + + + + + +
    +   + + +

    +Open an HTTP connection to a web server and ask for a file using the GET method. +

    +This function opens an HTTP connection to the specified web server and requests the specified file using the GET method. When the HTTP connection has been connected, the webclient_connected() callback function is called and when the HTTP data arrives the webclient_datahandler() callback function is called.

    +The callback function webclient_timedout() is called if the web server could not be contacted, and the webclient_aborted() callback function is called if the HTTP connection is aborted by the web server.

    +When the HTTP request has been completed and the HTTP connection is closed, the webclient_closed() callback function will be called.

    +

    Note:
    If the function is passed a host name, it must already be in the resolver cache in order for the function to connect to the web server. It is therefore up to the calling module to implement the resolver calls and the signal handler used for reporting a resolv query answer.
    +
    Parameters:
    + + + + +
    host A pointer to a string containing either a host name or a numerical IP address in dotted decimal notation (e.g., 192.168.23.1).
    port The port number to which to connect, in host byte order.
    file A pointer to the name of the file to get.
    +
    +
    Return values:
    + + + +
    0 if the host name could not be found in the cache, or if a TCP connection could not be created.
    1 if the connection was initiated.
    +
    +
    + +

    +Here is the call graph for this function:

    + + + + + +

    + + + + +
    + + + + + + + + + + +
    char* webclient_hostname void   ) 
    +
    + + + + + +
    +   + + +

    +Obtain the hostname of the current HTTP data stream. +

    +The hostname of the web server of an HTTP request may be changed by the web server, and may therefore not be the same as when the original GET request was made with webclient_get(). This function is used for obtaining the current hostname.

    +

    Returns:
    A pointer to the current hostname.
    +
    +

    + + + + +
    + + + + + + + + + + +
    char* webclient_mimetype void   ) 
    +
    + + + + + +
    +   + + +

    +Obtain the MIME type of the current HTTP data stream. +

    +

    Returns:
    A pointer to a string contaning the MIME type. The string may be empty if no MIME type was reported by the web server.
    +
    +

    + + + + +
    + + + + + + + + + + +
    unsigned short webclient_port void   ) 
    +
    + + + + + +
    +   + + +

    +Obtain the port number of the current HTTP data stream. +

    +The port number of an HTTP request may be changed by the web server, and may therefore not be the same as when the original GET request was made with webclient_get(). This function is used for obtaining the current port number.

    +

    Returns:
    The port number of the current HTTP data stream, in host byte order.
    +
    +

    + + + + +
    + + + + + + + + + + +
    void webclient_timedout void   ) 
    +
    + + + + + +
    +   + + +

    +Callback function that is called from the webclient code if the HTTP connection to the web server has timed out. +

    +This function must be implemented by the module that uses the webclient code.

    +


    Generated on Tue Oct 7 15:51:46 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/a00095_a20_cgraph.png b/doc/html/a00095_a20_cgraph.png new file mode 100644 index 0000000000000000000000000000000000000000..73220436c36645f1a0c324339e1a37742962962e GIT binary patch literal 1263 zcmVQm`T=4mR6>LV zqJVK0?Y0V+$T8vU7c`2N$ax|p#Qv1K#L}T9uzMlaj*v{ecLhnxaJAPXQoLj=9UCQh z2OMvJf)p(oOT<`03YKVtjzT5>Lkj(DZ*8o8Oj4jrtgKJOmSl!tOR__dC1ZoWKsC3NA)OO(XdTU3c3zx>R{lniOJvftNGUQD9I0aUjw)OaF1FJo1M-=CVcvlF;ve(qv5-u|I-L#T2{R4%bmDta6CQYHIjUyMiS`QD`*7jbszG^BSDF(x{ZB2hoI zBmmCs$%z`1^AE5vCaj^FJ`at_Pp9kjong&)Zs*Bn`2JR+=7~xqO5#uw*nw}nf9=b8 z0@JpZ+|HA!JF`3dlBdp-(C_#idJuX3;aNy+wRYODB_;i-eDSteJ0cO<-b%@zunvuZ zE!PfASS*>ZohX>lrdT^}=Bxc~Sid`XK=P>2mz9i?eY#n^L_TfS1}CE=;R!}#vJg*_ zq(-?VPmT3`qDG@+3bUOT=7z^`H;T3^Hs2THQJzn&0FQ!DQ$nI()Y)(-D78lv3Qj#1 zqt^D^YSb8%=hsy+?`GghOcxMhAJA|CVfRL}b5Q%mmPxG`x0`Rp_XHI$f%p!#5=aav z>yTtSKgg1?m3dIsBC)b;-_~&N)|1Z9-CbtuxySGE`_W2LNmd2VPeLAk6vU0bI<#4godU zTu_-jC8|fD>z(n}A!O%3yxr(bPLk+uOvKO4`0Eh5o5EEl9|`ntghcfS;C7y9iEJ+9 zI8UH?q}GnB5~p$JKuctEL1eCi{H`Z_<%Q*CN@P + +uIP 0.9: SMTP E-mail sender + + + + +

    SMTP E-mail sender
    + +[Example applications] +


    Detailed Description

    +The Simple Mail Transfer Protocol (SMTP) as defined by RFC821 is the standard way of sending and transfering e-mail on the Internet. This simple example implementation is intended as an example of how to implement protocols in uIP, and is able to send out e-mail but has not been extensively tested. +

    + + + + + + + +

    +

    + + + +

    +

    + + + + + + + + + + + + + +

    Files

    file  smtp.c
     SMTP example implementation.

    file  smtp.h
     SMTP header file.


    Defines

    +#define SMTP_ERR_OK   0
     Error number that signifies a non-error condition.


    Functions

    void smtp_done (unsigned char error)
     Callback function that is called when an e-mail transmission is done.

    void smtp_configure (char *localhostname, u16_t *smtpserver)
     Specificy an SMTP server and hostname.

    unsigned char smtp_send (char *to, char *from, char *subject, char *msg, u16_t msglen)
     Send an e-mail.

    +


    Function Documentation

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + +
    void smtp_configure char *  lhostname,
    u16_t server
    +
    + + + + + +
    +   + + +

    +Specificy an SMTP server and hostname. +

    +This function is used to configure the SMTP module with an SMTP server and the hostname of the host.

    +

    Parameters:
    + + + +
    lhostname The hostname of the uIP host.
    server A pointer to a 4-byte array representing the IP address of the SMTP server to be configured.
    +
    +
    +

    + + + + +
    + + + + + + + + + + +
    void smtp_done unsigned char  error  ) 
    +
    + + + + + +
    +   + + +

    +Callback function that is called when an e-mail transmission is done. +

    +This function must be implemented by the module that uses the SMTP module.

    +

    Parameters:
    + + +
    error The number of the error if an error occured, or SMTP_ERR_OK.
    +
    +
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    unsigned char smtp_send char *  to,
    char *  from,
    char *  subject,
    char *  msg,
    u16_t  msglen
    +
    + + + + + +
    +   + + +

    +Send an e-mail. +

    +

    Parameters:
    + + + + + + +
    to The e-mail address of the receiver of the e-mail.
    from The e-mail address of the sender of the e-mail.
    subject The subject of the e-mail.
    msg The actual e-mail message.
    msglen The length of the e-mail message.
    +
    +
    + +

    +Here is the call graph for this function:

    + + + +
    Generated on Tue Oct 7 15:51:47 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/a00096_a23_cgraph.png b/doc/html/a00096_a23_cgraph.png new file mode 100644 index 0000000000000000000000000000000000000000..f035d2be86803e261b9e34c732757f5e22ba2955 GIT binary patch literal 559 zcmV+~0?_@5P)XD>$Gf{03jEiqkkdJRWGx|cg*)_d<96um-!i9jIxg#nXm*hH z({B}$M!yy}X}X`L-%D#+k!S5%P0t1$qPw~qa-u(=CK71$fangin5m#O4QUp#kh1a3 z2y@pr*>h8z+O*o{3*VFp4o{_tRU?LJ4E-hPv<--pNxf|lLx-AgD``#pq`iI#^D=AA zM~*&zBh;+&CsvY)x@%Gu76Bq?%cBq{p?FK+3f{#F;6+o^iVk=OKQ7>XI*4w=D5Sj0 zWhxUT?b(iikp>UfTP9*QF+*C>^?JfX0daXES2hY{#wimc<3vSYgTA7Zu4Q6@oQb6C z6uKx6NJs0g#ql1yj_H6iOw+#?YX|ON!9`10F_>Bm=o}};a4cchp4mUAy;vJsQE?mlF9;oQ;Tlh;)Gp4#=U4NV2 x3A576J=YzkmG$3#G*7FO{uZ9SayqBaP#;}#< + +uIP 0.9: Telnet server + + + + +

    Telnet server
    + +[Example applications] +


    Detailed Description

    +The uIP telnet server provides a command based interface to uIP. It allows using the "telnet" application to access uIP, and implements the required telnet option negotiation.

    +The code is structured in a way which makes it possible to add commands without having to rewrite the main telnet code. The main telnet code calls two callback functions, telnetd_connected() and telnetd_input(), when a telnet connection has been established and when a line of text arrives on a telnet connection. These two functions can be implemented in a way which suits the particular application or environment in which the uIP system is intended to be run.

    +The uIP distribution contains an example telnet shell implementation that provides a basic set of commands. +

    + + + + + + + +

    +

    + + + +

    +

    + + + +

    +

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    Files

    file  telnetd-shell.c
     An example telnet server shell.

    file  telnetd.c
     Implementation of the Telnet server.

    file  telnetd.h
     Header file for the telnet server.


    Data Structures

    struct  telnetd_state
     A telnet connection structure. More...


    Defines

    +#define TELNETD_LINELEN
     The maximum length of a telnet line.

    +#define TELNETD_NUMLINES
     The number of output lines being buffered for all telnet connections.


    Functions

    void telnetd_connected (struct telnetd_state *s)
     Callback function that is called when a telnet connection has been established.

    void telnetd_input (struct telnetd_state *s, char *cmd)
     Callback function that is called when a line of text has arrived on a telnet connection.

    void telnetd_close (struct telnetd_state *s)
     Close a telnet session.

    void telnetd_output (struct telnetd_state *s, char *s1, char *s2)
     Print out a string on a telnet connection.

    void telnetd_prompt (struct telnetd_state *s, char *str)
     Print a prompt on a telnet connection.

    void telnetd_init (void)
     Initialize the telnet server.

    +


    Function Documentation

    +

    + + + + +
    + + + + + + + + + + +
    void telnetd_close struct telnetd_state s  ) 
    +
    + + + + + +
    +   + + +

    +Close a telnet session. +

    +This function can be called from a telnet command in order to close the connection.

    +

    Parameters:
    + + +
    s The connection which is to be closed.
    +
    +
    +

    + + + + +
    + + + + + + + + + + +
    void telnetd_connected struct telnetd_state s  ) 
    +
    + + + + + +
    +   + + +

    +Callback function that is called when a telnet connection has been established. +

    +

    Parameters:
    + + +
    s The telnet connection.
    +
    +
    + +

    +Here is the call graph for this function:

    + + + + +

    + + + + +
    + + + + + + + + + + +
    void telnetd_init void   ) 
    +
    + + + + + +
    +   + + +

    +Initialize the telnet server. +

    +This function will perform the necessary initializations and start listening on TCP port 23.

    + +

    +Here is the call graph for this function:

    + + + + +

    + + + + +
    + + + + + + + + + + + + + + + + + + + +
    void telnetd_input struct telnetd_state s,
    char *  cmd
    +
    + + + + + +
    +   + + +

    +Callback function that is called when a line of text has arrived on a telnet connection. +

    +

    Parameters:
    + + + +
    s The telnet connection.
    cmd The line of text.
    +
    +
    + +

    +Here is the call graph for this function:

    + + + +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + +
    void telnetd_output struct telnetd_state s,
    char *  str1,
    char *  str2
    +
    + + + + + +
    +   + + +

    +Print out a string on a telnet connection. +

    +This function can be called from a telnet command parser in order to print out a string of text on the connection. The two strings given as arguments to the function will be concatenated, a carrige return and a new line character will be added, and the line is sent.

    +

    Parameters:
    + + + + +
    s The telnet connection.
    str1 The first string.
    str2 The second string.
    +
    +
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + +
    void telnetd_prompt struct telnetd_state s,
    char *  str
    +
    + + + + + +
    +   + + +

    +Print a prompt on a telnet connection. +

    +This function can be called by the telnet command shell in order to print out a command prompt.

    +

    Parameters:
    + + + +
    s A telnet connection.
    str The command prompt.
    +
    +
    +


    Generated on Tue Oct 7 15:51:49 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/a00097_a22_cgraph.png b/doc/html/a00097_a22_cgraph.png new file mode 100644 index 0000000000000000000000000000000000000000..83438023b79084d86364850a64ecbb5a9edd81bd GIT binary patch literal 737 zcmV<70v`Q|P)h0000XP)t-s|Ns9P z8E{`;Uq3%Te}8}9-`}5~pTEDqA0Hn800960|7Pl!-~a#s0d!JMQvg8b*k%9#0&Yn} zK~#90?bth4+b|RWVEzItI|G^90d~%DywVKv+yjBNj{}(@4{y{qk+eBP5bIY~_LUul z(Bjusa#|~cuM!`Bkz~u#J&-#o2OZn7d&;s>g}2S}k54hq>e!BL&I(Jc;KosKVwu$i zjTPba>-0vR+)Lt&ow2I+fG5sG@NBBUVVB{Hzvx}K#O=F75r|KkbsfY`7LnkBC*G@1 zJR*sRflV1E^3Yk?Iffo^R$bq)48 zLSieN)tHSBq3nh|dY?^<6$Ju&WVe&^w%Q%r)Js`ua|xGm64Z)i%~t!nY5$tI6*h+P zgt&%Uhc(FBr7HVat4|xV<(`vjEZrn#Y`c!Z`su}KqLnm&O7^`^-_CT{?7EJ^%H&D( zY2u$>Fcok~Z@xfl>2h%DbBWg4OZr{0{c{MOt|vJg63k9svCoQSXAtmNpxGoy5Lv2@ zDO&^uOHtVsqrhf?(OOiN{bW}e3&DD9QQ7%wEN_8T0UOPVJ2_=l9f#e~k3`f-X5sTzMw@` z!oHx?E~r)Z?|VLMw!{v%-A>-R=svKX9hT&ENY0pvPO#Y8~st_J~7$X&DM^V4@K@1@lKvExS8S< z^OuJr_ld~%@A*cG(+NhW1D*Rses0AdXUTt+eShEbAH0FES*uI9dZlAKw&n60S5t1G T*hWFf00000NkvXXu0mjfQ+8!G literal 0 HcmV?d00001 diff --git a/doc/html/a00097_a7_cgraph.png b/doc/html/a00097_a7_cgraph.png new file mode 100644 index 0000000000000000000000000000000000000000..313b8ba172c209b7e49adfea9fb322cd89b36ca1 GIT binary patch literal 985 zcmV;~119{5P)*o9x@Oq`h4{Hf~*(0!4M@0i{SBbWZO0->ca5V8znM3nGI6q2V ziS~Y#Xj+z|IcpL5a*C5RX3->OjwKP6J%D65F(q1z773{Ifyv3Rr;YGiUIWKkUXuZf z1grl7G{(`SKd-i%3T?^Jz^Sa^*qJ<6MABy$I?4*UppmoU>dY%L;6hgqNf#an4Wq@N zF(G_)=G4S!>YdPFY*ZY9RvF=8d{gyL;795l8McbCONIlP{LxrGO_~bz;I|0kk0?ZZ= znLTAo5a&wUlRf`e2JOS2Z}X!jSh*-aG+Oocq2-O0BUV)b-mSGjKszi+DMEDO`9ZZUMS8mYlIdG4>hvJoutG>54(58~2`Y_dd zkW}x{+jBQ`ShNK0#9p-HPdogn2{ZsJFK8^w(O$I6oWD*a;Z%cY_?zQeBT8=j(T$a8 z37YWdUQ_z4J^*DRAuD}q_35Tr<$I+sC&O>Ujy}Y%TccS!mFEhrStm2Ewh2u)&6mwQ- znnrU$5*nJdtm)TBzp$*q8GJ!BGU-~wwyj=kgjO}b))sC{To9TvP;=59+E*d9UnQZb z!-Z=WZJXGZ!xC*9ntqzK6zw&YX!eyYxu`_jMJ3uUvKZ|T!}py7kX|U300000NkvXX Hu0mjfnrPga literal 0 HcmV?d00001 diff --git a/doc/html/a00097_a8_cgraph.png b/doc/html/a00097_a8_cgraph.png new file mode 100644 index 0000000000000000000000000000000000000000..c966a62643fc68e3eff42d840a68d927517a772a GIT binary patch literal 615 zcmV-t0+{`YP)Yhp90000XP)t-s|Ns9P z8E{`;Uq3%Te}8}9-`}5~pTEDqA0Hn800960|7Pl!-~a#s0d!JMQvg8b*k%9#0rW{k zK~#90?bb0DY?4uu@_#8>?w{~8WuLD*Dc|5{l#KE-${@C$NK}Yj z6cxYarzn(@BJeEo^`d;;i0w1V6DhCxh{AA@^#ZntnvY?7Q(|#Ya=C+2LL*xZ$;I2v zl`V{ZQ65c&SL$%LDYVe|7)zp9jHSqMDm)dkYR^ESr7CoAHCBB#tZ-N8s8Rp6-?A+} z-W*dIH+wapj2IU3UbI(~T171S50>Jb3M5ZcIa8NF@v2lzi*=%u>K^lE#d>A*Hkxy6 zQ+}XuFl1clAr*2d%PWd3i=`|@l$;}{ND0g%P|On*+FuaGUvTEbwHv4q-nVTEg~NQR#ex2W1vq%MwwbFjszbf;w;u&XXbvw6nlTNlWZGmqu}gIoiKSu^-ew zrr7TsZYr_tOG(RdQx1^>{muUEWR#?2l%yOH + +uIP 0.9: Web server + + + + +

    Web server
    + +[Example applications] +


    Detailed Description

    +The uIP web server is a very simplistic implementation of an HTTP server. It can serve web pages and files from a read-only ROM filesystem, and provides a very small scripting language.

    +The script language is very simple and works as follows. Each script line starts with a command character, either "i", "t", "c", "#" or ".". The "i" command tells the script interpreter to "include" a file from the virtual file system and output it to the web browser. The "t" command should be followed by a line of text that is to be output to the browser. The "c" command is used to call one of the C functions from the httpd-cgi.c file. A line that starts with a "#" is ignored (i.e., the "#" denotes a comment), and the "." denotes the last script line.

    +The script that produces the file statistics page looks somewhat like this:

    +

    i /header.html
    +t <h1>File statistics</h1><br><table width="100%">
    +t <tr><td><a href="/index.html">/index.html</a></td><td>
    +c a /index.html
    +t </td></tr> <tr><td><a href="/cgi/files">/cgi/files</a></td><td>
    +c a /cgi/files
    +t </td></tr> <tr><td><a href="/cgi/tcp">/cgi/tcp</a></td><td>
    +c a /cgi/tcp
    +t </td></tr> <tr><td><a href="/404.html">/404.html</a></td><td>
    +c a /404.html
    +t </td></tr></table>
    +i /footer.plain
    +.
    +
    +

    + + + + + + + +

    +

    + + + +

    +

    + + + +

    +

    + + + +

    +

    + + + +

    +

    + + + +

    +

    + + + + + + + + + + + + + + + + + +

    Files

    file  cgi.c
     HTTP server script language C functions file.

    file  cgi.h
     HTTP script language header file.

    file  fs.c
     HTTP server read-only file system code.

    file  fs.h
     HTTP server read-only file system header file.

    file  httpd.c
     HTTP server.

    file  httpd.h
     HTTP server header file.


    Data Structures

    struct  fs_file
     An open file in the read-only file system. More...


    Functions

    void httpd_init (void)
     Initialize the web server.

    int fs_open (const char *name, struct fs_file *file)
     Open a file in the read-only file system.

    +void fs_init (void)
     Initialize the read-only file system.


    Variables

    +cgifunction cgitab []
     A table containing pointers to C functions that can be called from a web server script.

    +


    Function Documentation

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + +
    int fs_open const char *  name,
    struct fs_file file
    +
    + + + + + +
    +   + + +

    +Open a file in the read-only file system. +

    +

    Parameters:
    + + + +
    name The name of the file.
    file The file pointer, which must be allocated by caller and will be filled in by the function.
    +
    +
    +

    + + + + +
    + + + + + + + + + + +
    void httpd_init void   ) 
    +
    + + + + + +
    +   + + +

    +Initialize the web server. +

    +Starts to listen for incoming connection requests on TCP port 80.

    + +

    +Here is the call graph for this function:

    + + + + +
    Generated on Tue Oct 7 15:51:50 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/a00098_a27_cgraph.png b/doc/html/a00098_a27_cgraph.png new file mode 100644 index 0000000000000000000000000000000000000000..8662091506acce0da74a3465d3e768e79968144d GIT binary patch literal 686 zcmV;f0#W^mP)wh^Tij^V*I{nwN|sIv5LTG(cx~qN~l54#nu5p=TF7(1W^^Z-N=T9}HE1!$d)uGmjL)47G?Ar(>}wCOlIJxvy0*=On+E$_q3Aeg`JZ$&WslouQfW_X&{|^t(Uw-Ob7^_0Thf}m*{Zdw z(6ysIO+^#0&il=&J*71(yx5eIcC>AoteO>%@PTP*P%Ar|qDUMax*5^vJHUM2*wmbk zRn7TeN83BsSv3yTid`R6Uaq(r9UL`*-<+c^FMA$40z!tz5uhwWA~6p=P5Bsu8W$YX70V0LA0! U#6(>z6951J07*qoM6N<$f@HNwtN;K2 literal 0 HcmV?d00001 diff --git a/doc/html/a00099.html b/doc/html/a00099.html new file mode 100644 index 0000000..73021c8 --- /dev/null +++ b/doc/html/a00099.html @@ -0,0 +1,245 @@ + + +uIP 0.9: uIP hostname resolver functions + + + + +

    uIP hostname resolver functions
    + +[The uIP TCP/IP stack] +


    Detailed Description

    +The uIP DNS resolver functions are used to lookup a hostname and map it to a numerical IP address. It maintains a list of resolved hostnames that can be queried with the resolv_lookup() function. New hostnames can be resolved using the resolv_query() function.

    +When a hostname has been resolved (or found to be non-existant), the resolver code calls a callback function called resolv_found() that must be implemented by the module that uses the resolver. +

    + + + + + + + +

    +

    + + + +

    +

    + + + + + + + + + + + + + + + + + + +

    Files

    file  resolv.c
     DNS host name to IP address resolver.

    file  resolv.h
     DNS resolver code header file.


    Functions

    void resolv_found (char *name, u16_t *ipaddr)
     Callback function which is called when a hostname is found.

    void resolv_conf (u16_t *dnsserver)
     Configure which DNS server to use for queries.

    u16_tresolv_getserver (void)
     Obtain the currently configured DNS server.

    +void resolv_init (void)
     Initalize the resolver.

    u16_tresolv_lookup (char *name)
     Look up a hostname in the array of known hostnames.

    void resolv_query (char *name)
     Queues a name so that a question for the name will be sent out.

    +


    Function Documentation

    +

    + + + + +
    + + + + + + + + + + +
    void resolv_conf u16_t dnsserver  ) 
    +
    + + + + + +
    +   + + +

    +Configure which DNS server to use for queries. +

    +

    Parameters:
    + + +
    dnsserver A pointer to a 4-byte representation of the IP address of the DNS server to be configured.
    +
    +
    + +

    +Here is the call graph for this function:

    + + + +

    + + + + +
    + + + + + + + + + + + + + + + + + + + +
    void resolv_found char *  name,
    u16_t ipaddr
    +
    + + + + + +
    +   + + +

    +Callback function which is called when a hostname is found. +

    +This function must be implemented by the module that uses the DNS resolver. It is called when a hostname is found, or when a hostname was not found.

    +

    Parameters:
    + + + +
    name A pointer to the name that was looked up.
    ipaddr A pointer to a 4-byte array containing the IP address of the hostname, or NULL if the hostname could not be found.
    +
    +
    +

    + + + + +
    + + + + + + + + + + +
    u16_t* resolv_getserver void   ) 
    +
    + + + + + +
    +   + + +

    +Obtain the currently configured DNS server. +

    +

    Returns:
    A pointer to a 4-byte representation of the IP address of the currently configured DNS server or NULL if no DNS server has been configured.
    +
    +

    + + + + +
    + + + + + + + + + + +
    u16_t* resolv_lookup char *  name  ) 
    +
    + + + + + +
    +   + + +

    +Look up a hostname in the array of known hostnames. +

    +

    Note:
    This function only looks in the internal array of known hostnames, it does not send out a query for the hostname if none was found. The function resolv_query() can be used to send a query for a hostname.
    +
    Returns:
    A pointer to a 4-byte representation of the hostname's IP address, or NULL if the hostname was not found in the array of hostnames.
    +
    +

    + + + + +
    + + + + + + + + + + +
    void resolv_query char *  name  ) 
    +
    + + + + + +
    +   + + +

    +Queues a name so that a question for the name will be sent out. +

    +

    Parameters:
    + + +
    name The hostname that is to be queried.
    +
    +
    +


    Generated on Tue Oct 7 15:51:51 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/a00099_a29_cgraph.png b/doc/html/a00099_a29_cgraph.png new file mode 100644 index 0000000000000000000000000000000000000000..c528ba8e1fe297589628d1c1a4df5aeccaeeedf7 GIT binary patch literal 594 zcmV-Y0SaKD1bd7UQHyHPok&4_2SiPtTQc->)fXaCWoBDCC;g3wR7w#bHz z8qG|Y3okMFDCYfW`@jOpJPKI@a>9Qk1n9i5e-cjpsgQ6cIVa?Vt0I7u>XMd5*p%V~ zY#)v)7bUr9ayj zS4bPGc)b|0lpZCbP05^C#1Il(^bYILx5f=v2TR3lv68FtL}R(y6VC#T(l?;@;M4mqLszF?$^gkLw)Du>;ezM2kWduF%@?7|OK^fgTG${> zPOu$2phHb}=njO00J7sPz6($dpeLa3HwEN5I5rEV*g_D;CQ(8O^b->35WOQ`?sTLh z1Rp_IU3d6hPoBelsV|2-7ZZ3(goIXn7Fvh1z=lZI>wA47CZGm-gIiN!YmbaJithy> zVIPbTNE)p(3ikp{_+Bt^B_eD`UTrtqna2oo(nLL{$~pk8!`CmA!j3qF;L--59Wmu6 zXhJ;R5rc?;wPhDu*b)*>i(>>Hi6=qwSrx_g5Yo<{M2KC;2y6wDlB;-4WkL9DT;T6( gR*@5O!XF}h0xlws!-4^u_W%F@07*qoM6N<$f)GFeTmS$7 literal 0 HcmV?d00001 diff --git a/doc/html/a00103.png b/doc/html/a00103.png new file mode 100644 index 0000000000000000000000000000000000000000..daf663ed2979272699e916a7af9181026b743de6 GIT binary patch literal 2479 zcmZvec{tSDAIGOuLW8Taq^>1Pg-OX|%{nAZBwIrm+l{d^mbuMD(QRy*WE)H_QAuXW zxJ-;1Lb6=Kd@;D!mV75$CQEeZ{`&9t`#sO=e9rrP&gc0&&-t8lp67GV326%zKOzo+ zK%jOPt*<~JyD-Axut!AbId+WvN;q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0gUl literal 0 HcmV?d00001 diff --git a/doc/html/a00104.png b/doc/html/a00104.png new file mode 100644 index 0000000000000000000000000000000000000000..9ebddd43eae6c44febfff7186713fe3d72799c6f GIT binary patch literal 700 zcmV;t0z>_YP)aNoc^aU6^z(jg%wTa{bCebUcfSjgED@iVk zAQ{}WK>Wa%UEpe;c9HCh#K zdSD1JNX!9N0L0Cul?pu|wi^Lx2EVd1zAxhQD`3Yf4$QNu3h*X)$RZ}R_rPPyGl-97 z(}&572aMRY3fxaF7N6Ld3GMw5s-gjsDy@@>2W;TG3e*WpHgL*>_8wp@09E^aodyYr z+xcmLu3ZLRGhiDyL4c(C@sdH;E&~(uIbg;8X8hrN1;AG!h8emF;}xI&hzae|R*sc* zR;p+4MZCE`@R^P5fO$UA0CIV^$9Z^A{?s0-hsdESmypZ|pp<^Q0puVZ?gr3}!4^=G z!vT5>)-=x5SIe*6cE-KfQ|uE-2qrIhPnfgXmny70&2KQ zx&@SYd~dk~<$Wc$x0nZPb!+mlXU=S!GC zxEcX34fWu32MtDSfkEibKrZ1MCDJWPKJ icw_N^2Rz_`4)_BkR}dCKXtWgo0000>+c4j$6MLppd! z2M_7sAssw5-Of|R37u*`Y-mdQ<$_;YrbbYdjB>+L3f z_Fc~ZV&VB~KizgocfXF?Zuw+!{NrNbr`rzc{K!vqt7yGjMSi;Nk}gbjEJ{DpZTEEh zwsTQ;QH(q1baywihx6Br#mDT@EnS`^Q+xw6q=RROuTjLfp{tzdd`|zlbk9gt@3=rOItxfFzM+=sKHStD&>lc!Sqj?Aqb$ z>~-xxbybqJt|c8jS~_b3k96>8>8uUBG3ab{?HF{nx>l*1Hf*6qQ)j7bN1?OSwd2s) z=~~jkqpPzs@J6Du(zQd@Ro||CWT8;CMc4FS5#H`59XzCi2cRnoR$b8*RiMQNS}CY` z+qtD%CKa@KjcRy(da?8H3RQJ=PZq~_7mK5-mybilLRDSeDq6=Mf8MZ9A!4Dbt}d%l zz46&)h*)f?qq`K_&ay6h!IS`YoAazjH5qqb!pCmu?zhjAWA=4^%pSAZLx*%}@;XcI zX_<6m(8)r&A?vtvu+Pq%lgUnB@lR=ubm&(r#-qb8*fP?g7rSX+EIz9Jfwq%bns}_E~>tC;E)a;(!oPIcy#9V z6d@fS(!oPIc!sJIEu`Z!blpz&{;WGX$@j2Uhaw$34J$59)e_Pr8Hp}0GQwRs)wJzg z)RlF!$m_Z`uP~Q{tD8k$*VRO~iq^>Mx|-S|q!zqYHHZi2kFD@2Fac+EO~;HAxmI`AO6gMzpi>LxDf_<@%V zxhdkJ5GJ~!Dee^xJcu28<)wM7kR^ts^ zCtn>BscV5cq{eI2agL$raJtq^7f9|MGVMCWg0m=HJ9J&u5lHVIE`!%8NElrU*I_iC zhEDY?htPN(bO?>7qflqUwJ%*Zs8CRGI7QC4&t=zqt%kL=ef86z!J{2Yr#c{8UKiA2s$=!10tG{LsF=Np zV5|#j4=vXz%%(-?2hzzE##P?Ny5xadb@DHom!N}mt>po-rh}}cZ>|g4b+WI4<~^9} zYF#UnNFcC@1&7c{z66~00MPMWD^er_3_2wPpo?3sQP&?1sB0<{6uI!pED&ALs1us5 z!%Q29j_caGPT1};4G5&GHeOv*zmNfWnk&<{PXAn7Cm>z5YlHfCs_8np3#JQHI)1D3 z%rmG?FSeZLuewUp^)nR{ zsw=xz{(_*Vd7@Aqn~J)9)Acop6|4*R_kLKF)Y}Z({&X^C*MN0J*NVk&JjM4_ zf>PP%#OW?N?mBJJbiK~%hU@aK<#nB2Yl`Wh3#wO<^Fi3{<(!ZXx~%c4tls~uUr)Nj z;5zAo@`_J((>o5VciT5>*g`*`0onR zfkL{m>Tp6jct{5i>EIz9Jfwq%bnuW49@4?{^?xnkv?JltgLMD^002ovPDHLkV1m^4 Bc1{2Q literal 0 HcmV?d00001 diff --git a/doc/html/a00106.png b/doc/html/a00106.png new file mode 100644 index 0000000000000000000000000000000000000000..d3a016b2ce1894a0b7d3bc6602c6f8384c713ec1 GIT binary patch literal 616 zcmV-u0+;=XP)OV*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cmV?d00001 diff --git a/doc/html/a00109.png b/doc/html/a00109.png new file mode 100644 index 0000000000000000000000000000000000000000..9f5659f5e53c67b3572349ddcce6059fa5e8d7f1 GIT binary patch literal 2915 zcmV-p3!LoaKppHUteE4J3F7BpTEDqKR-X;-`{_Ke;*$o00030|NnJtBh3H+00DGTPE!Ct z=GbNc01D?xL_t(|ob8>>j@&j9fb$CReGbt%dV@XYvVi9i@&a*uUF^b{+X6w1IR?o% zt9}4urf-WiVozTjBcA>P5@FzW&ooBHKXRk27>YI&goW=0~5f7&1Y|k_j@FOpvi;f{Y~-WGtB=W61;=OIpao1{Js{SYR8bg{p21Nc2LG95C62 zWND$Q6QrjWsyab>YN4tKSc_8`n}HA8x zHcsxuZb4|F?F>rJJ4(wRl2aHwuw>Z=n1UrP)Y5U3*kXxlqqp$O72vt zFCi3CBvAD^c?v0$kg4&v5ggJa0E}tY=0>12ng+rl0he1Eq$yK}Ms6K6;sI&7+%^kk zC>LZ?)&~-3G1roS1}RfIAX`6mgw!da1_@K9q(TlJR^kV#Q8Mm#yE+7tu9tuW8_bEW zLqIg@$W_o!E?>x&62?JINkVD^M+C@vz{F@Aoep-7qXueYA8RjRz@X`_+YzcD1hSw+ zGqGC(&rU%_MJPyOP)qSV2PE)}aJCu-X?TcJ3WYQiB0@s*4YCvlX%c?O-uow(!_igABNl3I)R#hXEP_Z^m!vbbnK;cf1 z@S*}9u)$2`Y>$4G>=^UlMTMhnHPbn=ml6c&TmLRXpna8Hl?X!uVI)5km3jwp~vM`oNMyb%tEFpU}^v) zc(E2Gu|}u%GD0BfhleWWO>StJkY1~g07z_vPbf7L()pNBB_5>daZwoixCM&_ZK`7+sm?)TE98Vt=iI1wx0HjQiltBAn5P*~}kmwj615ypA zJ{e>V9IF7C@&|xav#T_Z-HU-BHLWuO2YpU-fqZiJV)f>mH&4rOY8hH>K`PS6U^QN>4R^J@gM%^n_dHQO(h_~=YV0fUfjHU){#R9TSrzFpDS-`D@x zYVpw-0@-E{4!OU0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|J1GM3=;c#QLD2aAHWSTSAb&-i{54bV5D*f`_D-#h%X7F(g!3KGF?P5I>OjM=>yVm zxE87Eh@*w27f8*c`Zs!0I*=BYejw$8rwOsszR{b9n6e*8*)8F~Zbtw*EImPrBv;Xz zqjW@lQW)Q4ZqgjF-H7xFX~fXVgFM8L{X#aTtPYaY5s{2YUy!*P+1-9pIK; zZXrVq*`K@HuUw0IILgzIXQJp6Qc7dW>bL&{sE~dk?br3>|3i$)1UW%QlTQh9y}2DX z$ZEx=m#rX&!*9GL}uJ|d=M+@0na>S6|)_roUknjI{@%77JHk;$!y%;5AC5ur% zaVE$p@+r-NCdjeK1Q|;v$XGH##*zs#mQ0YbWP*$(6J#uzAY;iN{{wV!^4;R%vyA`% N002ovPDHLkV1lJ0M9TmG literal 0 HcmV?d00001 diff --git a/doc/html/a00110.png b/doc/html/a00110.png new file mode 100644 index 0000000000000000000000000000000000000000..297bc2122f64b1c37bce890973ae3183d309d2b0 GIT binary patch literal 1279 zcmVOV|NsBu@<;6e0004WQchCn(3b!vSE+tY=%JiwGbj?=dR7c{i&R6fs=5xO%P6%CTSy-Xz-Pm)wB=b|X>n?$m|n&?waX_FtOv0+U~a5x1)rKpHXR#?pRSm z2_=+JLJ1|5P}*JEbwx+`Cs^9mR+)tGRw&)4WbH1I%+GB}q#TrAk@x>QN zn%=FYs63Fs751xTvg52%7A)reP+zL<=ZMV33F1evGPXGoRn>?j&2M}nda*I;ZkYS zz9g42DXoE$8Hh<~C6vW?Mx|K}tS%KNkEQ=0hSI)DezYHwGwcsv(QE6(AHMRV_cR#O zFRZ5}^=>XkJ!kx3dNJxohxC6+U-)NQ(l{7Th|`T9OkPKB>u*XI^h!&j4(HLN-Ert- z5qal})oAHRV>FL67yM>BY^d(|VJP6Mfm&A1CS$!?9;QPmUe6;}=GH p$8O)>Ehqs}<$@AQD512s(oYW=0XS(47H9wf002ovPDHLkV1oXsV*LOB literal 0 HcmV?d00001 diff --git a/doc/html/a00111.png b/doc/html/a00111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2Z*-`=Qb68 zlWHSRX;w)}T1^@f{mPt3^7hGG+B!03m(DJ~_c!zy+7K5FON!&Ht@jU1NU8=|<=f|! zNMg2f?}hBaPcjLwxpM|Bn5W%8N1x`XtP=WiI8%sn8{CEW?xc|56V>KJwaf7WaJO>O za0))!f}$w>#bqydWfUik5#Fv;^vFVU>ip0Avq|=S9*)<3xu>!c43vz1MVzOEfvXd1 zD^w@4N&Q&-hu|Y|GcX=FkH-10#azJ|6ZBRtG>C_t>uaBY3U@*E|CHy^NR!;5F!|d_<0E)q z>Tygs)bI24{OLVXC@ruxBrTyQp#D-eJWA9Y(p2Q$S%+#<6)7dGLJB^3nx1}Z z0Sl)75@nNd6t%U46w;P*8}accI97p^P_dir_Eat`N()faAzU|=U$aF%U~MuNf|M&n zIx_Z^(hhIhn?_%I8Kbl@#;o`>l{{Y|CT90F9Z^$mbH}l$^2)6dYj;r%Cr zu-Q*@<}4^gLX^qOk=`FVc~sA~_=eX4NGjyyAqZagl|KIhGBES7D5a<3b9e`^x zder1hgD%P6Snpqw029FN=Z0Ok53tQ#7R-3%k7x6E*xRAfVbH1>6 z&8c+;ZK&3Tr!Y>V=*fGambmZ|eVsbwm&3X|Qu-btKO!7lo7MgjydN;ozTD@x^D^H% ze{`{62BRV;?r;M&@jP!bzI*4Li7&|(zQaQE8H`KR=+-nyr!Qx{bNB^2R&t6mPWu}kf>&E)uWxV`VJ$BCt$mEm(I8cJdo#gJ znL%2<3x3^AFd~nVv>B@G>uJ_tDsvs5ELE$k)3PYDw@ZrcK^#s d|7AO0+z_oQ9I>Ow!2^p2nHgIeRT|!n`wt60K5qa3 literal 0 HcmV?d00001 diff --git a/doc/html/a00114.png b/doc/html/a00114.png new file mode 100644 index 0000000000000000000000000000000000000000..7601a2fff16a094423d8868873873873196760dd GIT binary patch literal 584 zcmV-O0=NB%P)crQ7zc2_0(ZZT*^9dy1NR+vHY^)gvx8TYh1Kg0+q}$-)t6q( zWKwxP)M!zmw1`ezSkfmNQ~Bj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L5C%NHvGc7y`iyvfSgI1Ci`ybXb>MIh%s~5xBSOS*mEYs`jA0%LF9or~b z4L#M(yo537vPm?Az!?v~W)}V?2rzpLvGM%GdBbSDF1U2Fd4PX!g=5~sKU-j4_qbd{ zLU3I>5$Y?6-jvR_K?}s?q#*;`fyT|vC)2~7%HX03@ZQ3su#`jQJ-Hz+c+BK^YifR6 zaPpk5qwBat&?`tsWgzas29i;~m(4B?lmI2t!@DDL6pw=V+NpoFy1wXqBH*jMK$f* literal 0 HcmV?d00001 diff --git a/doc/html/a00120.png b/doc/html/a00120.png new file mode 100644 index 0000000000000000000000000000000000000000..67f08c1acbdfa72ea7dfe47dbb45cc8295b5549a GIT binary patch literal 678 zcmV;X0$KfuP)|vKR-Wze}CWK-=CkKzrVj9A0Ge!0RR90+BwKR00001bW%=J06^y0W&i*J zFiAu~RCt{2+0RbGFdPSPpTnb9-vG{ffV&CoiXO@Xn7|VVM}vRpP5HO>Vi20qzMO40 zM(x@$agt$vzhp_rKKapYS@unLCJNNY87NS{QN&xOqP{l#gcK9qJ&MTY|vssH(E3?@-Hfl|8Y8 zRnfZ*3KS?%|4eb>e?O`>WTLVScg0Uqbv=rislv>U{$6f{R18f5CY!$2IoYL5TgiaA zs&{TCcUR0vnYNOlP;O5%@xY9fX{$J3&ZrnLBN>`%knNRGd{~PErkd9~yK<{_*jDE_ zO3pD5jdO?6g&ddnZ?PZgv`P@q78Iz`1@@5ijlHcfx~XDW#$#=>Jx zuRN6|NOO78qhx|KmnS_+rap6d(xa^9NrxJwz5FUokhv;NkSI^-GL{vOq(lj-(9^N2 z%BIK4X3PSK4>BewP@q7apz?nMH`ib)tj6CCgl-k;pn$graJ=Dz6cwa@OK`ZpYp8+X z&n%EC=vckxy_dFBQ=|vvUVReB?Hfzc@dV+JPvQaDkf!>_rlqiqI#Q*BSYca@$v9SO zu@l?6~h;uG&r{_ak)NK+^L-yT0t9KZn_zyTbfD}aRRkDT71toD=ueGqwf z)F}MK0geg~6g*4^&`9e6EDg=yd;I)K2~aC#yY&3M@m~Q6<)=TuHGiB4gGQHR2wlLe z0Mt_cc{ZMtiFASLl3bKBSoTL3&}$v027ko{oUi&Ht`r%lq-?Q#y>AhKH|)LyNP#b zVfn#ERU(y?P1bi&=7Ngxn-XBvU!JACQbT(UR8scx>n_S%)oZ{9DSNndsJ&|&J8?Ezx!_y%En z0CbHEx_SUI1(Qs(_{F7QQfUCF6pSL>@*R_cQPU~_Q6sZN`wPdMf?3fnz*qo85!(eA zD}cDq^Z-MIn6F~X07DHh-$VmI8zbsrW!g&61&MmxngE(8aTA7dGo(ID+205nPf56H%CmOz8IP`%Qp9f1BF6K4C%0lEMn z#X+am0ihU*>~}te0e|wmBLJQ}vmr^s^AQCj;^gW*0M=|^FN2Td8vusq(s=&zAOLgU z9$-t~0)U=LBbv@ciQu0t0D(^d$cz*~ECRNaNI+`rGO!4sH}q2qkcPYl76C8Ydwwec zV9?1F?xN5pp!?4v2WT1a_lE;GfCD&y12{km_zkBVAbSM~_o4s*002ovPDHLkV1gr_ BhXw!u literal 0 HcmV?d00001 diff --git a/doc/html/a00122.png b/doc/html/a00122.png new file mode 100644 index 0000000000000000000000000000000000000000..9eb8b18bc268728fbe6fc88f0cfee895205e38f9 GIT binary patch literal 3031 zcmai$c{J4F8plmp%D!Y7nGw+-yUK2CgUP;?eJM+k$ugt~6JkQb$WoDMkQhs*vSrPZ zCCpf|N7kP;Wg?=vy4`cnJ@?#m?jP@Yp7TD>bDrn(zUO_dV z54=!-Jj>uM}>;8vuXa+^&m}?$pK{x_fABe=hz#QQ+MO5oa`EU?D&xhS#@|s z=F1_j&c%hHV$1ecUg=@aNYGvhypdvV<;?7gW3S@`qan(Gh8HEYldzhqH}af!PlkZx z6E*NgKY@hebpD17jZ&g7lUJEAB1dM3aFb0e`5MJO@ov=8#OCQv$UfujH}Cr+cVZg@ zJxK3xBdrVb8f~kQdR+P3&+nwY{!Zks*kRW008YJEsQ;`&GbinEM&jEsO%zcdV@u{N zhGuBT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imRzI0Wnd^R@4>-la=$3>Rq5lw6W?*grIgsML>81R-#su|^| zmBk$Qw{TcVbP;YiRt2i+WDd9}+;HEgkiIlORdx~Dz>p>8T#zeAV#Yu#9()$NEl1NL z#L@dmn&Vlrn9x8j>o*@*NRRYX0UKqYc)yXLDgCuuI$)UxbGzpgvA^Ssnn-RVN6zc% zBXpXa-;ar(lkO2}G4H;_uOpf?ZwCd3-w6)d5OK+w&Z+;+M8tl@&M9oTjIIQ>hWk^C zHc~d4TB$>!GiOD1D^Be#%~0IUttqV>`DF;M&+AR^!e)qk9u7i^I+Jr1o4YGFLP}ZS zHSlHuE~7pG`c{iwh#oTI3*;|vGn;KLdIblE1mBs-DZP5IIx}%1l5|x&u%mAjo@~@N zHql%i#I?n{cAEB-UN#di$0-B?qhGMs>17S%9g9r*x0d~H;Y0gC2fbGS^a$2hiHDk- N0g13MEZ6sl`3H`;$G`vp literal 0 HcmV?d00001 diff --git a/doc/html/a00123.png b/doc/html/a00123.png new file mode 100644 index 0000000000000000000000000000000000000000..c6528d50b70e9376eef244d5d9b9afc6bf95fc39 GIT binary patch literal 1278 zcmVi^IdiJ3BkSzrQ~}KcAnUe}8`;A0J;|U*F%~00030|Nn-*eE9$X00DGTPE!Ct z=GbNc00e?bL_t(|ob8&+ZreB%hWiS60KQ3Ip^I6}w8hxV0oue}4vJ!u^+2$^G@4AU zebL6taR;finIg7jQ9!*=?1<*O^pG-rlVp+9#a-|OPIx)|{heR5LJL>LGW20{dfh<=rh?Mj73MVbkOG;@^MEEkc1Fc3!}2=z8IL>j`& zNj(TJS9S|QLP}lsZ5?hhM0W?$5IoD3VOWdp%L>gS5c^RXM26-DV(Pas#;)}b^cRB* z9L)X?U8_%H-=^=z9(C=0287*TVH`|vhU{rb2n*@$HFa;VD0%I-p&jzR1!-y7jpi0& z>3|dN#i$39-Y1t#q1UtMC(9!-L7AAeZ=MQA_A%=WUwBLzrz9;S%$023} z_5{6;Ls>d_ROqpFq1jHTQ)lq{Wx3ip?UD==Tx9Eu>azBIqqWwWPwX*1gZhp*>W_j~7h2)~Y zJI?ed=1S`dAyg{bVW<>Btt1g=YV5@j8djWD453<-U_ezvC<$`&6u}E2=IU0|0)Z4E zl$R9WpHSZubwD6BMM{y<+ocr59KMtS(oxkAR8>=vKo&yD3Ps$qKcMkiV^rD$LS`kg8G72!$K$sG^)w5E4~t z8liI3fGWr+4N+L9t`SOyE~w;uB@hLbY8#<;{Dex(Rt9mjR(&HB58{yKT%{04sx4uJ z>X9VUn5i5hx85>FC?C!u#qnAoaw;xmg!(ZxQW&ibBD3alMra(^BgwH^Au_5iX@t(d zE+C1K+96VPmo-A`pEyuKzY&P}(QZQ!2c@IToZ2Dgxt#_f_KHV2IkiK~Gn@58V5!JE z4Kol1;v^7*#v%Mw^3xFwHj=bY0I@sL6vQ2l@#BQp{_^W3eot)X#MOV;>5f8*{Uzx% z0rB^EF?QejFZ{@VfuH+#05Q4j+m793PAsQx6A%~EzozyhzVP9JAMp)9goCl`;5Yno zj8{!S1pN;mUPBX}l07Zkm=2{Yhwo5-13YLJV)kXWz|ZlY z{$jHy?k^{;W+D98kMVo@5?&oP?(+A;Lh2 oFc2aPga`v6!a#^H5F)<+00djVsryWWyZ`_I07*qoM6N<$f|$-kjsO4v literal 0 HcmV?d00001 diff --git a/doc/html/a00124.png b/doc/html/a00124.png new file mode 100644 index 0000000000000000000000000000000000000000..6fa3b2cd03647644defeb5fa0d29358a1ca951b7 GIT binary patch literal 600 zcmV-e0;m0nP)0qB+H)vX)3qT;NTbD1%H{c^r>~tvN{;Lw)b}H=z1}-*WU*T6Vw24wYn`KU zNfd5$^7UqCUC#p(m^f-%ym)JM)ONEMqN&H1$5OdQM$dSKmlwR-#9FsG<^40#AM{f_ zo&n9KMzF3Ecn#+!P5|jLvA!lfv1P3iw*hLzncSUfr-f3|TDne2G(8zwrQ5~LU0%Tz z&9yPcKiqsuq9<1W(s7bWVqbE`r+iUEzRLZ~zFX?e+!g~2bTo|dqHXm_dM2M`)#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NIN`j+oVmOwAv)VX)$L^5J_>yEw`-Q=FZ=O0jI_fy6GvTST$;SeSlRR#y~PCC;- z&N75!aR#GAtz?Onmd<;#+GVa<39Bz;$X=2?0YGBH#1EvH>i_@%07*qoM6N<$g4PmZ AyZ`_I literal 0 HcmV?d00001 diff --git a/doc/html/a00127.png b/doc/html/a00127.png new file mode 100644 index 0000000000000000000000000000000000000000..d7d2351b21eae27a1e44f2303dc9fac7ca8a0124 GIT binary patch literal 1492 zcmV;_1uOcAP)|vzrVlV-`{_Kf1jV9KR-VoA0Ge!0RR90X89_&00001bW%=J06^y0W&i*M zUP(kjRCt{2+|6#=Mi2+^JV%c{#&2Ms(<1hKWrKAcVG!&z>QCH2ziYG%I7vAn*@9zs7|)LmSEzJLGIXrfeg&LpyWvy$$;qHep_ zKIrWi>X*{5+MRXmDdO~_ka`hyt1j@cTJ@v7)&&ZGh9Z}_rF3=oz0$vw zb=^vLwJp8w7Tb-l_he^ybqtsh%oe^0=l+CcAT_^n#|?4Z)wZ%77rw9YDg&pN9#R{eP6Mi8A-n!a^TX?oWgrRiN~l%{{(zch!g`xkx( zbnnvafbLzIL)5#a4y*e+|!IdS^@!{VBcF=gdTT?2192@2wF? z)NRt<=*ySt&#S91#Ps!JYFikq*F9V6CJ?Gl3y*srxnzkgbFxmV4N)f!E0FpUrHvCj zbV6;YI;}J~eYLlQHsNyj^tyWW=PHrCqqnMEP(Fx|bw&9Uh0}dM9Q)|_@LoDPyqAs+ zkG;ll?P({djt%drBg1>@$nd^8F1)Xf3-7I?!rOIMhXxZKsc%V&3Gc6C!ZUP4c!rJ$ z&(YoCIl4Q%T}QkeIm5GbXLz3O3eVGB;dfehlm^fX%WZ1}c^wYV)#31L9SqOb!SH+? z3g4TK9rXdF5zv933Ftt0U%fqM>C9X@^B1JP5f8e$cd_ONtG9|Bb*i4Mf4})wBBF0u zLi%dgj9!D=59ODydM||DIMeK&fpq8^n!LShMz0$+Dj(Fl@-MS-rrABi*6-D8^NnG7 zRo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Te?8J@(rG=LFR6=8ZeR{Z!^jFj!(Ykh!BK_-pw68%JeFPg{n3T^$}iQqdw_kQQ}Inq#lAXsQvx)GS7elUsMgg- zZ+S6mBNdnZo4ZLUW;B3(bJDDMER0$^t=77zev$rZykd=duq`_1m)5ki8roR_eOMK> z{9nt`&WosJ*k$R9J}yX+B1MXH{nQNbMjj{% zAvyjf-Dt#WoQ=0a*X8|%aI~Qigc@JYRdx- zYH6jdeI82mU#+_OXc^7(MDC*y&GSU=qi_#APvkzT-BoX*N!hiTmeJf#i)dclRrlUzsIafSmbSkP%i5?|zKR6DNwFLgJW`}cks^H?>ikxWR-b`J^}k2uy05E^(v+qV zeLOl*%i}?xKFzLq5QTk7;ZUW?q^D?)4e2A>qlZy2loSqCx?tyu{-#~|e8DCW8^Hjh zI!)CgW4qr^VF6T>A9Q+OcBOMRl61k&Y?RIaN%};48KnoZC(LT2;SaR~ff`_#jDDtU zEO&s(sj5_UbALx`NeYSF`ihV8A#7Jjk!}+G4~BfUsFpDEZU6uP07*qoM6N<$f<{VJ ADF6Tf literal 0 HcmV?d00001 diff --git a/doc/html/a00131.png b/doc/html/a00131.png new file mode 100644 index 0000000000000000000000000000000000000000..25b2c82e560baa0a160a277a7e2bb4d42c1b8de1 GIT binary patch literal 461 zcmV;;0W$uHP)y zUssi)Jm)#%)9!^%58NJ~P40xxf*w*elxY&#n%dy;DID+<=6guhP^KANX?o8soM#X* z2vq~&GR<`oVDGfA5=ya;VUdoCsyu}dX$F@Rh4dBajN9*&A7f3`D@B7dy#l^&z)QlL z90s@ofL)cTu15YxQcr7Dsy4yo6>WJ5n}wla>YEf@oivr%Z;xOk(#BaRqfSb?G30InKJ9}=_Z+)nD2%&q{v*ae_B|EG)m#SiL z;?ZWy`p}c8k1G+G+@@15d|#aLzL0U71?P-6-kak>_nhgzczMqGCkk-D0S6p#zySvw zaBrPUrl(uU=IUIa>9Wf8HgGS(VQVgt@OYE9quJSUaeVi1T_XFa$?{Y`AYP+w#|;iI z$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P*miEPPd8kQ5AkS~90c+UnFvLg+lYr*UzT=f)AJjO;$Eke*=n}ZRB5aF|e{{ZgtsZwOmvsM5A002ovPDHLkV1hyzN%sH% literal 0 HcmV?d00001 diff --git a/doc/html/a00134.png b/doc/html/a00134.png new file mode 100644 index 0000000000000000000000000000000000000000..3af688b16c12b218b86bcef4055b13ce2f82a913 GIT binary patch literal 495 zcmVi*s{xUteFpzrWw#-+zC9pP!#UKR+KI9{>OV|Ns9Lca>lO0004WQchC!t-hq9&}wBFFqh4&sNE>Z-O*Q4bPK=8a0(%l1GpOT*1pEA>ykfgEk?Tx2?Dl zCj^_OOV|NsAzoIwBp0004WQchC!ST5(L0=^z{bm>n8*+ z+)@_T#SF#GvhBt7+XS!{7G*BdkKBO?vZJQuPawQEx9#W{{BM*E#7AJw( zc)3bqc%oR%-y$YFui1d6NHqtM;)%X@9`8~%)dvpJttC-wB&s8urbxFH675Bz-U6bae3{Z(v21r>z84yWvvV=}p5^7BsOu}xl*9y_Bw(qCXz z1y5}9!LHR!?lPo1n%hLMxw;9|v{{R3xJ3GI>zu({Ae}8|UpPxTJKOY|-00030|Nk_*{=)zO00DGTPE!Ct z=GbNc00Y5EL_t(|obB7sZrU&y0PsG@PMpVS*K(Qq8oO6&xvt%6&OHE6&~hC+(9@)< zRpGKp9U_S|d5F+8ewR7_z$E^M{e_g)pAfBvM~d&rY%9yr^K zqZXJn_YStnMLn=hE<|v%TG%2NHNh6Ss0%jFg#gBdM{w9Y7q1UCPI7IqaW3kEO>R^NMrUm1wU;+-$kJ9*f#01l9ek2MN%z0@pcwT6R-=weM;nzMrW;rRtsPh5!d;P0IBVD+&m?SlJ z4tz=NawA=s(B|>1Kp9?)ZV{)E4t%=m3=jTHx@hCq(uJe;Aw8xQr;iJx_EiqEjnwec z>&2tuEp-ogA6dDSJHUTq{4B zmhNbzcR0KYCE=oiLSq@seQozJmhQ^>00#4~zwBYbE8-O)g$qt0EVy>IhD9$}!=j6Q zF^na9JAj36C|S<4dFQ0l2oM$z7E4%spC*B^a7Xoa_ORr}(h8P+GszZtDN9+hJ7F7G zdRCFaSn!0M@BUs$iTd8)a{; z`3ohC3ozE4zEHv`xP}`|y$Kf;+$h1CHDA?m%PRk?a=Lb1U8Bdz)4IvpOiNW^Wu%ccHv+LJJ`Vvej)IG;raCSIIAXz00000NkvXXu0mjf Dw)X!M literal 0 HcmV?d00001 diff --git a/doc/html/a00137.png b/doc/html/a00137.png new file mode 100644 index 0000000000000000000000000000000000000000..34ee2f21de3f237f7bcd23377bb0712a942736f9 GIT binary patch literal 756 zcmVOV|NsAQvhr8}0004WQchCG{3*B~Nf5){wskj&hWv45^e^Ns>`^ zo?au>GNio4C7$F|T=Z7@GNO0_W<0w3h}WkyNSWskP-zYaqE3A|_$V%+NTY{_?|2W? zpp8mTwBbTu4jz^HnurP-!Yp@KRcYZ}xKNb?3`(d(8FDyml2UPWejmw&Y!s-Qxi6Uc z1I5S65Be%lVmt+E#8q79;==-^V#2tJl>ZBJ7$8+=7oz_*+hLnjYg5P}j7OBZMu~;+7DLTqfHlxa)Du0$gZ8UPNU0F)Kc|PiJJ?d~@DP202P}k2(=>pq2weIP4 z)W(!v9JN1G@ocngsQZ3u;r;tWR2_SUKy--5%qi8M^!Q}@-olsag(^I1S?mydE_fG< zFZ8pWFKotYv!51}j7v6S<6A=tMfP2?8EcbTzhz97ilcUs+UV`jA&pU7r-2nED=QM` z{L+qs%9_B@Z`kcnR#u_YH}EAZ3%s4!QCL~FaY1E4?KdrRSSGu2q8#;7)b96(jxrNR z?GLqE=g|E3=+{aO4XJQ(nWo|Wm-**PUq%#7!HmutU0jQ~pNKGMqWz5b>Dg%-o*ikZ zo2z4_zSCn+{jZ9Oytq36Rp;xDT_6Rs+~E(kHSam1c%;Nm8MrUSr7Ery_AN(YTxC>niaErP*`=tk+NU|iWDa%ri?03~XRDNKRv+M; mqN5Dtr6@abl%pK=gw%h!4DE!%+}&pY0000 + +uIP 0.9: Annotated Index + + + + +

    uIP 0.9 Data Structures

    Here are the data structures with brief descriptions: + + + + + + + +
    fs_fileAn open file in the read-only file system
    telnetd_stateA telnet connection structure
    uip_connRepresentation of a uIP TCP connection
    uip_eth_addrRepresentation of a 48-bit Ethernet address
    uip_eth_hdrThe Ethernet header
    uip_statsThe structure holding the TCP/IP statistics that are gathered if UIP_STATISTICS is set to 1
    uip_udp_connRepresentation of a uIP UDP connection
    +
    Generated on Tue Oct 7 15:51:41 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/classes.html b/doc/html/classes.html new file mode 100644 index 0000000..96e6f78 --- /dev/null +++ b/doc/html/classes.html @@ -0,0 +1,17 @@ + + +uIP 0.9: Alphabetical index + + + + +

    uIP 0.9 Data Structure Index

    +
      F  
    +
      T  
    +
      U  
    +
    uip_eth_addr   uip_stats   
    fs_file   telnetd_state   uip_conn   uip_eth_hdr   uip_udp_conn   

    Generated on Tue Oct 7 15:51:41 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/doxygen.css b/doc/html/doxygen.css new file mode 100644 index 0000000..0564e82 --- /dev/null +++ b/doc/html/doxygen.css @@ -0,0 +1,160 @@ +H1 { + text-align: center; + font-family: Arial, Helvetica, sans-serif; +} +H2 { + font-family: Geneva, Arial, Helvetica, sans-serif; +} +CAPTION { font-weight: bold } +DIV.qindex { width: 100%; + background-color: #eeeeff; + border: 4px solid #eeeeff; + text-align: center; + margin-bottom: 2px +} +A.qindex { text-decoration: none; font-weight: bold; } +A.qindex:hover { text-decoration: none; background-color: #ddddff } +A.qindexHL { text-decoration: none; font-weight: bold; + background-color: #6666cc; + color: #ffffff + } +A.qindexHL:hover { text-decoration: none; background-color: #6666cc } +A.qindexRef { text-decoration: none; font-weight: bold; } +A.qindexRef:hover { text-decoration: none; background-color: #ddddff } +A.qindexRefHL { text-decoration: none; font-weight: bold; + background-color: #6666cc; + color: #ffffff + } +A.qindexRefHL:hover { text-decoration: none; background-color: #6666cc } +A.el { text-decoration: none; font-weight: bold } +A.elRef { font-weight: bold } +A.code { text-decoration: none; font-weight: normal; color: #4444ee } +A.codeRef { font-weight: normal; color: #4444ee } +A:hover { text-decoration: none; background-color: #f2f2ff } +DL.el { margin-left: -1cm } +DIV.fragment { + width: 98%; + border: 1px solid #CCCCCC; + background-color: #f5f5f5; + padding-left: 4px; + margin: 4px; +} +DIV.ah { background-color: black; font-weight: bold; color: #ffffff; margin-bottom: 3px; margin-top: 3px } +TD.md { background-color: #f2f2ff; font-weight: bold; } +TD.mdname1 { background-color: #f2f2ff; font-weight: bold; color: #602020; } +TD.mdname { background-color: #f2f2ff; font-weight: bold; color: #602020; width: 600px; } +DIV.groupHeader { margin-left: 16px; margin-top: 12px; margin-bottom: 6px; font-weight: bold } +DIV.groupText { margin-left: 16px; font-style: italic; font-size: smaller } +BODY { + background: white; + color: black; + margin-right: 20px; + margin-left: 20px; +} +TD.indexkey { + background-color: #eeeeff; + font-weight: bold; + padding-right : 10px; + padding-top : 2px; + padding-left : 10px; + padding-bottom : 2px; + margin-left : 0px; + margin-right : 0px; + margin-top : 2px; + margin-bottom : 2px +} +TD.indexvalue { + background-color: #eeeeff; + font-style: italic; + padding-right : 10px; + padding-top : 2px; + padding-left : 10px; + padding-bottom : 2px; + margin-left : 0px; + margin-right : 0px; + margin-top : 2px; + margin-bottom : 2px +} +TR.memlist { + background-color: #f0f0f0; +} +P.formulaDsp { text-align: center; } +IMG.formulaDsp { } +IMG.formulaInl { vertical-align: middle; } +SPAN.keyword { color: #008000 } +SPAN.keywordtype { color: #604020 } +SPAN.keywordflow { color: #e08000 } +SPAN.comment { color: #800000 } +SPAN.preprocessor { color: #806020 } +SPAN.stringliteral { color: #002080 } +SPAN.charliteral { color: #008080 } +.mdTable { + border: 1px solid #868686; + background-color: #f2f2ff; +} +.mdRow { + padding: 8px 20px; +} +.mdescLeft { + font-size: smaller; + font-family: Arial, Helvetica, sans-serif; + background-color: #FAFAFA; + padding-left: 8px; + border-top: 1px none #E0E0E0; + border-right: 1px none #E0E0E0; + border-bottom: 1px none #E0E0E0; + border-left: 1px none #E0E0E0; + margin: 0px; +} +.mdescRight { + font-size: smaller; + font-family: Arial, Helvetica, sans-serif; + font-style: italic; + background-color: #FAFAFA; + padding-left: 4px; + border-top: 1px none #E0E0E0; + border-right: 1px none #E0E0E0; + border-bottom: 1px none #E0E0E0; + border-left: 1px none #E0E0E0; + margin: 0px; + padding-bottom: 0px; + padding-right: 8px; +} +.memItemLeft { + padding: 1px 0px 0px 8px; + margin: 4px; + border-top-width: 1px; + border-right-width: 1px; + border-bottom-width: 1px; + border-left-width: 1px; + border-top-style: solid; + border-top-color: #E0E0E0; + border-right-color: #E0E0E0; + border-bottom-color: #E0E0E0; + border-left-color: #E0E0E0; + border-right-style: none; + border-bottom-style: none; + border-left-style: none; + background-color: #FAFAFA; + font-family: Geneva, Arial, Helvetica, sans-serif; + font-size: 12px; +} +.memItemRight { + padding: 1px 0px 0px 8px; + margin: 4px; + border-top-width: 1px; + border-right-width: 1px; + border-bottom-width: 1px; + border-left-width: 1px; + border-top-style: solid; + border-top-color: #E0E0E0; + border-right-color: #E0E0E0; + border-bottom-color: #E0E0E0; + border-left-color: #E0E0E0; + border-right-style: none; + border-bottom-style: none; + border-left-style: none; + background-color: #FAFAFA; + font-family: Geneva, Arial, Helvetica, sans-serif; + font-size: 13px; +} diff --git a/doc/html/doxygen.png b/doc/html/doxygen.png new file mode 100644 index 0000000000000000000000000000000000000000..96ae72c2978be48bb081e0795f5e9a5d6905a5b9 GIT binary patch literal 2352 zcmaJ@XHXM}5)Mc=AW}p^5e%RSEsY{YdPy*fgck593B?GZMk&IDB6^_&r6UR=V1t07 zqDYYB{P-jdO973>Gf8e9NRM)Dp)o!g0qM<4Vj=zPe@|Dq666;okhst+uYS@xk zAe#!=^Zln?PyVKr%6E;`S(kqWY=*HsfA1V;)fhQ<$CMos^=cI}FxoX8aHZD(`7N&D z>eW}uY`q&yA(Aq{v|hyY~*BV!IpRizEa^A zSwUf5fG8o|FrCa?7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xm~rEgRP6atqF;dvM1{=%Q7NcKcBg&Z1l zV~6}Z`XPV+=bsYaz2&oFCc3ZEn}yXbvh;enHYUk;@jUTd(xG51%O-4mi-__eW*D%0++`&?dm# zPd_nXLUL4%gBDan;34>)_!5SOs{V7u1HVyR7H*pVx$aUUgqXX95@2i(7j1|H^I|!M zS3hU81OfgU9~=o25UZE}Kn~T?I2_2;b7HMR`%*)h);W}}SN$d(wjY3w22CPf3pSEK z`@JL}GUw`L^lZx+{KurgBTG8o(X~G|(-<9c9%;J8&^(JEc$Oi*N?=TC)Lzw#&F7Nl zHQB3u-YV(8aQrkAK!U7fLifRwqTWQcQt+0@;kmR<&^uK8n9YK;XTuDH?XY{HL*v09 z8svU;%Hhy$AH9$^e+pAEde;2I<;K%f*-dV3{IarZHE-WX1+D)GFP8KnOsc_^ z6q~mV=laSj_m1;^5X}%ECLfW5I$=E3`=TMVtLt?(a30*5=_&F*bvhx?FF`d>rP;x^MFfsMbkCxS5D-e^%!V{JsKKS`i`&ka` z-g#uQghXfa@Au4JFJ6eWrAEFVsOiW@X;hgN@VQgD2(fD=RxXatsl;WS2C1NQ5IP1br%vg@40K^|6=DP_ zk`iN1j)|m@h&uj}I)0bKLPIDz#87e&KcIbI4*IVgDKNyBa(Q1*52cUvH89j85a4h> zq`m + +uIP 0.9: File Index + + + + +

    uIP 0.9 File List

    Here is a list of all documented files with brief descriptions: + + + + + + + + + + + + + + + + + + + + + + + + + +
    apps/httpd/cgi.cHTTP server script language C functions file
    apps/httpd/cgi.hHTTP script language header file
    apps/httpd/fs.cHTTP server read-only file system code
    apps/httpd/fs.hHTTP server read-only file system header file
    apps/httpd/httpd.cHTTP server
    apps/httpd/httpd.hHTTP server header file
    apps/resolv/resolv.cDNS host name to IP address resolver
    apps/resolv/resolv.hDNS resolver code header file
    apps/smtp/smtp.cSMTP example implementation
    apps/smtp/smtp.hSMTP header file
    apps/telnetd/memb.cMemory block allocation routines
    apps/telnetd/memb.hMemory block allocation routines
    apps/telnetd/telnetd-shell.cAn example telnet server shell
    apps/telnetd/telnetd.cImplementation of the Telnet server
    apps/telnetd/telnetd.hHeader file for the telnet server
    apps/webclient/webclient.cImplementation of the HTTP client
    apps/webclient/webclient.hHeader file for the HTTP client
    uip/slipdev.cSLIP protocol implementation
    uip/slipdev.hSLIP header file
    uip/uip.cThe uIP TCP/IP stack code
    uip/uip.hHeader file for the uIP TCP/IP stack
    uip/uip_arch.hDeclarations of architecture specific functions
    uip/uip_arp.cImplementation of the ARP Address Resolution Protocol
    uip/uip_arp.hMacros and definitions for the ARP module
    unix/uipopt.hConfiguration options for uIP
    +
    Generated on Tue Oct 7 15:51:00 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/ftv2blank.png b/doc/html/ftv2blank.png new file mode 100644 index 0000000000000000000000000000000000000000..493c3c0b615ade5b22027bde773faf2c0e076d66 GIT binary patch literal 174 zcmeAS@N?(olHy`uVBq!ia0vp^0zfRr2qYM%T@!Q%(o7{me!&ckj8p!u14)&*MwA5S zr6z#mEsk^N1FBF3sc_EE%}vcKVF=AhO-xa6_jFST&P^;T z2~I3aEm8;rVk12R#UIz>f`J-DJY5_^DsClP9B62eH+WF*G=YJMp~A-KbWwke5Kx}M M)78&qol`;+0EL(^EC2ui literal 0 HcmV?d00001 diff --git a/doc/html/ftv2doc.png b/doc/html/ftv2doc.png new file mode 100644 index 0000000000000000000000000000000000000000..f72999f92172cca6edaa2538286b3e369bec9f49 GIT binary patch literal 255 zcmeAS@N?(olHy`uVBq!ia0vp^5yjnX4egh%q=bp-`Pe zR7&bp17l3gfhmh7Fm(iZ2eAfco|q!h5)>qKG?UBh!IC9QGMbJAHf6IEiufk_g|d7~ qkWqJ4k(|I-Aeo-5U~n{Fnc?dN!3Uwu?t6hQVDNPHb6Mw<&;$TLIZ`G7 literal 0 HcmV?d00001 diff --git a/doc/html/ftv2folderclosed.png b/doc/html/ftv2folderclosed.png new file mode 100644 index 0000000000000000000000000000000000000000..d6d063440cbf13c4128dacd96661b6fce58abf26 GIT binary patch literal 259 zcmeAS@N?(olHy`uVBq!ia0vp^55uo^`BphW;jCHO69?}tw{JfcdnZ<*@N=4I z?xF5Qc|QYEmKAIZ;JRGVHe=bn*tx1_|J^^vyg*oVM#A1kZlFULJYD@<);T3K0RTgB BWg7qh literal 0 HcmV?d00001 diff --git a/doc/html/ftv2folderopen.png b/doc/html/ftv2folderopen.png new file mode 100644 index 0000000000000000000000000000000000000000..bbe2c913cf493ee37ad8e3a5132382138d93ac92 GIT binary patch literal 261 zcmeAS@N?(olHy`uVBq!ia0vp^5u(C zYP)Mg%H-DB+{J~>rPn_#pYTax?r*V6ubqGX{lvROQ{?n5_cbm+cQAOm`njxgN@xNA D92;js literal 0 HcmV?d00001 diff --git a/doc/html/ftv2lastnode.png b/doc/html/ftv2lastnode.png new file mode 100644 index 0000000000000000000000000000000000000000..e7b9ba90cb0cf71c8ce662956bfee7d64cf60fa6 GIT binary patch literal 233 zcmeAS@N?(olHy`uVBq!ia0vp^0zfRr!py+H=+kU?6UZ?L@CkAK|NlRbNhD}!Xpp$P zU;Pg)ksC(lf|p%(p+w2Gk+!>EaktaVt4N i!r*{E4>QXNV>t$uAA#a^n)TVt_DW*G8-srQl%FeIsRSdYm zeDdtWec}u&7@8h5rqv#p7g*pRdwwmugmlS-+cHV~j}#7`Nwj9m+AU)JGGo`8z_}`K z?s#Xsy%Z;1_jl5Y+?Gum8WyK6`MBvup0SAOKJ)mWcHyteJ?WLL>>-)=?&<$H&t5oH Vd!azZ1yDdSc)I$ztaD0e0sw}(dc*(# literal 0 HcmV?d00001 diff --git a/doc/html/ftv2mlastnode.png b/doc/html/ftv2mlastnode.png new file mode 100644 index 0000000000000000000000000000000000000000..09ceb6adb01054ce799ad20c0e818ab9272f2df2 GIT binary patch literal 160 zcmeAS@N?(olHy`uVBq!ia0vp^0zfRr#LU3Jc=+&fg$isFPOjJ*AaIJQGm()YSDb0rfjgNefXW#>UHx3vIVCg! E0ORy6RsaA1 literal 0 HcmV?d00001 diff --git a/doc/html/ftv2mnode.png b/doc/html/ftv2mnode.png new file mode 100644 index 0000000000000000000000000000000000000000..3254c05112199fbc80aad313611c58a5b388792d GIT binary patch literal 194 zcmeAS@N?(olHy`uVBq!ia0vp^0zfRr!py+H=+kU?6Ub2s@Ck7}aNq!ti3c<^Gz9OH zn+a6GSQ6wH%;50sMjDVKR^l2_5}cn_Ql40p%8;I!W>k=uu3)5RqGz-?&YcgaLd(;| zF{I*Fa>4?=2W(CyOv{5p*uLi}G<-ambjQcb>&~4!CzK3KXWY6d$*{eWU47N}X+XCz OFnGH9xvXPg)ksC(lf|p%(p+w2Gk+y>EaktaVt4N l!r*{E4>Lv;t literal 0 HcmV?d00001 diff --git a/doc/html/ftv2plastnode.png b/doc/html/ftv2plastnode.png new file mode 100644 index 0000000000000000000000000000000000000000..0b07e00913d8069ebbb51bd7fd6d70d8bba88f75 GIT binary patch literal 165 zcmeAS@N?(olHy`uVBq!ia0vp^0zfRr#LU3Jc=+&MJ literal 0 HcmV?d00001 diff --git a/doc/html/ftv2pnode.png b/doc/html/ftv2pnode.png new file mode 100644 index 0000000000000000000000000000000000000000..2001b797ba2b98a4127f1d3efca64aef08bf6d51 GIT binary patch literal 200 zcmeAS@N?(olHy`uVBq!ia0vp^0zfRr!py+H=+kU?6Ub2s@Ck7}aNq!ti3c<^Gz9OH zn+a6GSQ6wH%;50sMjDVKR^l2_5}cn_Ql40p%8;I!W>k=uu3)5RqGz-?&Ycga!obtT zF{I*Fa>4?=2W(Dkd1@Anj~<0|oqBMOmqox%*rjK-r)THv+0v0L%h-agt(X~hWwYzA SIxU|Ma*U^|pUXO@geCywmoZiV literal 0 HcmV?d00001 diff --git a/doc/html/ftv2vertline.png b/doc/html/ftv2vertline.png new file mode 100644 index 0000000000000000000000000000000000000000..b330f3a33c0085c183ff39fc56b1b274160c1da0 GIT binary patch literal 229 zcmeAS@N?(olHy`uVBq!ia0vp^0zfRr!py+H=+kU?6UZ?L@CkAK|NlRbNhD}!Xpp$P zU;Pg)ksC(lf|p%(p+w2Gqgt>EaktaVt4N e!r*{^G#i7W2*a|cHZQDzQVgE1elF{r5}E+)J2fZ( literal 0 HcmV?d00001 diff --git a/doc/html/functions.html b/doc/html/functions.html new file mode 100644 index 0000000..4e07f49 --- /dev/null +++ b/doc/html/functions.html @@ -0,0 +1,95 @@ + + +uIP 0.9: Compound Member Index + + + + + +
    a | c | d | f | h | i | l | m | n | p | r | s | t | v
    + +

    + +

    +Here is a list of all documented struct and union fields with links to the struct/union documentation for each field:

    - a - +

    +

    - c - +

    +

    - d - +

    +

    - f - +

    +

    - h - +

    +

    - i - +

    +

    - l - +

    +

    - m - +

    +

    - n - +

    +

    - p - +

    +

    - r - +

    +

    - s - +

    +

    - t - +

    +

    - v - +

    +
    Generated on Tue Oct 7 15:51:41 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/functions_vars.html b/doc/html/functions_vars.html new file mode 100644 index 0000000..3d2eaa0 --- /dev/null +++ b/doc/html/functions_vars.html @@ -0,0 +1,95 @@ + + +uIP 0.9: Compound Member Index + + + + + +
    a | c | d | f | h | i | l | m | n | p | r | s | t | v
    + +

    + +

    +

    - a - +

    +

    - c - +

    +

    - d - +

    +

    - f - +

    +

    - h - +

    +

    - i - +

    +

    - l - +

    +

    - m - +

    +

    - n - +

    +

    - p - +

    +

    - r - +

    +

    - s - +

    +

    - t - +

    +

    - v - +

    +
    Generated on Tue Oct 7 15:51:41 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/globals.html b/doc/html/globals.html new file mode 100644 index 0000000..51aba16 --- /dev/null +++ b/doc/html/globals.html @@ -0,0 +1,197 @@ + + +uIP 0.9: File Member Index + + + + + +
    b | c | f | h | m | r | s | t | u | w
    + +

    + +

    +Here is a list of all documented functions, variables, defines, enums, and typedefs with links to the documentation:

    - b - +

    +

    - c - +

    +

    - f - +

    +

    - h - +

    +

    - m - +

    +

    - r - +

    +

    - s - +

    +

    - t - +

    +

    - u - +

    +

    - w - +

    +
    Generated on Tue Oct 7 15:51:52 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/globals_defs.html b/doc/html/globals_defs.html new file mode 100644 index 0000000..8674983 --- /dev/null +++ b/doc/html/globals_defs.html @@ -0,0 +1,122 @@ + + +uIP 0.9: File Member Index + + + + + +
    b | h | m | s | t | u
    + +

    + +

    +

    - b - +

    +

    - h - +

    +

    - m - +

    +

    - s - +

    +

    - t - +

    +

    - u - +

    +
    Generated on Tue Oct 7 15:51:52 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/globals_func.html b/doc/html/globals_func.html new file mode 100644 index 0000000..729e8ce --- /dev/null +++ b/doc/html/globals_func.html @@ -0,0 +1,98 @@ + + +uIP 0.9: File Member Index + + + + + +
    f | h | m | r | s | t | u | w
    + +

    + +

    +

    - f - +

    +

    - h - +

    +

    - m - +

    +

    - r - +

    +

    - s - +

    +

    - t - +

    +

    - u - +

    +

    - w - +

    +
    Generated on Tue Oct 7 15:51:52 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/globals_type.html b/doc/html/globals_type.html new file mode 100644 index 0000000..f14f00c --- /dev/null +++ b/doc/html/globals_type.html @@ -0,0 +1,21 @@ + + +uIP 0.9: File Member Index + + + + + + +

    +

    +
    Generated on Tue Oct 7 15:51:52 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/globals_vars.html b/doc/html/globals_vars.html new file mode 100644 index 0000000..0e55ac9 --- /dev/null +++ b/doc/html/globals_vars.html @@ -0,0 +1,23 @@ + + +uIP 0.9: File Member Index + + + + + + +

    +

    +
    Generated on Tue Oct 7 15:51:52 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/graph_legend.dot b/doc/html/graph_legend.dot new file mode 100644 index 0000000..5420927 --- /dev/null +++ b/doc/html/graph_legend.dot @@ -0,0 +1,22 @@ +digraph G +{ + edge [fontname="Helvetica",fontsize=10,labelfontname="Helvetica",labelfontsize=10]; + node [fontname="Helvetica",fontsize=10,shape=record]; + Node9 [shape="box",label="Inherited",fontsize=10,height=0.2,width=0.4,fontname="Helvetica",color="black",style="filled" fontcolor="white"]; + Node10 -> Node9 [dir=back,color="midnightblue",fontsize=10,style="solid",fontname="Helvetica"]; + Node10 [shape="box",label="PublicBase",fontsize=10,height=0.2,width=0.4,fontname="Helvetica",color="black",URL="$classPublicBase.html"]; + Node11 -> Node10 [dir=back,color="midnightblue",fontsize=10,style="solid",fontname="Helvetica"]; + Node11 [shape="box",label="Truncated",fontsize=10,height=0.2,width=0.4,fontname="Helvetica",color="red",URL="$classTruncated.html"]; + Node13 -> Node9 [dir=back,color="darkgreen",fontsize=10,style="solid",fontname="Helvetica"]; + Node13 [shape="box",label="ProtectedBase",fontsize=10,height=0.2,width=0.4,fontname="Helvetica",color="black",URL="$classProtectedBase.html"]; + Node14 -> Node9 [dir=back,color="firebrick4",fontsize=10,style="solid",fontname="Helvetica"]; + Node14 [shape="box",label="PrivateBase",fontsize=10,height=0.2,width=0.4,fontname="Helvetica",color="black",URL="$classPrivateBase.html"]; + Node15 -> Node9 [dir=back,color="midnightblue",fontsize=10,style="solid",fontname="Helvetica"]; + Node15 [shape="box",label="Undocumented",fontsize=10,height=0.2,width=0.4,fontname="Helvetica",color="grey75"]; + Node16 -> Node9 [dir=back,color="midnightblue",fontsize=10,style="solid",fontname="Helvetica"]; + Node16 [shape="box",label="Templ< int >",fontsize=10,height=0.2,width=0.4,fontname="Helvetica",color="black",URL="$classTempl.html"]; + Node17 -> Node16 [dir=back,color="orange",fontsize=10,style="dashed",label="< int >",fontname="Helvetica"]; + Node17 [shape="box",label="Templ< T >",fontsize=10,height=0.2,width=0.4,fontname="Helvetica",color="black",URL="$classTempl.html"]; + Node18 -> Node9 [dir=back,color="darkorchid3",fontsize=10,style="dashed",label="m_usedClass",fontname="Helvetica"]; + Node18 [shape="box",label="Used",fontsize=10,height=0.2,width=0.4,fontname="Helvetica",color="black",URL="$classUsed.html"]; +} diff --git a/doc/html/graph_legend.html b/doc/html/graph_legend.html new file mode 100644 index 0000000..eaf61c9 --- /dev/null +++ b/doc/html/graph_legend.html @@ -0,0 +1,75 @@ + + +uIP 0.9: Graph Legend + + + + +

    Graph Legend

    This page explains how to interpret the graphs that are generated by doxygen.

    +Consider the following example:

    /*! Invisible class because of truncation */
    +class Invisible { };
    +
    +/*! Truncated class, inheritance relation is hidden */
    +class Truncated : public Invisible { };
    +
    +/* Class not documented with doxygen comments */
    +class Undocumented { };
    +
    +/*! Class that is inherited using public inheritance */
    +class PublicBase : public Truncated { };
    +
    +/*! A template class */
    +template<class T> class Templ { };
    +
    +/*! Class that is inherited using protected inheritance */
    +class ProtectedBase { };
    +
    +/*! Class that is inherited using private inheritance */
    +class PrivateBase { };
    +
    +/*! Class that is used by the Inherited class */
    +class Used { };
    +
    +/*! Super class that inherits a number of other classes */
    +class Inherited : public PublicBase,
    +                  protected ProtectedBase,
    +                  private PrivateBase,
    +                  public Undocumented
    +                  public Templ<int>
    +{
    +  private:
    +    Used *m_usedClass;
    +};
    +
    If the MAX_DOT_GRAPH_HEIGHT tag in the configuration file is set to 240 this will result in the following graph:

    +

    +graph_legend.png +
    +

    +The boxes in the above graph have the following meaning:

      +
    • +A filled black box represents the struct or class for which the graph is generated.
    • +
    • +A box with a black border denotes a documented struct or class.
    • +
    • +A box with a grey border denotes an undocumented struct or class.
    • +
    • +A box with a red border denotes a documented struct or class forwhich not all inheritance/containment relations are shown. A graph is truncated if it does not fit within the specified boundaries.
    • +
    +The arrows have the following meaning:
      +
    • +A dark blue arrow is used to visualize a public inheritance relation between two classes.
    • +
    • +A dark green arrow is used for protected inheritance.
    • +
    • +A dark red arrow is used for private inheritance.
    • +
    • +A purple dashed arrow is used if a class is contained or used by another class. The arrow is labeled with the variable(s) through which the pointed class or struct is accessible.
    • +
    • +A yellow dashed arrow denotes a relation between a template instance and the template class it was instantiated from. The arrow is labeled with the template parameters of the instance.
    • +
    +
    Generated on Tue Oct 7 15:51:52 2003 for uIP 0.9 by + +doxygen +1.3.3
    + + diff --git a/doc/html/graph_legend.png b/doc/html/graph_legend.png new file mode 100644 index 0000000000000000000000000000000000000000..8a116c2071998cca81df10b3f38eb051b8832c4d GIT binary patch literal 3915 zcmai1cT`hZw+{*kB78ayO-71{3Mw5kf`SbkR6wLlB1o^HTp$z$sSYwIHj)qmic$li zNx2D45KwX>AO@5qFoIklfrKhbeT;9tZ>{&OH}n4aoqfvQXP8HtaNS5i{i(%Vuw@%B~omLwE@)yfue8vf{wKuEP)oIhh1 zl`}(1k0F=Jm}80jM`P&WO|N<}u_zG{uWr+3rgw_mA>5wCx~a80LZ=_Z=VB0uqTAr@ zL)x;v!tl22R@CXecnRNafRLq|=2LM$|e_4x9wW#J;`|{QU|K|Cxhy{ zhxG9hd?9#cJ7A0WU&w!7Cf&yV`At7+kf&_f5~&0i-o|IQ6LKs+f1T5Z&_UgQS`eq}w?UtOScFr7A{o-p?ZKQl4F#dAR zx$GP6TktbQ3O7`0X)dRZO!m4pRT+RW-nf7_UQDi{x-ohM)bafaO2<-vio-UhfN$Lh zM-ThubbKa{+BzcheG7|0bA_|Edi8yle$jo9zlb#9foB;KGz33jQD+)dW|Es_Wj9ot>GjZVvxd8z=ct zW`(Ko6=b6}%nw|0vhm0x?i;|Iv3lr58CvNc(^!ZizouyIzXt_%T@tm;g-Bz3Oq7r)Y$dkZ|91Uxqj&^bEE5^r);ECII6oTkVY=uC`jc=R)ZnUz0 zzWoE=EFduyA;4A{3Eclay7%$Hkaf2&0%MaiQ?1C0M_X;zOgOjuqlgj_t{qy=5vLgI zZEVLm2|&nViz5~e@L7)R+$Be}DbS+5Y`@lqI{grWQm7T5ag|hUq|aY#4B@yNeDXI2 z1692GQ=B?k0?<381jxrZP6zeA%-Rkti2f({5X=7$2N%4TeSFFCZ*7HOnDHL9J^?jt zR(>yUWjE?Tq-uwwkHJVj*X}kLtw%6c`_2^aW{$+x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d7036c --- /dev/null +++ b/doc/html/index.hhc @@ -0,0 +1,126 @@ + + + + + +
      +
    • +
    • +
        +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      +
    • +
        +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      +
    • +
    • +
        +
      • +
          +
        • +
            +
          +
        • +
            +
          +
        • +
            +
          +
        • +
            +
          +
        • +
            +
          +
        • +
            +
          +
        • +
            +
          +
        • +
            +
          +
        • +
            +
          +
        +
      • +
          +
        • +
            +
          +
        • +
            +
          +
        • +
            +
          +
        • +
            +
          +
        +
      • +
          +
        • +
            +
          +
        • +
            +
          +
        • +
            +
          +
        • +
            +
          +
        • +
            +
          +
        • +
            +
          +
        • +
            +
          +
        • +
            +
          +
        • +
            +
          +
        +
      +
    • +
    diff --git a/doc/html/index.hhk b/doc/html/index.hhk new file mode 100644 index 0000000..664e519 --- /dev/null +++ b/doc/html/index.hhk @@ -0,0 +1,725 @@ + + + + + +