Lines Matching refs:fragsize
5665 payloadlen, fragsize = 100, 8
5666 assert fragsize % 8 == 0
5667 fragcount = (payloadlen // fragsize) + bool(payloadlen % fragsize)
5671 frags = fragment(pkt, fragsize)
5677 * each fragment except the last one should have a payload of fragsize bytes
5679 assert len(frags[-1].payload) == ((payloadlen % fragsize) or fragsize)
5744 payloadlen, fragsize = 100, 8
5745 assert fragsize % 8 == 0
5746 fragcount = (payloadlen // fragsize) + bool(payloadlen % fragsize)
5750 frags = pkt.fragment(fragsize)
5756 * each fragment except the last one should have a payload of fragsize bytes
5758 assert len(frags[-1].payload) == ((payloadlen % fragsize) or fragsize)