#include <sys/cdefs.h>
#include <netinet/ip.h>
Go to the source code of this file.
|
#define | in_cksum_update(ip) |
|
|
u_int | in_cksum_hdr (const struct ip *) |
|
◆ 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)