I have a datagram of 3600 Bytes, an MTU of 800 Bytes, and so my number of fragments is 5.
I found that the first 4 fragments will be 800 bytes (including the 20B for the IP header) and the last will be 480 (including the IP header).
The offset for the first is of course 0, but when I calculate the offset for the second fragment I get this:
fragment 2 offset = 780 Bytes / 8 = 97.5
How do I handle getting a non integer number? Do I take the ceiling of it?