2010-05-08 05:12:14 +02:00
|
|
|
/*
|
|
|
|
LUFA Library
|
2013-01-03 12:37:33 +01:00
|
|
|
Copyright (C) Dean Camera, 2013.
|
2010-10-13 16:05:35 +02:00
|
|
|
|
2010-05-08 05:12:14 +02:00
|
|
|
dean [at] fourwalledcubicle [dot] com
|
2010-10-28 08:08:58 +02:00
|
|
|
www.lufa-lib.org
|
2010-05-08 05:12:14 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
2013-01-03 12:37:33 +01:00
|
|
|
Copyright 2013 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
2010-05-08 05:12:14 +02:00
|
|
|
|
2010-10-13 16:05:35 +02:00
|
|
|
Permission to use, copy, modify, distribute, and sell this
|
2010-05-08 05:12:14 +02:00
|
|
|
software and its documentation for any purpose is hereby granted
|
2010-10-13 16:05:35 +02:00
|
|
|
without fee, provided that the above copyright notice appear in
|
2010-05-08 05:12:14 +02:00
|
|
|
all copies and that both that the copyright notice and this
|
2010-10-13 16:05:35 +02:00
|
|
|
permission notice and warranty disclaimer appear in supporting
|
|
|
|
documentation, and that the name of the author not be used in
|
|
|
|
advertising or publicity pertaining to distribution of the
|
2010-05-08 05:12:14 +02:00
|
|
|
software without specific, written prior permission.
|
|
|
|
|
2012-10-05 22:22:19 +02:00
|
|
|
The author disclaims all warranties with regard to this
|
2010-05-08 05:12:14 +02:00
|
|
|
software, including all implied warranties of merchantability
|
|
|
|
and fitness. In no event shall the author be liable for any
|
|
|
|
special, indirect or consequential damages or any damages
|
|
|
|
whatsoever resulting from loss of use, data or profits, whether
|
|
|
|
in an action of contract, negligence or other tortious action,
|
|
|
|
arising out of or in connection with the use or performance of
|
|
|
|
this software.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/** \file
|
|
|
|
*
|
|
|
|
* Header file for uIPManagement.c.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _UIP_MANAGEMENT_H_
|
|
|
|
#define _UIP_MANAGEMENT_H_
|
|
|
|
|
|
|
|
/* Includes: */
|
2010-10-25 00:53:57 +02:00
|
|
|
#include <LUFA/Drivers/USB/USB.h>
|
2010-05-08 05:12:14 +02:00
|
|
|
|
|
|
|
#include <uip.h>
|
|
|
|
#include <uip_arp.h>
|
|
|
|
#include <uip-split.h>
|
|
|
|
#include <timer.h>
|
2012-05-13 17:03:17 +02:00
|
|
|
|
|
|
|
#include "Config/AppConfig.h"
|
2010-10-13 16:05:35 +02:00
|
|
|
|
2012-02-29 18:04:04 +01:00
|
|
|
#include "DHCPClientApp.h"
|
|
|
|
#include "DHCPServerApp.h"
|
|
|
|
#include "HTTPServerApp.h"
|
|
|
|
#include "TELNETServerApp.h"
|
2010-10-13 16:05:35 +02:00
|
|
|
|
2010-05-08 05:12:14 +02:00
|
|
|
/* External Variables: */
|
|
|
|
extern struct uip_eth_addr MACAddress;
|
2010-10-13 16:05:35 +02:00
|
|
|
|
2010-05-08 05:12:14 +02:00
|
|
|
/* Function Prototypes: */
|
|
|
|
void uIPManagement_Init(void);
|
|
|
|
void uIPManagement_ManageNetwork(void);
|
|
|
|
void uIPManagement_TCPCallback(void);
|
|
|
|
void uIPManagement_UDPCallback(void);
|
2010-10-13 16:05:35 +02:00
|
|
|
|
2010-05-08 05:12:14 +02:00
|
|
|
#if defined(INCLUDE_FROM_UIPMANAGEMENT_C)
|
|
|
|
static void uIPManagement_ProcessIncomingPacket(void);
|
|
|
|
static void uIPManagement_ManageConnections(void);
|
|
|
|
#endif
|
2010-10-13 16:05:35 +02:00
|
|
|
|
2010-05-08 05:12:14 +02:00
|
|
|
#endif
|
2010-10-13 16:05:35 +02:00
|
|
|
|