Home
last modified time | relevance | path

Searched refs:buff (Results 1 – 1 of 1) sorted by relevance

/samples/bpf/
Dxdpsock_user.c597 static unsigned int do_csum(const unsigned char *buff, int len) in do_csum() argument
604 odd = 1 & (unsigned long)buff; in do_csum()
607 result += (*buff << 8); in do_csum()
609 result = *buff; in do_csum()
612 buff++; in do_csum()
615 if (2 & (unsigned long)buff) { in do_csum()
616 result += *(unsigned short *)buff; in do_csum()
618 buff += 2; in do_csum()
621 const unsigned char *end = buff + in do_csum()
626 unsigned int w = *(unsigned int *)buff; in do_csum()
[all …]