trancieveIpPacket

fun trancieveIpPacket(bytesTransferred: Int, ipv6: Boolean)

Charges the IP/TCP overhead of moving bytesTransferred bytes to both the upload and download IP-protocol channels, matching trancieve_ip_packet.

Each 1500-byte-MTU packet (minus a 40/60-byte header and a 20-byte ACK) carries packetSize payload bytes; the header cost is charged once per packet, at least once even for a zero-byte transfer.