Adding uIP 1.0
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@310 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
parent
3a3bbe4400
commit
dfc73f082f
|
@ -201,3 +201,5 @@
|
|||
|
||||
0.2.9 2007-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||
|
||||
* Imported uIP into the tree (see
|
||||
http://www.sics.se/~adam/uip/index.php/Main_Page)
|
||||
|
|
|
@ -635,6 +635,8 @@ Other memory:
|
|||
|
||||
0.2.9 2007-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||
|
||||
* Imported uIP into the tree (see
|
||||
http://www.sics.se/~adam/uip/index.php/Main_Page)
|
||||
</pre></ul>
|
||||
|
||||
<table width ="100%">
|
||||
|
|
|
@ -1294,6 +1294,72 @@ The system can be re-made subsequently by just typing <code>make</code>.
|
|||
</li>
|
||||
</ul>
|
||||
|
||||
<h2>Network Support</h2>
|
||||
<h3>TCP/IP support via uIP</h2>
|
||||
<ul>
|
||||
<li>
|
||||
<code>CONFIG_NET_UIP</code>: Enable or disable all uIP features
|
||||
</li>
|
||||
<li>
|
||||
<code>CONFIG_NET_UIP_IPv6</code>: Build in support for IPv6
|
||||
</li>
|
||||
<li>
|
||||
<code>CONFIG_UIP_MAX_CONNECTIONS</code>: Maximum number of TCP connections
|
||||
</li>
|
||||
<li>
|
||||
<code>CONFIG_UIP_MAX_LISTENPORTS</code>: Maximum number of listening TCP ports
|
||||
</li>
|
||||
<li>
|
||||
<code>CONFIG_UIP_BUFFER_SIZE</code>: uIP buffer size
|
||||
</li>
|
||||
<li>
|
||||
<code>CONFIG_UIP_LOGGING</code>: Logging on or off
|
||||
</li>
|
||||
<li>
|
||||
<code>CONFIG_UIP_UDP</code>: UDP support on or off
|
||||
</li>
|
||||
<li>
|
||||
<code>CONFIG_UIP_UDP_CHECKSUMS</code>: UDP checksums on or off
|
||||
</li>
|
||||
<li>
|
||||
<code>CONFIG_UIP_UDP_CONNS</code>: The maximum amount of concurrent UDP connections
|
||||
</li>
|
||||
<li>
|
||||
<code>CONFIG_UIP_STATISTICS</code>: uIP statistics on or off
|
||||
</li>
|
||||
<li>
|
||||
<code>CONFIG_UIP_PINGADDRCONF</code>: Use "ping" packet for setting IP address
|
||||
</li>
|
||||
<li>
|
||||
<code>CONFIG_UIP_RECEIVE_WINDOW</code>: The size of the advertised receiver's window
|
||||
</li>
|
||||
<li>
|
||||
<code>CONFIG_UIP_ARPTAB_SIZE</code>: The size of the ARP table
|
||||
</li>
|
||||
<li>
|
||||
<code>CONFIG_UIP_BROADCAST</code>: Broadcast support
|
||||
</li>
|
||||
<li>
|
||||
<code>CONFIG_UIP_LLH_LEN</code>: The link level header length
|
||||
</li>
|
||||
<li>
|
||||
<code>CONFIG_UIP_EXTERNAL_BUFFER</code>: Incoming packet buffer (uip_buf) is defined externally
|
||||
</li>
|
||||
<li>
|
||||
<code>CONFIG_UIP_FWCACHE_SIZE</code>: number of packets to remember when looking for duplicates
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<h3>UIP Network Utilities</h3>
|
||||
<ul>
|
||||
<li>
|
||||
<code>CONFIG_UIP_DHCP_LIGHT</code>: Reduces size of DHCP
|
||||
</li>
|
||||
<li>
|
||||
<code>CONFIG_UIP_RESOLV_ENTRIES</code>: Number of resolver entries
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<h2>Stack and heap information</h2>
|
||||
|
||||
<ul>
|
||||
|
|
|
@ -51,6 +51,10 @@ BOARD_DIR = configs/$(CONFIG_ARCH_BOARD)
|
|||
NONFSDIRS = sched lib $(ARCH_SRC) mm examples/$(CONFIG_EXAMPLE)
|
||||
FSDIRS = fs drivers
|
||||
|
||||
ifeq ($(CONFIG_NET_UIP),y)
|
||||
NONFSDIRS += net netutils
|
||||
endif
|
||||
|
||||
# CLEANDIRS are the directories that will clean in. These are
|
||||
# all directories that we know about.
|
||||
# MAKEDIRS are the directories in which we will build targets
|
||||
|
@ -75,6 +79,10 @@ ifneq ($(CONFIG_NFILE_DESCRIPTORS),0)
|
|||
LINKLIBS += fs/libfs$(LIBEXT) drivers/libdrivers$(LIBEXT)
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_NET_UIP),y)
|
||||
LINKLIBS += net/libnet$(LIBEXT) netutils/libnetutils$(LIBEXT)
|
||||
endif
|
||||
|
||||
# This is the name of the final target
|
||||
BIN = nuttx$(EXEEXT)
|
||||
|
||||
|
@ -184,6 +192,12 @@ $(ARCH_SRC)/libarch$(LIBEXT): context
|
|||
mm/libmm$(LIBEXT): context
|
||||
$(MAKE) -C mm TOPDIR=$(TOPDIR) libmm$(LIBEXT)
|
||||
|
||||
net/libnet$(LIBEXT): context
|
||||
$(MAKE) -C net TOPDIR=$(TOPDIR) libnet$(LIBEXT)
|
||||
|
||||
netutils/libnetutils$(LIBEXT): context
|
||||
$(MAKE) -C netutils TOPDIR=$(TOPDIR) libnetutils$(LIBEXT)
|
||||
|
||||
fs/libfs$(LIBEXT): context
|
||||
$(MAKE) -C fs TOPDIR=$(TOPDIR) libfs$(LIBEXT)
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ o C++ Support
|
|||
- Need to call static constructors
|
||||
|
||||
o Network
|
||||
- Port FreeBSD TCP/IP stack
|
||||
- Finish integratin of uIP
|
||||
|
||||
o USB
|
||||
- Implement USB device support
|
||||
|
|
|
@ -49,6 +49,9 @@ CSRCS = up_initialize.c up_idle.c up_interruptcontext.c \
|
|||
ifeq ($(CONFIG_FS_FAT),y)
|
||||
CSRCS += up_blockdevice.c up_deviceimage.c
|
||||
endif
|
||||
ifeq ($(CONFIG_NET_UIP),y)
|
||||
CSRCS += up_uipdriver.c
|
||||
endif
|
||||
|
||||
COBJS = $(CSRCS:.c=$(OBJEXT))
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
* notice, this list of conditions and the following disclaimer in
|
||||
* the documentation and/or other materials provided with the
|
||||
* distribution.
|
||||
* 3. Neither the name Gregory Nutt nor the names of its contributors may be
|
||||
* 3. Neither the name NuttX nor the names of its contributors may be
|
||||
* used to endorse or promote products derived from this software
|
||||
* without specific prior written permission.
|
||||
*
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
* notice, this list of conditions and the following disclaimer in
|
||||
* the documentation and/or other materials provided with the
|
||||
* distribution.
|
||||
* 3. Neither the name Gregory Nutt nor the names of its contributors may be
|
||||
* 3. Neither the name NuttX nor the names of its contributors may be
|
||||
* used to endorse or promote products derived from this software
|
||||
* without specific prior written permission.
|
||||
*
|
||||
|
@ -80,5 +80,11 @@ void up_idle(void)
|
|||
*/
|
||||
|
||||
sched_process_timer();
|
||||
|
||||
/* Run the network if enabled */
|
||||
|
||||
#ifdef CONFIG_NET_UIP
|
||||
uipdriver_loop();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
@ -86,4 +86,7 @@ void up_initialize(void)
|
|||
devnull_register(); /* Standard /dev/null */
|
||||
up_devconsole(); /* Our private /dev/console */
|
||||
up_registerblockdevice(); /* Our simulated block device /dev/blkdev */
|
||||
#ifdef CONFIG_NET_UIP
|
||||
uipdriver_init(); /* Our "real" netwok driver */
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -107,5 +107,12 @@ extern void up_registerblockdevice(void);
|
|||
|
||||
extern char *up_deviceimage(void);
|
||||
|
||||
/* up_uipdriver.c *********************************************************/
|
||||
|
||||
#ifdef CONFIG_NET_UIP
|
||||
extern int uipdriver_init(void);
|
||||
extern void uipdriver_loop(void);
|
||||
#endif
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __ARCH_UP_INTERNAL_H */
|
||||
|
|
|
@ -0,0 +1,329 @@
|
|||
/****************************************************************************
|
||||
* up_uipdriver.c
|
||||
*
|
||||
* Copyright (C) 2007 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||
*
|
||||
* Based on code from uIP which also has a BSD-like license:
|
||||
*
|
||||
* 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. Neither the name NuttX nor the names of its contributors may be
|
||||
* used to endorse or promote products derived from this software
|
||||
* without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
* "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
|
||||
* COPYRIGHT OWNER OR CONTRIBUTORS 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.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Included Files
|
||||
****************************************************************************/
|
||||
|
||||
#include <nuttx/config.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/socket.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/uio.h>
|
||||
#include <sys/socket.h>
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
#include <fcntl.h>
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
#include <errno.h>
|
||||
#include <debug.h>
|
||||
|
||||
#include <net/uip/uip.h>
|
||||
#include <net/uip/uip-arch.h>
|
||||
#include <net/uip/uip-arp.h>
|
||||
|
||||
#ifdef linux
|
||||
# include <sys/ioctl.h>
|
||||
# include <linux/if.h>
|
||||
# include <linux/if_tun.h>
|
||||
# define DEVTAP "/dev/net/tun"
|
||||
#else /* linux */
|
||||
# define DEVTAP "/dev/tap0"
|
||||
#endif /* linux */
|
||||
|
||||
#include "up_internal.h"
|
||||
|
||||
/****************************************************************************
|
||||
* Private Definitions
|
||||
****************************************************************************/
|
||||
|
||||
#define BUF ((struct uip_eth_hdr *)&uip_buf[0])
|
||||
|
||||
#define UIP_DRIPADDR0 192
|
||||
#define UIP_DRIPADDR1 168
|
||||
#define UIP_DRIPADDR2 0
|
||||
#define UIP_DRIPADDR3 1
|
||||
|
||||
/****************************************************************************
|
||||
* Private Types
|
||||
****************************************************************************/
|
||||
|
||||
struct timer
|
||||
{
|
||||
uint32 interval;
|
||||
uint32 start;
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
* Private Function Prototypes
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Private Data
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_DEBUG
|
||||
static int drop = 0;
|
||||
#endif
|
||||
static int fd;
|
||||
static struct timer periodic_timer;
|
||||
static struct timer arp_timer;
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
static uint32 gettime( void )
|
||||
{
|
||||
struct timespec tm;
|
||||
(void)clock_gettime(CLOCK_REALTIME, &tm);
|
||||
return tm.tv_sec*1000 + tm.tv_nsec/1000000;
|
||||
}
|
||||
|
||||
static void timer_set( struct timer *t, unsigned int interval )
|
||||
{
|
||||
t->interval = interval;
|
||||
t->start = gettime();
|
||||
}
|
||||
|
||||
static boolean timer_expired( struct timer *t )
|
||||
{
|
||||
return (gettime() - t->start) >= t->interval;
|
||||
}
|
||||
|
||||
void timer_reset(struct timer *t)
|
||||
{
|
||||
t->start += t->interval;
|
||||
}
|
||||
|
||||
static void tapdev_init(void)
|
||||
{
|
||||
char buf[1024];
|
||||
|
||||
fd = open(DEVTAP, O_RDWR);
|
||||
if(fd == -1)
|
||||
{
|
||||
lib_rawprintf("tapdev: tapdev_init: open");
|
||||
return;
|
||||
}
|
||||
|
||||
#ifdef linux
|
||||
{
|
||||
struct ifreq ifr;
|
||||
memset(&ifr, 0, sizeof(ifr));
|
||||
ifr.ifr_flags = IFF_TAP|IFF_NO_PI;
|
||||
if (ioctl(fd, TUNSETIFF, (void *) &ifr) < 0)
|
||||
{
|
||||
lib_rawprintf(buf);
|
||||
return;
|
||||
}
|
||||
}
|
||||
#endif /* Linux */
|
||||
|
||||
snprintf(buf, sizeof(buf), "ifconfig tap0 inet %d.%d.%d.%d",
|
||||
UIP_DRIPADDR0, UIP_DRIPADDR1, UIP_DRIPADDR2, UIP_DRIPADDR3);
|
||||
system(buf);
|
||||
}
|
||||
|
||||
static unsigned int tapdev_read(void)
|
||||
{
|
||||
fd_set fdset;
|
||||
struct timeval tv;
|
||||
int ret;
|
||||
|
||||
tv.tv_sec = 0;
|
||||
tv.tv_usec = 1000;
|
||||
|
||||
FD_ZERO(&fdset);
|
||||
FD_SET(fd, &fdset);
|
||||
|
||||
ret = select(fd + 1, &fdset, NULL, NULL, &tv);
|
||||
if(ret == 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
ret = read(fd, uip_buf, UIP_BUFSIZE);
|
||||
if(ret == -1)
|
||||
{
|
||||
lib_rawprintf("tap_dev: tapdev_read: read");
|
||||
}
|
||||
|
||||
dbg("tap_dev: tapdev_read: read %d bytes\n", ret);
|
||||
{
|
||||
int i;
|
||||
for(i = 0; i < 20; i++)
|
||||
{
|
||||
vdbg("%x ", uip_buf[i]);
|
||||
}
|
||||
vdbg("\n");
|
||||
}
|
||||
|
||||
#ifdef CONFIG_DEBUG
|
||||
check_checksum(uip_buf, ret);
|
||||
#endif
|
||||
return ret;
|
||||
}
|
||||
|
||||
static void tapdev_send(void)
|
||||
{
|
||||
int ret;
|
||||
#ifdef CONFIG_DEBUG
|
||||
dbg("tapdev_send: sending %d bytes\n", uip_len);
|
||||
check_checksum(uip_buf, uip_len);
|
||||
|
||||
drop++;
|
||||
if(drop % 8 == 7)
|
||||
{
|
||||
dbg("Dropped a packet!\n");
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
ret = write(fd, uip_buf, uip_len);
|
||||
if(ret == -1)
|
||||
{
|
||||
perror("tap_dev: tapdev_send: writev");
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
void uipdriver_loop(void)
|
||||
{
|
||||
int i;
|
||||
|
||||
uip_len = tapdev_read();
|
||||
if (uip_len > 0)
|
||||
{
|
||||
if (BUF->type == htons(UIP_ETHTYPE_IP))
|
||||
{
|
||||
uip_arp_ipin();
|
||||
uip_input();
|
||||
|
||||
/* If the above function invocation resulted in data that
|
||||
* should be sent out on the network, the global variable
|
||||
* uip_len is set to a value > 0.
|
||||
*/
|
||||
|
||||
if (uip_len > 0)
|
||||
{
|
||||
uip_arp_out();
|
||||
tapdev_send();
|
||||
}
|
||||
}
|
||||
else if (BUF->type == htons(UIP_ETHTYPE_ARP))
|
||||
{
|
||||
uip_arp_arpin();
|
||||
|
||||
/* If the above function invocation resulted in data that
|
||||
* should be sent out on the network, the global variable
|
||||
* uip_len is set to a value > 0.
|
||||
*/
|
||||
|
||||
if (uip_len > 0)
|
||||
{
|
||||
tapdev_send();
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (timer_expired(&periodic_timer))
|
||||
{
|
||||
timer_reset(&periodic_timer);
|
||||
for(i = 0; i < UIP_CONNS; i++)
|
||||
{
|
||||
uip_periodic(i);
|
||||
|
||||
/* If the above function invocation resulted in data that
|
||||
* should be sent out on the network, the global variable
|
||||
* uip_len is set to a value > 0.
|
||||
*/
|
||||
|
||||
if (uip_len > 0)
|
||||
{
|
||||
uip_arp_out();
|
||||
tapdev_send();
|
||||
}
|
||||
}
|
||||
|
||||
#if UIP_UDP
|
||||
for(i = 0; i < UIP_UDP_CONNS; i++)
|
||||
{
|
||||
uip_udp_periodic(i);
|
||||
|
||||
/* If the above function invocation resulted in data that
|
||||
* should be sent out on the network, the global variable
|
||||
* uip_len is set to a value > 0.
|
||||
*/
|
||||
|
||||
if (uip_len > 0)
|
||||
{
|
||||
uip_arp_out();
|
||||
tapdev_send();
|
||||
}
|
||||
}
|
||||
#endif /* UIP_UDP */
|
||||
|
||||
/* Call the ARP timer function every 10 seconds. */
|
||||
|
||||
if (timer_expired(&arp_timer))
|
||||
{
|
||||
timer_reset(&arp_timer);
|
||||
uip_arp_timer();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
int uipdriver_init(void)
|
||||
{
|
||||
timer_set(&periodic_timer, CLK_TCK / 2);
|
||||
timer_set(&arp_timer, CLK_TCK * 10);
|
||||
|
||||
tapdev_init();
|
||||
uip_init();
|
||||
return OK;
|
||||
}
|
|
@ -208,6 +208,33 @@ defconfig -- This is a configuration file similar to the Linux
|
|||
structures. The system manages a pool of preallocated
|
||||
watchdog structures to minimize dynamic allocations
|
||||
|
||||
TCP/IP support via uIP
|
||||
CONFIG_NET_UIP - Enable or disable all uIP features
|
||||
CONFIG_NET_UIP_IPv6 - Build in support for IPv6
|
||||
CONFIG_UIP_MAX_CONNECTIONS - Maximum number of TCP connections
|
||||
CONFIG_UIP_MAX_LISTENPORTS - Maximum number of listening TCP ports
|
||||
CONFIG_UIP_BUFFER_SIZE - uIP buffer size
|
||||
CONFIG_UIP_LOGGING - Logging on or off
|
||||
CONFIG_UIP_UDP - UDP support on or off
|
||||
CONFIG_UIP_UDP_CHECKSUMS - UDP checksums on or off
|
||||
CONFIG_UIP_UDP_CONNS - The maximum amount of concurrent UDP
|
||||
connections
|
||||
CONFIG_UIP_STATISTICS - uIP statistics on or off
|
||||
CONFIG_UIP_PINGADDRCONF - Use "ping" packet for setting IP address
|
||||
CONFIG_UIP_RECEIVE_WINDOW - The size of the advertised receiver's
|
||||
window
|
||||
CONFIG_UIP_ARPTAB_SIZE - The size of the ARP table
|
||||
CONFIG_UIP_BROADCAST - Broadcast support
|
||||
CONFIG_UIP_LLH_LEN - The link level header length
|
||||
CONFIG_UIP_EXTERNAL_BUFFER - Incoming packet buffer (uip_buf)
|
||||
is defined externally
|
||||
CONFIG_UIP_FWCACHE_SIZE - number of packets to remember when
|
||||
looking for duplicates
|
||||
|
||||
UIP Network Utilities
|
||||
CONFIG_UIP_DHCP_LIGHT - Reduces size of DHCP
|
||||
CONFIG_UIP_RESOLV_ENTRIES - Number of resolver entries
|
||||
|
||||
Stack and heap information
|
||||
|
||||
CONFIG_BOOT_FROM_FLASH - Some configurations support XIP
|
||||
|
|
|
@ -249,6 +249,50 @@ CONFIG_MAX_WDOGPARMS=4
|
|||
CONFIG_PREALLOC_WDOGS=32
|
||||
CONFIG_PREALLOC_TIMERS=8
|
||||
|
||||
#
|
||||
# TCP/IP support via uIP
|
||||
# CONFIG_NET_UIP - Enable or disable all uIP features
|
||||
# CONFIG_NET_UIP_IPv6 - Build in support for IPv6
|
||||
# CONFIG_UIP_MAX_CONNECTIONS - Maximum number of TCP connections
|
||||
# CONFIG_UIP_MAX_LISTENPORTS - Maximum number of listening TCP ports
|
||||
# CONFIG_UIP_BUFFER_SIZE - uIP buffer size
|
||||
# CONFIG_UIP_LOGGING - Logging on or off
|
||||
# CONFIG_UIP_UDP - UDP support on or off
|
||||
# CONFIG_UIP_UDP_CHECKSUMS - UDP checksums on or off
|
||||
# CONFIG_UIP_UDP_CONNS - The maximum amount of concurrent UDP connections
|
||||
# CONFIG_UIP_STATISTICS - uIP statistics on or off
|
||||
# CONFIG_UIP_PINGADDRCONF - Use "ping" packet for setting IP address
|
||||
# CONFIG_UIP_RECEIVE_WINDOW - The size of the advertised receiver's window
|
||||
# CONFIG_UIP_ARPTAB_SIZE - The size of the ARP table
|
||||
# CONFIG_UIP_BROADCAST - Broadcast support
|
||||
# CONFIG_UIP_LLH_LEN - The link level header length
|
||||
# CONFIG_UIP_EXTERNAL_BUFFER - Incoming packet buffer (uip_buf) is defined externally
|
||||
# CONFIG_UIP_FWCACHE_SIZE - number of packets to remember when looking for duplicates
|
||||
CONFIG_NET_UIP=n
|
||||
CONFIG_NET_UIP_IPv6=n
|
||||
CONFIG_UIP_MAX_CONNECTIONS=40
|
||||
CONFIG_UIP_MAX_LISTENPORTS=40
|
||||
CONFIG_UIP_BUFFER_SIZE=420
|
||||
CONFIG_UIP_LOGGING=y
|
||||
CONFIG_UIP_UDP=n
|
||||
CONFIG_UIP_UDP_CHECKSUMS=y
|
||||
#CONFIG_UIP_UDP_CONNS=10
|
||||
CONFIG_UIP_STATISTICS=y
|
||||
#CONFIG_UIP_PINGADDRCONF=0
|
||||
#CONFIG_UIP_RECEIVE_WINDOW=
|
||||
#CONFIG_UIP_ARPTAB_SIZE=8
|
||||
CONFIG_UIP_BROADCAST=n
|
||||
#CONFIG_UIP_LLH_LEN=14
|
||||
CONFIG_UIP_EXTERNAL_BUFFER=n
|
||||
#CONFIG_UIP_FWCACHE_SIZE=2
|
||||
|
||||
#
|
||||
# UIP Network Utilities
|
||||
# CONFIG_UIP_DHCP_LIGHT - Reduces size of DHCP
|
||||
# CONFIG_UIP_RESOLV_ENTRIES - Number of resolver entries
|
||||
CONFIG_UIP_DHCP_LIGHT=n
|
||||
CONFIG_UIP_RESOLV_ENTRIES=4
|
||||
|
||||
#
|
||||
# Stack and heap information
|
||||
#
|
||||
|
|
|
@ -238,6 +238,50 @@ CONFIG_MAX_WDOGPARMS=4
|
|||
CONFIG_PREALLOC_WDOGS=32
|
||||
CONFIG_PREALLOC_TIMERS=8
|
||||
|
||||
#
|
||||
# TCP/IP support via uIP
|
||||
# CONFIG_NET_UIP - Enable or disable all uIP features
|
||||
# CONFIG_NET_UIP_IPv6 - Build in support for IPv6
|
||||
# CONFIG_UIP_MAX_CONNECTIONS - Maximum number of TCP connections
|
||||
# CONFIG_UIP_MAX_LISTENPORTS - Maximum number of listening TCP ports
|
||||
# CONFIG_UIP_BUFFER_SIZE - uIP buffer size
|
||||
# CONFIG_UIP_LOGGING - Logging on or off
|
||||
# CONFIG_UIP_UDP - UDP support on or off
|
||||
# CONFIG_UIP_UDP_CHECKSUMS - UDP checksums on or off
|
||||
# CONFIG_UIP_UDP_CONNS - The maximum amount of concurrent UDP connections
|
||||
# CONFIG_UIP_STATISTICS - uIP statistics on or off
|
||||
# CONFIG_UIP_PINGADDRCONF - Use "ping" packet for setting IP address
|
||||
# CONFIG_UIP_RECEIVE_WINDOW - The size of the advertised receiver's window
|
||||
# CONFIG_UIP_ARPTAB_SIZE - The size of the ARP table
|
||||
# CONFIG_UIP_BROADCAST - Broadcast support
|
||||
# CONFIG_UIP_LLH_LEN - The link level header length
|
||||
# CONFIG_UIP_EXTERNAL_BUFFER - Incoming packet buffer (uip_buf) is defined externally
|
||||
# CONFIG_UIP_FWCACHE_SIZE - number of packets to remember when looking for duplicates
|
||||
CONFIG_NET_UIP=n
|
||||
CONFIG_NET_UIP_IPv6=n
|
||||
CONFIG_UIP_MAX_CONNECTIONS=40
|
||||
CONFIG_UIP_MAX_LISTENPORTS=40
|
||||
CONFIG_UIP_BUFFER_SIZE=420
|
||||
CONFIG_UIP_LOGGING=y
|
||||
CONFIG_UIP_UDP=n
|
||||
CONFIG_UIP_UDP_CHECKSUMS=y
|
||||
#CONFIG_UIP_UDP_CONNS=10
|
||||
CONFIG_UIP_STATISTICS=y
|
||||
#CONFIG_UIP_PINGADDRCONF=0
|
||||
#CONFIG_UIP_RECEIVE_WINDOW=
|
||||
#CONFIG_UIP_ARPTAB_SIZE=8
|
||||
CONFIG_UIP_BROADCAST=n
|
||||
#CONFIG_UIP_LLH_LEN=14
|
||||
CONFIG_UIP_EXTERNAL_BUFFER=n
|
||||
#CONFIG_UIP_FWCACHE_SIZE=2
|
||||
|
||||
#
|
||||
# UIP Network Utilities
|
||||
# CONFIG_UIP_DHCP_LIGHT - Reduces size of DHCP
|
||||
# CONFIG_UIP_RESOLV_ENTRIES - Number of resolver entries
|
||||
CONFIG_UIP_DHCP_LIGHT=n
|
||||
CONFIG_UIP_RESOLV_ENTRIES=4
|
||||
|
||||
#
|
||||
# Stack and heap information
|
||||
#
|
||||
|
|
|
@ -262,6 +262,50 @@ CONFIG_MAX_WDOGPARMS=4
|
|||
CONFIG_PREALLOC_WDOGS=32
|
||||
CONFIG_PREALLOC_TIMERS=8
|
||||
|
||||
#
|
||||
# TCP/IP support via uIP
|
||||
# CONFIG_NET_UIP - Enable or disable all uIP features
|
||||
# CONFIG_NET_UIP_IPv6 - Build in support for IPv6
|
||||
# CONFIG_UIP_MAX_CONNECTIONS - Maximum number of TCP connections
|
||||
# CONFIG_UIP_MAX_LISTENPORTS - Maximum number of listening TCP ports
|
||||
# CONFIG_UIP_BUFFER_SIZE - uIP buffer size
|
||||
# CONFIG_UIP_LOGGING - Logging on or off
|
||||
# CONFIG_UIP_UDP - UDP support on or off
|
||||
# CONFIG_UIP_UDP_CHECKSUMS - UDP checksums on or off
|
||||
# CONFIG_UIP_UDP_CONNS - The maximum amount of concurrent UDP connections
|
||||
# CONFIG_UIP_STATISTICS - uIP statistics on or off
|
||||
# CONFIG_UIP_PINGADDRCONF - Use "ping" packet for setting IP address
|
||||
# CONFIG_UIP_RECEIVE_WINDOW - The size of the advertised receiver's window
|
||||
# CONFIG_UIP_ARPTAB_SIZE - The size of the ARP table
|
||||
# CONFIG_UIP_BROADCAST - Broadcast support
|
||||
# CONFIG_UIP_LLH_LEN - The link level header length
|
||||
# CONFIG_UIP_EXTERNAL_BUFFER - Incoming packet buffer (uip_buf) is defined externally
|
||||
# CONFIG_UIP_FWCACHE_SIZE - number of packets to remember when looking for duplicates
|
||||
CONFIG_NET_UIP=n
|
||||
CONFIG_NET_UIP_IPv6=n
|
||||
CONFIG_UIP_MAX_CONNECTIONS=40
|
||||
CONFIG_UIP_MAX_LISTENPORTS=40
|
||||
CONFIG_UIP_BUFFER_SIZE=420
|
||||
CONFIG_UIP_LOGGING=y
|
||||
CONFIG_UIP_UDP=n
|
||||
CONFIG_UIP_UDP_CHECKSUMS=y
|
||||
#CONFIG_UIP_UDP_CONNS=10
|
||||
CONFIG_UIP_STATISTICS=y
|
||||
#CONFIG_UIP_PINGADDRCONF=0
|
||||
#CONFIG_UIP_RECEIVE_WINDOW=
|
||||
#CONFIG_UIP_ARPTAB_SIZE=8
|
||||
CONFIG_UIP_BROADCAST=n
|
||||
#CONFIG_UIP_LLH_LEN=14
|
||||
CONFIG_UIP_EXTERNAL_BUFFER=n
|
||||
#CONFIG_UIP_FWCACHE_SIZE=2
|
||||
|
||||
#
|
||||
# UIP Network Utilities
|
||||
# CONFIG_UIP_DHCP_LIGHT - Reduces size of DHCP
|
||||
# CONFIG_UIP_RESOLV_ENTRIES - Number of resolver entries
|
||||
CONFIG_UIP_DHCP_LIGHT=n
|
||||
CONFIG_UIP_RESOLV_ENTRIES=4
|
||||
|
||||
#
|
||||
# Stack and heap information
|
||||
#
|
||||
|
|
|
@ -247,6 +247,50 @@ CONFIG_MAX_WDOGPARMS=4
|
|||
CONFIG_PREALLOC_WDOGS=32
|
||||
CONFIG_PREALLOC_TIMERS=8
|
||||
|
||||
#
|
||||
# TCP/IP support via uIP
|
||||
# CONFIG_NET_UIP - Enable or disable all uIP features
|
||||
# CONFIG_NET_UIP_IPv6 - Build in support for IPv6
|
||||
# CONFIG_UIP_MAX_CONNECTIONS - Maximum number of TCP connections
|
||||
# CONFIG_UIP_MAX_LISTENPORTS - Maximum number of listening TCP ports
|
||||
# CONFIG_UIP_BUFFER_SIZE - uIP buffer size
|
||||
# CONFIG_UIP_LOGGING - Logging on or off
|
||||
# CONFIG_UIP_UDP - UDP support on or off
|
||||
# CONFIG_UIP_UDP_CHECKSUMS - UDP checksums on or off
|
||||
# CONFIG_UIP_UDP_CONNS - The maximum amount of concurrent UDP connections
|
||||
# CONFIG_UIP_STATISTICS - uIP statistics on or off
|
||||
# CONFIG_UIP_PINGADDRCONF - Use "ping" packet for setting IP address
|
||||
# CONFIG_UIP_RECEIVE_WINDOW - The size of the advertised receiver's window
|
||||
# CONFIG_UIP_ARPTAB_SIZE - The size of the ARP table
|
||||
# CONFIG_UIP_BROADCAST - Broadcast support
|
||||
# CONFIG_UIP_LLH_LEN - The link level header length
|
||||
# CONFIG_UIP_EXTERNAL_BUFFER - Incoming packet buffer (uip_buf) is defined externally
|
||||
# CONFIG_UIP_FWCACHE_SIZE - number of packets to remember when looking for duplicates
|
||||
CONFIG_NET_UIP=y
|
||||
CONFIG_NET_UIP_IPv6=n
|
||||
CONFIG_UIP_MAX_CONNECTIONS=40
|
||||
CONFIG_UIP_MAX_LISTENPORTS=40
|
||||
CONFIG_UIP_BUFFER_SIZE=420
|
||||
CONFIG_UIP_LOGGING=y
|
||||
CONFIG_UIP_UDP=n
|
||||
CONFIG_UIP_UDP_CHECKSUMS=y
|
||||
#CONFIG_UIP_UDP_CONNS=10
|
||||
CONFIG_UIP_STATISTICS=y
|
||||
#CONFIG_UIP_PINGADDRCONF=0
|
||||
#CONFIG_UIP_RECEIVE_WINDOW=
|
||||
#CONFIG_UIP_ARPTAB_SIZE=8
|
||||
CONFIG_UIP_BROADCAST=n
|
||||
#CONFIG_UIP_LLH_LEN=14
|
||||
CONFIG_UIP_EXTERNAL_BUFFER=n
|
||||
#CONFIG_UIP_FWCACHE_SIZE=2
|
||||
|
||||
#
|
||||
# UIP Network Utilities
|
||||
# CONFIG_UIP_DHCP_LIGHT - Reduces size of DHCP
|
||||
# CONFIG_UIP_RESOLV_ENTRIES - Number of resolver entries
|
||||
CONFIG_UIP_DHCP_LIGHT=n
|
||||
CONFIG_UIP_RESOLV_ENTRIES=4
|
||||
|
||||
#
|
||||
# Stack and heap information
|
||||
#
|
||||
|
|
|
@ -235,6 +235,50 @@ CONFIG_MAX_WDOGPARMS=2
|
|||
CONFIG_PREALLOC_WDOGS=4
|
||||
CONFIG_PREALLOC_TIMERS=0
|
||||
|
||||
#
|
||||
# TCP/IP support via uIP
|
||||
# CONFIG_NET_UIP - Enable or disable all uIP features
|
||||
# CONFIG_NET_UIP_IPv6 - Build in support for IPv6
|
||||
# CONFIG_UIP_MAX_CONNECTIONS - Maximum number of TCP connections
|
||||
# CONFIG_UIP_MAX_LISTENPORTS - Maximum number of listening TCP ports
|
||||
# CONFIG_UIP_BUFFER_SIZE - uIP buffer size
|
||||
# CONFIG_UIP_LOGGING - Logging on or off
|
||||
# CONFIG_UIP_UDP - UDP support on or off
|
||||
# CONFIG_UIP_UDP_CHECKSUMS - UDP checksums on or off
|
||||
# CONFIG_UIP_UDP_CONNS - The maximum amount of concurrent UDP connections
|
||||
# CONFIG_UIP_STATISTICS - uIP statistics on or off
|
||||
# CONFIG_UIP_PINGADDRCONF - Use "ping" packet for setting IP address
|
||||
# CONFIG_UIP_RECEIVE_WINDOW - The size of the advertised receiver's window
|
||||
# CONFIG_UIP_ARPTAB_SIZE - The size of the ARP table
|
||||
# CONFIG_UIP_BROADCAST - Broadcast support
|
||||
# CONFIG_UIP_LLH_LEN - The link level header length
|
||||
# CONFIG_UIP_EXTERNAL_BUFFER - Incoming packet buffer (uip_buf) is defined externally
|
||||
# CONFIG_UIP_FWCACHE_SIZE - number of packets to remember when looking for duplicates
|
||||
CONFIG_NET_UIP=y
|
||||
CONFIG_NET_UIP_IPv6=n
|
||||
CONFIG_UIP_MAX_CONNECTIONS=40
|
||||
CONFIG_UIP_MAX_LISTENPORTS=40
|
||||
CONFIG_UIP_BUFFER_SIZE=420
|
||||
CONFIG_UIP_LOGGING=y
|
||||
CONFIG_UIP_UDP=n
|
||||
CONFIG_UIP_UDP_CHECKSUMS=y
|
||||
#CONFIG_UIP_UDP_CONNS=10
|
||||
CONFIG_UIP_STATISTICS=y
|
||||
#CONFIG_UIP_PINGADDRCONF=0
|
||||
#CONFIG_UIP_RECEIVE_WINDOW=
|
||||
#CONFIG_UIP_ARPTAB_SIZE=8
|
||||
CONFIG_UIP_BROADCAST=n
|
||||
#CONFIG_UIP_LLH_LEN=14
|
||||
CONFIG_UIP_EXTERNAL_BUFFER=n
|
||||
#CONFIG_UIP_FWCACHE_SIZE=2
|
||||
|
||||
#
|
||||
# UIP Network Utilities
|
||||
# CONFIG_UIP_DHCP_LIGHT - Reduces size of DHCP
|
||||
# CONFIG_UIP_RESOLV_ENTRIES - Number of resolver entries
|
||||
CONFIG_UIP_DHCP_LIGHT=n
|
||||
CONFIG_UIP_RESOLV_ENTRIES=4
|
||||
|
||||
#
|
||||
# Stack and heap information
|
||||
#
|
||||
|
|
|
@ -209,6 +209,50 @@ CONFIG_PREALLOC_TIMERS=8
|
|||
# CONFIG_FAT_SECTORSIZE - Max supported sector size
|
||||
CONFIG_FS_FAT=y
|
||||
|
||||
#
|
||||
# TCP/IP support via uIP
|
||||
# CONFIG_NET_UIP - Enable or disable all uIP features
|
||||
# CONFIG_NET_UIP_IPv6 - Build in support for IPv6
|
||||
# CONFIG_UIP_MAX_CONNECTIONS - Maximum number of TCP connections
|
||||
# CONFIG_UIP_MAX_LISTENPORTS - Maximum number of listening TCP ports
|
||||
# CONFIG_UIP_BUFFER_SIZE - uIP buffer size
|
||||
# CONFIG_UIP_LOGGING - Logging on or off
|
||||
# CONFIG_UIP_UDP - UDP support on or off
|
||||
# CONFIG_UIP_UDP_CHECKSUMS - UDP checksums on or off
|
||||
# CONFIG_UIP_UDP_CONNS - The maximum amount of concurrent UDP connections
|
||||
# CONFIG_UIP_STATISTICS - uIP statistics on or off
|
||||
# CONFIG_UIP_PINGADDRCONF - Use "ping" packet for setting IP address
|
||||
# CONFIG_UIP_RECEIVE_WINDOW - The size of the advertised receiver's window
|
||||
# CONFIG_UIP_ARPTAB_SIZE - The size of the ARP table
|
||||
# CONFIG_UIP_BROADCAST - Broadcast support
|
||||
# CONFIG_UIP_LLH_LEN - The link level header length
|
||||
# CONFIG_UIP_EXTERNAL_BUFFER - Incoming packet buffer (uip_buf) is defined externally
|
||||
# CONFIG_UIP_FWCACHE_SIZE - number of packets to remember when looking for duplicates
|
||||
CONFIG_NET_UIP=n
|
||||
CONFIG_NET_UIP_IPv6=n
|
||||
CONFIG_UIP_MAX_CONNECTIONS=40
|
||||
CONFIG_UIP_MAX_LISTENPORTS=40
|
||||
CONFIG_UIP_BUFFER_SIZE=420
|
||||
CONFIG_UIP_LOGGING=y
|
||||
CONFIG_UIP_UDP=n
|
||||
CONFIG_UIP_UDP_CHECKSUMS=y
|
||||
#CONFIG_UIP_UDP_CONNS=10
|
||||
CONFIG_UIP_STATISTICS=y
|
||||
#CONFIG_UIP_PINGADDRCONF=0
|
||||
#CONFIG_UIP_RECEIVE_WINDOW=
|
||||
#CONFIG_UIP_ARPTAB_SIZE=8
|
||||
CONFIG_UIP_BROADCAST=n
|
||||
#CONFIG_UIP_LLH_LEN=14
|
||||
CONFIG_UIP_EXTERNAL_BUFFER=n
|
||||
#CONFIG_UIP_FWCACHE_SIZE=2
|
||||
|
||||
#
|
||||
# UIP Network Utilities
|
||||
# CONFIG_UIP_DHCP_LIGHT - Reduces size of DHCP
|
||||
# CONFIG_UIP_RESOLV_ENTRIES - Number of resolver entries
|
||||
CONFIG_UIP_DHCP_LIGHT=n
|
||||
CONFIG_UIP_RESOLV_ENTRIES=4
|
||||
|
||||
#
|
||||
# Stack and heap information
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue