Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-os by
ip4_frag.h File Reference
IP fragmentation/reassembly. More...
Go to the source code of this file.
Data Structures | |
struct | ip_reassdata |
IP reassembly helper struct. More... | |
struct | pbuf_custom_ref |
A custom pbuf that holds a reference to another pbuf, which is freed when this custom pbuf is freed. More... | |
Functions | |
void | ip_reass_tmr (void) |
Reassembly timer base function for both NO_SYS == 0 and 1 (!). | |
struct pbuf * | ip4_reass (struct pbuf *p) |
Reassembles incoming IP fragments into an IP datagram. | |
err_t | ip4_frag (struct pbuf *p, struct netif *netif, const ip4_addr_t *dest) |
Fragment an IP datagram if too large for the netif. |
Detailed Description
IP fragmentation/reassembly.
Definition in file ip4_frag.h.
Function Documentation
err_t ip4_frag | ( | struct pbuf * | p, |
struct netif * | netif, | ||
const ip4_addr_t * | dest | ||
) |
Fragment an IP datagram if too large for the netif.
Chop the datagram in MTU sized chunks and send them in order by using a fixed size static memory buffer (PBUF_REF) or point PBUF_REFs into p (depending on IP_FRAG_USES_STATIC_BUF).
- Parameters:
-
p ip packet to send netif the netif on which to send dest destination ip address to which to send
- Returns:
- ERR_OK if sent successfully, err_t otherwise
Definition at line 692 of file lwip_ip4_frag.c.
Reassembles incoming IP fragments into an IP datagram.
- Parameters:
-
p points to a pbuf chain of the fragment
- Returns:
- NULL if reassembly is incomplete, ? otherwise
Definition at line 484 of file lwip_ip4_frag.c.
void ip_reass_tmr | ( | void | ) |
Reassembly timer base function for both NO_SYS == 0 and 1 (!).
Should be called every 1000 msec (defined by IP_TMR_INTERVAL).
Definition at line 124 of file lwip_ip4_frag.c.
Generated on Tue Jul 12 2022 13:16:22 by
