MCPcopy Create free account
hub / github.com/F-Stack/f-stack / gre_cksum_add

Function gre_cksum_add

freebsd/net/if_gre.c:453–460  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

451}
452
453static __inline uint16_t
454gre_cksum_add(uint16_t sum, uint16_t a)
455{
456 uint16_t res;
457
458 res = sum + a;
459 return (res + (res < a));
460}
461
462void
463gre_update_udphdr(struct gre_softc *sc, struct udphdr *udp, uint16_t csum)

Callers 1

gre_transmitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected