RTEMS CPU Kit with SuperCore  4.11.3
Macros | Functions
in_cksum.h File Reference
#include <sys/cdefs.h>
#include <netinet/ip.h>
Include dependency graph for in_cksum.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define in_cksum_update(ip)
 

Functions

u_int in_cksum_hdr (const struct ip *)
 

Macro Definition Documentation

◆ in_cksum_update

#define in_cksum_update (   ip)
Value:
do { \
int __tmpsum; \
__tmpsum = (int)ntohs(ip->ip_sum) + 256; \
ip->ip_sum = htons(__tmpsum + (__tmpsum >> 16)); \
} while(0)
Definition: ip.h:61