mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-27 12:35:26 +00:00
Some more RAW API documentation updates
Improve structure of documentation: PPP is now a module, too
This commit is contained in:
parent
10acd8303d
commit
59295be4ef
@ -781,7 +781,7 @@ WARN_LOGFILE =
|
|||||||
# spaces. See also FILE_PATTERNS and EXTENSION_MAPPING
|
# spaces. See also FILE_PATTERNS and EXTENSION_MAPPING
|
||||||
# Note: If this tag is empty the current directory is searched.
|
# Note: If this tag is empty the current directory is searched.
|
||||||
|
|
||||||
INPUT = ../../src main_page.h rawapi.h ppp.h contrib.h sys_arch.h
|
INPUT = ../../src main_page.h ppp.h contrib.h sys_arch.h
|
||||||
|
|
||||||
# This tag can be used to specify the character encoding of the source files
|
# This tag can be used to specify the character encoding of the source files
|
||||||
# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses
|
# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/**
|
/**
|
||||||
* @page ppp PPP
|
* @defgroup ppp PPP
|
||||||
* @verbinclude "ppp.txt"
|
* @verbinclude "ppp.txt"
|
||||||
*/
|
*/
|
||||||
|
@ -1,4 +0,0 @@
|
|||||||
/**
|
|
||||||
* @page rawapi RAW API
|
|
||||||
* @verbinclude "rawapi.txt"
|
|
||||||
*/
|
|
@ -3,7 +3,7 @@
|
|||||||
* Implementation of raw protocol PCBs for low-level handling of
|
* Implementation of raw protocol PCBs for low-level handling of
|
||||||
* different types of protocols besides (or overriding) those
|
* different types of protocols besides (or overriding) those
|
||||||
* already available in lwIP.\n
|
* already available in lwIP.\n
|
||||||
* See also @ref rawapi
|
* See also @ref raw_raw
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -40,7 +40,16 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @defgroup raw_api RAW API
|
* @defgroup raw_api RAW API
|
||||||
* @see @ref rawapi
|
* @verbinclude "rawapi.txt"
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @defgroup raw_raw RAW
|
||||||
|
* @ingroup raw_api
|
||||||
|
* Implementation of raw protocol PCBs for low-level handling of
|
||||||
|
* different types of protocols besides (or overriding) those
|
||||||
|
* already available in lwIP.\n
|
||||||
|
* @see @ref raw_api
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "lwip/opt.h"
|
#include "lwip/opt.h"
|
||||||
@ -190,6 +199,7 @@ raw_input(struct pbuf *p, struct netif *inp)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @ingroup raw_raw
|
||||||
* Bind a RAW PCB.
|
* Bind a RAW PCB.
|
||||||
*
|
*
|
||||||
* @param pcb RAW PCB to be bound with a local address ipaddr.
|
* @param pcb RAW PCB to be bound with a local address ipaddr.
|
||||||
@ -214,6 +224,7 @@ raw_bind(struct raw_pcb *pcb, const ip_addr_t *ipaddr)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @ingroup raw_raw
|
||||||
* Connect an RAW PCB. This function is required by upper layers
|
* Connect an RAW PCB. This function is required by upper layers
|
||||||
* of lwip. Using the raw api you could use raw_sendto() instead
|
* of lwip. Using the raw api you could use raw_sendto() instead
|
||||||
*
|
*
|
||||||
@ -237,6 +248,7 @@ raw_connect(struct raw_pcb *pcb, const ip_addr_t *ipaddr)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @ingroup raw_raw
|
||||||
* Set the callback function for received packets that match the
|
* Set the callback function for received packets that match the
|
||||||
* raw PCB's protocol and binding.
|
* raw PCB's protocol and binding.
|
||||||
*
|
*
|
||||||
@ -258,6 +270,7 @@ raw_recv(struct raw_pcb *pcb, raw_recv_fn recv, void *recv_arg)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @ingroup raw_raw
|
||||||
* Send the raw IP packet to the given address. Note that actually you cannot
|
* Send the raw IP packet to the given address. Note that actually you cannot
|
||||||
* modify the IP headers (this is inconsistent with the receive callback where
|
* modify the IP headers (this is inconsistent with the receive callback where
|
||||||
* you actually get the IP headers), you can only specify the IP payload here.
|
* you actually get the IP headers), you can only specify the IP payload here.
|
||||||
@ -383,6 +396,7 @@ raw_sendto(struct raw_pcb *pcb, struct pbuf *p, const ip_addr_t *ipaddr)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @ingroup raw_raw
|
||||||
* Send the raw IP packet to the address given by raw_connect()
|
* Send the raw IP packet to the address given by raw_connect()
|
||||||
*
|
*
|
||||||
* @param pcb the raw pcb which to send
|
* @param pcb the raw pcb which to send
|
||||||
@ -396,6 +410,7 @@ raw_send(struct raw_pcb *pcb, struct pbuf *p)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @ingroup raw_raw
|
||||||
* Remove an RAW PCB.
|
* Remove an RAW PCB.
|
||||||
*
|
*
|
||||||
* @param pcb RAW PCB to be removed. The PCB is removed from the list of
|
* @param pcb RAW PCB to be removed. The PCB is removed from the list of
|
||||||
@ -426,6 +441,7 @@ raw_remove(struct raw_pcb *pcb)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @ingroup raw_raw
|
||||||
* Create a RAW PCB.
|
* Create a RAW PCB.
|
||||||
*
|
*
|
||||||
* @return The RAW PCB which was created. NULL if the PCB data structure
|
* @return The RAW PCB which was created. NULL if the PCB data structure
|
||||||
@ -456,7 +472,8 @@ raw_new(u8_t proto)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a RAW PCB for IPv6.
|
* @ingroup raw_raw
|
||||||
|
* Create a RAW PCB for specific IP type.
|
||||||
*
|
*
|
||||||
* @return The RAW PCB which was created. NULL if the PCB data structure
|
* @return The RAW PCB which was created. NULL if the PCB data structure
|
||||||
* could not be allocated.
|
* could not be allocated.
|
||||||
|
@ -1,12 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* @file
|
* @file
|
||||||
* Transmission Control Protocol for IP
|
* Transmission Control Protocol for IP
|
||||||
*
|
* See also @ref tcp_raw
|
||||||
* This file contains common functions for the TCP implementation, such as functinos
|
|
||||||
* for manipulating the data structures and the TCP timer functions. TCP functions
|
|
||||||
* related to input and output is found in tcp_in.c and tcp_out.c respectively.\n
|
|
||||||
*
|
|
||||||
* See also @ref rawapi
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -44,7 +39,12 @@
|
|||||||
/**
|
/**
|
||||||
* @defgroup tcp_raw TCP
|
* @defgroup tcp_raw TCP
|
||||||
* @ingroup raw_api
|
* @ingroup raw_api
|
||||||
* @see @ref rawapi
|
* Transmission Control Protocol for IP\n
|
||||||
|
* @see @ref raw_api
|
||||||
|
*
|
||||||
|
* Common functions for the TCP implementation, such as functinos
|
||||||
|
* for manipulating the data structures and the TCP timer functions. TCP functions
|
||||||
|
* related to input and output is found in tcp_in.c and tcp_out.c respectively.\n
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "lwip/opt.h"
|
#include "lwip/opt.h"
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* @file
|
* @file
|
||||||
* User Datagram Protocol module\n
|
* User Datagram Protocol module\n
|
||||||
*
|
* See also @ref udp_raw
|
||||||
* See also @ref rawapi
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -40,7 +39,8 @@
|
|||||||
/**
|
/**
|
||||||
* @defgroup udp_raw UDP
|
* @defgroup udp_raw UDP
|
||||||
* @ingroup raw_api
|
* @ingroup raw_api
|
||||||
* @see @ref rawapi
|
* User Datagram Protocol module\n
|
||||||
|
* @see @ref raw_api
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* udp.c
|
/* udp.c
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* @file
|
* @file
|
||||||
* raw API (to be used from TCPIP thread)\n
|
* raw API (to be used from TCPIP thread)\n
|
||||||
* See also @ref rawapi
|
* See also @ref raw_raw
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* @file
|
* @file
|
||||||
* TCP API (to be used from TCPIP thread)\n
|
* TCP API (to be used from TCPIP thread)\n
|
||||||
* See also @ref rawapi
|
* See also @ref tcp_raw
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* @file
|
* @file
|
||||||
* UDP API (to be used from TCPIP thread)\n
|
* UDP API (to be used from TCPIP thread)\n
|
||||||
* See also @ref rawapi
|
* See also @ref udp_raw
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user