|
RetroArch
|
#include <string.h>#include "lwip/opt.h"#include "lwip/ip.h"#include "lwip/ip_frag.h"#include "lwip/netif.h"#include "lwip/stats.h"Macros | |
| #define | IP_REASS_BUFSIZE 5760 |
| #define | IP_REASS_MAXAGE 30 |
| #define | IP_REASS_TMO 1000 |
| #define | IP_REASS_FLAG_LASTFRAG 0x01 |
| #define | MAX_MTU 1500 |
Functions | |
| static struct pbuf * | copy_from_pbuf (struct pbuf *p, u16_t *offset, u8_t *buffer, u16_t len) |
| void | ip_reass_tmr (void) |
| struct pbuf * | ip_reass (struct pbuf *p) |
| err_t | ip_frag (struct pbuf *p, struct netif *netif, struct ip_addr *dest) |
Variables | |
| static u8_t | ip_reassbuf [IP_HLEN+IP_REASS_BUFSIZE] |
| static u8_t | ip_reassbitmap [IP_REASS_BUFSIZE/(8 *8)+1] |
| static const u8_t | bitmap_bits [8] |
| static u16_t | ip_reasslen |
| static u8_t | ip_reassflags |
| static u8_t | ip_reasstmr |
| static u8_t | buf [MEM_ALIGN_SIZE(MAX_MTU)] |
| #define IP_REASS_BUFSIZE 5760 |
| #define IP_REASS_FLAG_LASTFRAG 0x01 |
| #define IP_REASS_MAXAGE 30 |
| #define IP_REASS_TMO 1000 |
| #define MAX_MTU 1500 |
|
static |
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_ROM)
Reassembles incoming IP fragments into an IP datagram.
| p | points to a pbuf chain of the fragment |
Reassembly timer base function for both NO_SYS == 0 and 1 (!).
Should be called every 1000 msec.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
1.8.15