nip_init.h File Reference

#include "nip_types.h"

Include dependency graph for nip_init.h:

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

Go to the source code of this file.

Defines

#define QMAKESTR(s)   #s
#define MAKESTR(s)   QMAKESTR(s)
Architecture
#define NIP_ARCH   avr
 define what architecture the NIP network stack will be compiled for.
#define NIP_ARCH_PATH   arch/NIP_ARCH
 path for architecture-dependent files.
#define NIP_ARCH_FILE(file)   MAKESTR(NIP_ARCH_PATH/file)
 Build filename for includes depending on the architecture.
nIP Modules
#define NIP_MEM_ENABLE   1
 enable memory management
#define NIP_NET_ENABLE   1
 enable network interfaces
#define NIP_DISP_ENABLE   1
 enable dispatcher
#define NIP_ETH_ENABLE   1
 enable support of ethernet interfaces
#define NIP_RTL_ENABLE   1
 enable realtek network driver
#define NIP_IP_ENABLE   1
 enable IP
#define NIP_ARP_ENABLE   1
 enable ARP
#define NIP_ICMP_ENABLE   1
 enable ICMP
#define NIP_UDP_ENABLE   1
 enable UDP
#define NIP_TCP_ENABLE   1
 enable TCP
#define NIP_DHCP_ENABLE   1
#define NIP_AUTOIP_ENABLE   1
#define NIP_MULTICAST_ENABLE   1
#define NIP_IGMP_ENABLE   0
#define NIP_MDNS_ENABLE   1
#define NIP_DNSSD_ENABLE   1
Network Interface Configuration
#define NIP_NET_IF_COUNT   1
 Define Number of network interfaces.
#define NIP_NET_RX_TRANS_COUNT   2
 Define maximum number of queued transmissions per interface.
#define NIP_NET_TX_TRANS_COUNT   2
 Define maximum number transmissions in global send queue.
#define NIP_MAX_HW_ADDR_SIZE   6
 Define maximum hardware address size.
#define NIP_MAX_NET_ADDR_SIZE   4
 Define maximum network address size.
#define NIP_NET_LOOPBACK_ENABLE   1
 Enable local loopback of network packages.
#define NIP_ARP_CACHE_SIZE   4
 number of entries in ARP cache
Network Interface Statistics
#define NIP_NET_IF_CNT_OVERRUN
 count network interface receive buffer overruns
#define NIP_NET_IF_CNT_RXE
 count receive errors
#define NIP_NET_IF_CNT_TXE
 count transmit errors
#define NIP_NET_IF_CNT_DISCARDED
 count discarded packets
#define NIP_NET_IF_CNT_RECEIVED
 count received packets
Transport Layer Configuration
#define NIP_UDP_USE_FIXED_SOCKETS   1
 Use fixed socket array (static allocation of memory for fixed numer of sockets) or use dynamic array of sockets with at most NIP_UDP_MAX_SOCKETS sockets.
#define NIP_UDP_FIXED_SOCKETS   4
 Fixed number of UDP sockets to be used for fixed socket configuration.
#define NIP_UDP_PACKET_QUEUE_SIZE   2
 Fixed size of UDP queue for incoming packets.
Memory management
#define NIP_MEM_MAX_BLOCKS   255
 Define maximum number of memory blocks.
#define NIP_MEM_DYNAMIC_SIZE   1000
 Number of bytes reserved for dynamic buffer management.
#define NIP_MEM_DEBUG   1
 enable additional sanity check which may be useful points to halt the debugger at.

Functions

void nip_init (void)
 Initialize NIP Internetstack.


Define Documentation

#define MAKESTR (  )     QMAKESTR(s)

Definition at line 37 of file nip_init.h.

#define NIP_ARCH   avr

define what architecture the NIP network stack will be compiled for.

The architecture has to match a directory name in the `'arch'' directory.

Definition at line 44 of file nip_init.h.

#define NIP_ARCH_FILE ( file   )     MAKESTR(NIP_ARCH_PATH/file)

Build filename for includes depending on the architecture.

Definition at line 50 of file nip_init.h.

#define NIP_ARCH_PATH   arch/NIP_ARCH

path for architecture-dependent files.

Definition at line 47 of file nip_init.h.

#define NIP_ARP_CACHE_SIZE   4

number of entries in ARP cache

Definition at line 130 of file nip_init.h.

#define NIP_ARP_ENABLE   1

enable ARP

Definition at line 76 of file nip_init.h.

#define NIP_AUTOIP_ENABLE   1

Definition at line 91 of file nip_init.h.

#define NIP_DHCP_ENABLE   1

Definition at line 88 of file nip_init.h.

#define NIP_DISP_ENABLE   1

enable dispatcher

Definition at line 64 of file nip_init.h.

#define NIP_DNSSD_ENABLE   1

Definition at line 103 of file nip_init.h.

#define NIP_ETH_ENABLE   1

enable support of ethernet interfaces

Definition at line 67 of file nip_init.h.

#define NIP_ICMP_ENABLE   1

enable ICMP

Definition at line 79 of file nip_init.h.

#define NIP_IGMP_ENABLE   0

Definition at line 97 of file nip_init.h.

#define NIP_IP_ENABLE   1

enable IP

Definition at line 73 of file nip_init.h.

#define NIP_MAX_HW_ADDR_SIZE   6

Define maximum hardware address size.

Defaults to 6 for ethernet addresses.

Definition at line 121 of file nip_init.h.

#define NIP_MAX_NET_ADDR_SIZE   4

Define maximum network address size.

Defaults to 4 for ip addressing.

Definition at line 124 of file nip_init.h.

#define NIP_MDNS_ENABLE   1

Definition at line 100 of file nip_init.h.

#define NIP_MEM_DEBUG   1

enable additional sanity check which may be useful points to halt the debugger at.

Check for DEBUG comments in nip_mem.c.

Definition at line 195 of file nip_init.h.

#define NIP_MEM_DYNAMIC_SIZE   1000

Number of bytes reserved for dynamic buffer management.

Note:
Not all of the reservied memory will actually be available for allocation, as some of it will be spent on management information.

Definition at line 189 of file nip_init.h.

#define NIP_MEM_ENABLE   1

enable memory management

Definition at line 58 of file nip_init.h.

#define NIP_MEM_MAX_BLOCKS   255

Define maximum number of memory blocks.

Note:
Any number larger than 255 will cause memory addresses to be larger than 8 Bit, which may be disadvantagous on 8-bit architectures.

Definition at line 183 of file nip_init.h.

#define NIP_MULTICAST_ENABLE   1

Definition at line 94 of file nip_init.h.

#define NIP_NET_ENABLE   1

enable network interfaces

Definition at line 61 of file nip_init.h.

#define NIP_NET_IF_CNT_DISCARDED

count discarded packets

Definition at line 147 of file nip_init.h.

#define NIP_NET_IF_CNT_OVERRUN

count network interface receive buffer overruns

Definition at line 138 of file nip_init.h.

#define NIP_NET_IF_CNT_RECEIVED

count received packets

Definition at line 150 of file nip_init.h.

#define NIP_NET_IF_CNT_RXE

count receive errors

Definition at line 141 of file nip_init.h.

#define NIP_NET_IF_CNT_TXE

count transmit errors

Definition at line 144 of file nip_init.h.

#define NIP_NET_IF_COUNT   1

Define Number of network interfaces.

Definition at line 112 of file nip_init.h.

#define NIP_NET_LOOPBACK_ENABLE   1

Enable local loopback of network packages.

Definition at line 127 of file nip_init.h.

#define NIP_NET_RX_TRANS_COUNT   2

Define maximum number of queued transmissions per interface.

Defaults to 2.

Definition at line 115 of file nip_init.h.

#define NIP_NET_TX_TRANS_COUNT   2

Define maximum number transmissions in global send queue.

Defaults to 2.

Definition at line 118 of file nip_init.h.

#define NIP_RTL_ENABLE   1

enable realtek network driver

Definition at line 70 of file nip_init.h.

#define NIP_TCP_ENABLE   1

enable TCP

Definition at line 85 of file nip_init.h.

#define NIP_UDP_ENABLE   1

enable UDP

Definition at line 82 of file nip_init.h.

#define NIP_UDP_FIXED_SOCKETS   4

Fixed number of UDP sockets to be used for fixed socket configuration.

Definition at line 167 of file nip_init.h.

#define NIP_UDP_PACKET_QUEUE_SIZE   2

Fixed size of UDP queue for incoming packets.

Definition at line 170 of file nip_init.h.

#define NIP_UDP_USE_FIXED_SOCKETS   1

Use fixed socket array (static allocation of memory for fixed numer of sockets) or use dynamic array of sockets with at most NIP_UDP_MAX_SOCKETS sockets.

Definition at line 164 of file nip_init.h.

#define QMAKESTR (  )     #s

Definition at line 36 of file nip_init.h.


Function Documentation

void nip_init ( void   ) 

Initialize NIP Internetstack.

Definition at line 44 of file nip_init.c.

References nip_net_if::id, nip_mdns_init(), nip_mem_init(), NIP_NET_IF_COUNT, and NIP_NET_NO_IF.

Referenced by init_networking(), and main().

Here is the call graph for this function:

Here is the caller graph for this function:


Generated on Thu Jul 10 01:09:31 2008 for NIP by  doxygen 1.5.5