mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-08-09 00:53:37 +08:00
Some documentation cleanups and include more comments that have been already in code into doxygen docs
This commit is contained in:
@@ -2,6 +2,28 @@
|
||||
* @file
|
||||
* AutoIP Automatic LinkLocal IP Configuration
|
||||
*
|
||||
* This is a AutoIP implementation for the lwIP TCP/IP stack. It aims to conform
|
||||
* with RFC 3927.
|
||||
*
|
||||
* @defgroup autoip AUTOIP
|
||||
* @ingroup ip4
|
||||
* AUTOIP related functions
|
||||
* USAGE:
|
||||
*
|
||||
* define @ref LWIP_AUTOIP 1 in your lwipopts.h
|
||||
* Options:
|
||||
* @ref AUTOIP_TMR_INTERVAL msecs,
|
||||
* I recommend a value of 100. The value must divide 1000 with a remainder almost 0.
|
||||
* Possible values are 1000, 500, 333, 250, 200, 166, 142, 125, 111, 100 ....
|
||||
*
|
||||
* Without DHCP:
|
||||
* - Call autoip_start() after netif_add().
|
||||
*
|
||||
* With DHCP:
|
||||
* - define @ref LWIP_DHCP_AUTOIP_COOP 1 in your lwipopts.h.
|
||||
* - Configure your DHCP Client.
|
||||
*
|
||||
* @see netifapi_autoip
|
||||
*/
|
||||
|
||||
/*
|
||||
@@ -32,41 +54,6 @@
|
||||
* OF SUCH DAMAGE.
|
||||
*
|
||||
* Author: Dominik Spies <kontakt@dspies.de>
|
||||
*
|
||||
* This is a AutoIP implementation for the lwIP TCP/IP stack. It aims to conform
|
||||
* with RFC 3927.
|
||||
*
|
||||
*
|
||||
* Please coordinate changes and requests with Dominik Spies
|
||||
* <kontakt@dspies.de>
|
||||
*/
|
||||
|
||||
/*******************************************************************************
|
||||
* USAGE:
|
||||
*
|
||||
* define LWIP_AUTOIP 1 in your lwipopts.h
|
||||
*
|
||||
* If you don't use tcpip.c (so, don't call, you don't call tcpip_init):
|
||||
* - First, call autoip_init().
|
||||
* - call autoip_tmr() all AUTOIP_TMR_INTERVAL msces,
|
||||
* that should be defined in autoip.h.
|
||||
* I recommend a value of 100. The value must divide 1000 with a remainder almost 0.
|
||||
* Possible values are 1000, 500, 333, 250, 200, 166, 142, 125, 111, 100 ....
|
||||
*
|
||||
* Without DHCP:
|
||||
* - Call autoip_start() after netif_add().
|
||||
*
|
||||
* With DHCP:
|
||||
* - define LWIP_DHCP_AUTOIP_COOP 1 in your lwipopts.h.
|
||||
* - Configure your DHCP Client.
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* @defgroup autoip AUTOIP
|
||||
* @ingroup ip4
|
||||
* AUTOIP related functions
|
||||
* @see netifapi_autoip
|
||||
*/
|
||||
|
||||
#include "lwip/opt.h"
|
||||
|
||||
@@ -2,6 +2,26 @@
|
||||
* @file
|
||||
* Dynamic Host Configuration Protocol client
|
||||
*
|
||||
* @defgroup dhcp4 DHCPv4
|
||||
* @ingroup ip4
|
||||
* DHCP (IPv4) related functions
|
||||
* This is a DHCP client for the lwIP TCP/IP stack. It aims to conform
|
||||
* with RFC 2131 and RFC 2132.
|
||||
*
|
||||
* @todo:
|
||||
* - Support for interfaces other than Ethernet (SLIP, PPP, ...)
|
||||
*
|
||||
* Options:
|
||||
* @ref DHCP_COARSE_TIMER_SECS (recommended 60 which is a minute)
|
||||
* @ref DHCP_FINE_TIMER_MSECS (recommended 500 which equals TCP coarse timer)
|
||||
*
|
||||
* dhcp_start() starts a DHCP client instance which
|
||||
* configures the interface by obtaining an IP address lease and maintaining it.
|
||||
*
|
||||
* Use dhcp_release() to end the lease and use dhcp_stop()
|
||||
* to remove the DHCP client.
|
||||
*
|
||||
* @see netifapi_dhcp4
|
||||
*/
|
||||
|
||||
/*
|
||||
@@ -38,38 +58,6 @@
|
||||
*
|
||||
* Author: Leon Woestenberg <leon.woestenberg@gmx.net>
|
||||
*
|
||||
* This is a DHCP client for the lwIP TCP/IP stack. It aims to conform
|
||||
* with RFC 2131 and RFC 2132.
|
||||
*
|
||||
* @todo:
|
||||
* - Support for interfaces other than Ethernet (SLIP, PPP, ...)
|
||||
*
|
||||
* Please coordinate changes and requests with Leon Woestenberg
|
||||
* <leon.woestenberg@gmx.net>
|
||||
*
|
||||
* Integration with your code:
|
||||
*
|
||||
* In lwip/dhcp.h
|
||||
* #define DHCP_COARSE_TIMER_SECS (recommended 60 which is a minute)
|
||||
* #define DHCP_FINE_TIMER_MSECS (recommended 500 which equals TCP coarse timer)
|
||||
*
|
||||
* Then have your application call dhcp_coarse_tmr() and
|
||||
* dhcp_fine_tmr() on the defined intervals.
|
||||
*
|
||||
* dhcp_start(struct netif *netif);
|
||||
* starts a DHCP client instance which configures the interface by
|
||||
* obtaining an IP address lease and maintaining it.
|
||||
*
|
||||
* Use dhcp_release(netif) to end the lease and use dhcp_stop(netif)
|
||||
* to remove the DHCP client.
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* @defgroup dhcp4 DHCPv4
|
||||
* @ingroup ip4
|
||||
* DHCP (IPv4) related functions
|
||||
* @see netifapi_dhcp4
|
||||
*/
|
||||
|
||||
#include "lwip/opt.h"
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
* @file
|
||||
* IGMP - Internet Group Management Protocol
|
||||
*
|
||||
* @defgroup igmp IGMP
|
||||
* @ingroup ip4
|
||||
* To be called from TCPIP thread
|
||||
*/
|
||||
|
||||
/*
|
||||
@@ -38,12 +41,6 @@
|
||||
* source code.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @defgroup igmp IGMP
|
||||
* @ingroup ip4
|
||||
* To be called from TCPIP thread
|
||||
*/
|
||||
|
||||
/*-------------------------------------------------------------
|
||||
Note 1)
|
||||
Although the rfc requires V1 AND V2 capability
|
||||
|
||||
Reference in New Issue
Block a user