Embedded Xinu Operating System
An ongoing research project and educational operating system.
 All Data Structures Files Functions Variables Typedefs Enumerations Macros Groups Pages
Functions | Variables
httpInit.c File Reference
#include <stddef.h>
#include <stdlib.h>
#include <http.h>
#include <semaphore.h>

Functions

devcall httpInit (device *devptr)
 

Variables

struct http httptab [NHTTP]
 
semaphore maxhttp = -1
 
semaphore activeXWeb = -1
 
struct httpcmd httpcmdtab []
 
ulong nhttpcmd = sizeof(httpcmdtab) / sizeof(struct httpcmd)
 

Function Documentation

devcall httpInit ( device *  devptr)

Initialize HTTP structures.

Parameters
devptrHTTP device table entry
Returns
OK if device is initialized

Variable Documentation

struct httpcmd httpcmdtab[]
Initial value:
= {
{NULL, "index.html", "HOME", FALSE},
{"config", "config.html", "configure router", FALSE},
{"nvram list", "nvram.html", "nvram variable list", TRUE},
{"flashstat", "flashstat.html", "flash device info", TRUE},
{"netstat", "netstat.html", "net device info", TRUE},
{"ps", "ps.html", "process stats", TRUE},
{"gpiostat", "gpiostat.html", "gpio stats", TRUE},
{"memstat", "memstat.html", "memory stats", TRUE},
{"ethstat", "ethstat.html", "ethernet stats", TRUE},
{"vlanstat", "vlanstat.html", "virtual lan stats", TRUE},
{"uartstat", "uartstat.html", "serial device stats", TRUE},
{"arp", "arp.html", "arp table", TRUE},
{"route", "route.html", "route table", TRUE}
}