Documentation

Documentation

Includes

lwip/opt.h

#include "lwip/opt.h"
#include "lwip/opt.h"

lwip/pbuf.h

#include "lwip/pbuf.h"
#include "lwip/pbuf.h"

lwip/ip_addr.h

#include "lwip/ip_addr.h"
#include "lwip/ip_addr.h"

Macros

Marco LWIP_HDR_INET_CHKSUM_H

#define LWIP_HDR_INET_CHKSUM_H


      

Marco SWAP_BYTES_IN_WORD(w)

#define SWAP_BYTES_IN_WORD(w) (((w) & 255) << 8) | (((w) & 65280) >> 8)


      

Marco FOLD_U32T(u)

#define FOLD_U32T(u)         ((u32_t)(((u) >> 16) + ((u) & 0x0000ffffUL)))

      

Functions

Func inet_chksum

u16_t inet_chksum(const void *dataptr, u16_t len);


      

Func inet_chksum_pbuf

u16_t inet_chksum_pbuf(struct pbuf *p);


      

Func lwip_chksum_copy

u16_t lwip_chksum_copy(void *dst, const void *src, u16_t len);


      

Func inet_chksum_pseudo

u16_t inet_chksum_pseudo(struct pbuf *p, u8_t proto, u16_t proto_len,
      const ip4_addr_t *src, const ip4_addr_t *dest);


      

Func inet_chksum_pseudo_partial

u16_t inet_chksum_pseudo_partial(struct pbuf *p, u8_t proto,
      u16_t proto_len, u16_t chksum_len, const ip4_addr_t *src, const ip4_addr_t *dest);


      

Func ip6_chksum_pseudo

u16_t ip6_chksum_pseudo(struct pbuf *p, u8_t proto, u16_t proto_len,
      const ip6_addr_t *src, const ip6_addr_t *dest);


      

Func ip6_chksum_pseudo_partial

u16_t ip6_chksum_pseudo_partial(struct pbuf *p, u8_t proto, u16_t proto_len,
      u16_t chksum_len, const ip6_addr_t *src, const ip6_addr_t *dest);


      

Func ip_chksum_pseudo

u16_t ip_chksum_pseudo(struct pbuf *p, u8_t proto, u16_t proto_len,
      const ip_addr_t *src, const ip_addr_t *dest);


      

Func ip_chksum_pseudo_partial

u16_t ip_chksum_pseudo_partial(struct pbuf *p, u8_t proto, u16_t proto_len,
      u16_t chksum_len, const ip_addr_t *src, const ip_addr_t *dest);

      

Vars

Consts

Types

Typedefs