Home
last modified time | relevance | path

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

/haiku/src/tests/system/network/icmp/
H A Dbig_datagram.cpp35 cksum(u_int16_t* buf, int nwords) in cksum() function
111 iph->ip_sum = cksum((unsigned short*)datagram, iph->ip_len >> 1); in main()
124 udp->uh_sum = cksum((u_int16_t*)&pHeader, 3); in main()
/haiku/src/add-ons/kernel/debugger/laplinkll/
H A Dlaplinkll.cpp286 uint8 cksum = 0; in ll_send_frame() local
301 cksum += buff[*len]; in ll_send_frame()
303 err = ll_send_byte_uf(st, cksum); in ll_send_frame()
322 uint8 cksum = 0; in ll_check_frame() local
340 cksum = 0; in ll_check_frame()
351 cksum += byte; in ll_check_frame()
/haiku/src/add-ons/kernel/drivers/network/wlan/atheroswifi/dev/ath/ath_hal/
H A Dah_soc.h36 uint16_t cksum; /* checksum (starting with BD_REV 2) */ member
/haiku/src/tests/add-ons/kernel/network/core/
H A DJamfile10 cksum.c
/haiku/src/add-ons/kernel/drivers/network/ether/ipro100/dev/fxp/
H A Dif_fxp.c577 uint16_t cksum; in fxp_attach() local
586 cksum = 0; in fxp_attach()
588 cksum += sc->eeprom[i]; in fxp_attach()
590 cksum = 0xBABA - cksum; in fxp_attach()
591 fxp_write_eeprom(sc, &cksum, i, 1); in fxp_attach()
594 i, sc->eeprom[i], cksum); in fxp_attach()
595 sc->eeprom[i] = cksum; in fxp_attach()
1308 uint16_t cksum; in fxp_load_eeprom() local
1311 cksum = 0; in fxp_load_eeprom()
1313 cksum += sc->eeprom[i]; in fxp_load_eeprom()
[all …]
/haiku/src/add-ons/kernel/drivers/network/ether/dec21xxx/dev/de/
H A Dif_de.c2748 unsigned cksum, rom_cksum, idx; in tulip_read_macaddr() local
2916 cksum = *(u_int16_t *) &sc->tulip_enaddr[0]; in tulip_read_macaddr()
2917 cksum *= 2; in tulip_read_macaddr()
2918 if (cksum > 65535) cksum -= 65535; in tulip_read_macaddr()
2919 cksum += *(u_int16_t *) &sc->tulip_enaddr[2]; in tulip_read_macaddr()
2920 if (cksum > 65535) cksum -= 65535; in tulip_read_macaddr()
2921 cksum *= 2; in tulip_read_macaddr()
2922 if (cksum > 65535) cksum -= 65535; in tulip_read_macaddr()
2923 cksum += *(u_int16_t *) &sc->tulip_enaddr[4]; in tulip_read_macaddr()
2924 if (cksum >= 65535) cksum -= 65535; in tulip_read_macaddr()
[all …]