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)
387 static char pkts[NUM_LARGE_PKT][TOTAL_HDR_LEN + MSS];
388 static char last[TOTAL_HDR_LEN + MSS];
389 static char new_seg[TOTAL_HDR_LEN + MSS];
393 create_packet(pkts[i], i * MSS, 0, MSS, 0);
394 create_packet(last, NUM_LARGE_PKT * MSS, 0, remainder, 0);
395 create_packet(new_seg, (NUM_LARGE_PKT + 1) * MSS, 0, remainder, 0);
398 write_packet(fd, pkts[i], total_hdr_len + MSS, daddr);
1095 int remainder = (MAX_PAYLOAD + offset) % MSS;
1245 int remainder = (MAX_PAYLOAD + offset) % MSS;