Lines Matching refs:pkt_size

328 	int payload_len, pkt_size, flag, i;  in send_flags()  local
332 pkt_size = total_hdr_len + payload_len; in send_flags()
347 write_packet(fd, flag_buf, pkt_size, daddr); in send_flags()
499 int pkt_size = total_hdr_len + PAYLOAD_LEN; in send_changed_checksum() local
502 write_packet(fd, buf, pkt_size, daddr); in send_changed_checksum()
506 write_packet(fd, buf, pkt_size, daddr); in send_changed_checksum()
514 int pkt_size = total_hdr_len + PAYLOAD_LEN; in send_changed_seq() local
517 write_packet(fd, buf, pkt_size, daddr); in send_changed_seq()
523 write_packet(fd, buf, pkt_size, daddr); in send_changed_seq()
533 int pkt_size = total_hdr_len + PAYLOAD_LEN + TCPOLEN_TSTAMP_APPA; in send_changed_ts() local
537 write_packet(fd, extpkt, pkt_size, daddr); in send_changed_ts()
541 write_packet(fd, extpkt, pkt_size, daddr); in send_changed_ts()
545 write_packet(fd, extpkt, pkt_size, daddr); in send_changed_ts()
549 write_packet(fd, extpkt, pkt_size, daddr); in send_changed_ts()
553 write_packet(fd, extpkt, pkt_size, daddr); in send_changed_ts()
751 int pkt_size = total_hdr_len + PAYLOAD_LEN + optlen; in send_ip_options() local
758 write_packet(fd, optpkt, pkt_size, daddr); in send_ip_options()
769 int pkt_size = total_hdr_len + PAYLOAD_LEN; in send_fragment4() local
772 write_packet(fd, buf, pkt_size, daddr); in send_fragment4()
786 write_packet(fd, buf, pkt_size, daddr); in send_fragment4()
792 int pkt_size = total_hdr_len + PAYLOAD_LEN; in send_changed_ttl() local
797 write_packet(fd, buf, pkt_size, daddr); in send_changed_ttl()
803 write_packet(fd, buf, pkt_size, daddr); in send_changed_ttl()
809 int pkt_size = total_hdr_len + PAYLOAD_LEN; in send_changed_tos() local
815 write_packet(fd, buf, pkt_size, daddr); in send_changed_tos()
825 write_packet(fd, buf, pkt_size, daddr); in send_changed_tos()
831 int pkt_size = total_hdr_len + PAYLOAD_LEN; in send_changed_ECN() local
836 write_packet(fd, buf, pkt_size, daddr); in send_changed_ECN()
846 write_packet(fd, buf, pkt_size, daddr); in send_changed_ECN()
918 int pkt_size = -1; in check_recv_pkts() local
930 pkt_size = recv(fd, buffer, IP_MAXPACKET + ETH_HLEN + 1, 0); in check_recv_pkts()
931 if (pkt_size < 0) in check_recv_pkts()
945 data_len = pkt_size - total_hdr_len - tcp_ext_len - ip_ext_len; in check_recv_pkts()
950 if (pkt_size == ETH_ZLEN && iph->version == 4) { in check_recv_pkts()