Lines Matching defs:MSS
27 * MSS is defined as 4096 - header because if it is too small
70 #define MSS (4096 - sizeof(struct tcphdr) - sizeof(struct ipv6hdr))
72 #define NUM_LARGE_PKT (MAX_PAYLOAD / MSS)
348 static char pkts[NUM_LARGE_PKT][TOTAL_HDR_LEN + MSS];
349 static char last[TOTAL_HDR_LEN + MSS];
350 static char new_seg[TOTAL_HDR_LEN + MSS];
354 create_packet(pkts[i], i * MSS, 0, MSS, 0);
355 create_packet(last, NUM_LARGE_PKT * MSS, 0, remainder, 0);
356 create_packet(new_seg, (NUM_LARGE_PKT + 1) * MSS, 0, remainder, 0);
359 write_packet(fd, pkts[i], total_hdr_len + MSS, daddr);
892 int remainder = (MAX_PAYLOAD + offset) % MSS;
1004 int remainder = (MAX_PAYLOAD + offset) % MSS;