RetroArch
Macros | Functions
inet.c File Reference
#include "lwip/opt.h"
#include "lwip/arch.h"
#include "lwip/def.h"
#include "lwip/inet.h"
#include "lwip/sys.h"
Include dependency graph for inet.c:

Macros

#define LWIP_CHKSUM   lwip_standard_chksum
 

Functions

static u16_t lwip_standard_chksum (void *dataptr, u16_t len)
 
u16_t inet_chksum_pseudo (struct pbuf *p, struct ip_addr *src, struct ip_addr *dest, u8_t proto, u16_t proto_len)
 
u16_t inet_chksum (void *dataptr, u16_t len)
 
u16_t inet_chksum_pbuf (struct pbuf *p)
 

Macro Definition Documentation

◆ LWIP_CHKSUM

#define LWIP_CHKSUM   lwip_standard_chksum

Function Documentation

◆ inet_chksum()

u16_t inet_chksum ( void dataptr,
u16_t  len 
)

◆ inet_chksum_pbuf()

u16_t inet_chksum_pbuf ( struct pbuf p)

◆ inet_chksum_pseudo()

u16_t inet_chksum_pseudo ( struct pbuf p,
struct ip_addr src,
struct ip_addr dest,
u8_t  proto,
u16_t  proto_len 
)

◆ lwip_standard_chksum()

static u16_t lwip_standard_chksum ( void dataptr,
u16_t  len 
)
static

lwip checksum

Parameters
dataptrpoints to start of data to be summed at any boundary
lenlength of data to be summed
Returns
host order (!) lwip checksum (non-inverted Internet sum)
Note
accumulator size limits summable lenght to 64k
host endianess is irrelevant (p3 RFC1071)