uc-sdk
|
#include "lwip/opt.h"
#include "lwip/inet_chksum.h"
#include "lwip/def.h"
#include <stddef.h>
#include <string.h>
Go to the source code of this file.
Macros | |
#define | LWIP_CHKSUM lwip_standard_chksum |
#define | LWIP_CHKSUM_ALGORITHM 2 |
Functions | |
u16_t | inet_chksum_pseudo (struct pbuf *p, ip_addr_t *src, ip_addr_t *dest, u8_t proto, u16_t proto_len) |
u16_t | inet_chksum_pseudo_partial (struct pbuf *p, ip_addr_t *src, ip_addr_t *dest, u8_t proto, u16_t proto_len, u16_t chksum_len) |
u16_t | inet_chksum (void *dataptr, u16_t len) |
u16_t | inet_chksum_pbuf (struct pbuf *p) |
Incluse internet checksum functions.
Definition in file inet_chksum.c.
#define LWIP_CHKSUM lwip_standard_chksum |
Definition at line 59 of file inet_chksum.c.
#define LWIP_CHKSUM_ALGORITHM 2 |
Definition at line 61 of file inet_chksum.c.
Definition at line 396 of file inet_chksum.c.
Calculate a checksum over a chain of pbufs (without pseudo-header, much like inet_chksum only pbufs are used).
p | pbuf chain over that the checksum should be calculated |
Definition at line 409 of file inet_chksum.c.
u16_t inet_chksum_pseudo | ( | struct pbuf * | p, |
ip_addr_t * | src, | ||
ip_addr_t * | dest, | ||
u8_t | proto, | ||
u16_t | proto_len | ||
) |
Definition at line 272 of file inet_chksum.c.