Lines Matching defs:buf
164 static uint16_t tcp_checksum(void *buf, int payload_len) in tcp_checksum()
211 static void fill_datalinklayer(void *buf) in fill_datalinklayer()
220 static void fill_networklayer(void *buf, int payload_len) in fill_networklayer()
254 static void fill_transportlayer(void *buf, int seq_offset, int ack_offset, in fill_transportlayer()
273 static void write_packet(int fd, char *buf, int len, struct sockaddr_ll *daddr) in write_packet()
284 static void create_packet(void *buf, int seq_offset, int ack_offset, in create_packet()
300 static char buf[MAX_HDR_LEN + PAYLOAD_LEN]; in send_flags() local
334 static char buf[ETH_HLEN + IP_MAXPACKET]; in send_data_pkts() local
366 static char buf[MAX_HDR_LEN]; in send_ack() local
375 static void recompute_packet(char *buf, char *no_ext, int extlen) in recompute_packet()
397 static void tcp_write_options(char *buf, int kind, int ts) in tcp_write_options()
437 static void add_standard_tcp_options(char *buf, char *no_ext, int ts, int order) in add_standard_tcp_options()
470 static char buf[MAX_HDR_LEN + PAYLOAD_LEN]; in send_changed_checksum() local
485 static char buf[MAX_HDR_LEN + PAYLOAD_LEN]; in send_changed_seq() local
504 static char buf[MAX_HDR_LEN + PAYLOAD_LEN]; in send_changed_ts() local
532 static char buf[MAX_HDR_LEN + PAYLOAD_LEN]; in send_diff_opt() local
553 static void add_ipv4_ts_option(void *buf, void *optpkt) in add_ipv4_ts_option()
581 static char buf[MAX_HDR_LEN + PAYLOAD_LEN]; in send_ip_options() local
600 static char buf[IP_MAXPACKET]; in send_fragment4() local
626 static char buf[MAX_HDR_LEN + PAYLOAD_LEN]; in send_changed_ttl() local
643 static char buf[MAX_HDR_LEN + PAYLOAD_LEN]; in send_changed_tos() local
665 static char buf[MAX_HDR_LEN + PAYLOAD_LEN]; in send_changed_ECN() local
685 static char buf[MAX_HDR_LEN + PAYLOAD_LEN]; in send_fragment6() local