Home
last modified time | relevance | path

Searched refs:optpkt (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/tools/testing/selftests/net/
H A Dgro.c554 static void add_ipv4_ts_option(void *buf, void *optpkt) in add_ipv4_ts_option() argument
556 struct ip_timestamp *ts = (struct ip_timestamp *)(optpkt + tcp_offset); in add_ipv4_ts_option()
568 memcpy(optpkt, buf, tcp_offset); in add_ipv4_ts_option()
569 memcpy(optpkt + tcp_offset + optlen, buf + tcp_offset, in add_ipv4_ts_option()
572 iph = (struct iphdr *)(optpkt + ETH_HLEN); in add_ipv4_ts_option()
583 static char optpkt[sizeof(buf) + sizeof(struct ip_timestamp)]; in send_ip_options() local
591 add_ipv4_ts_option(buf, optpkt); in send_ip_options()
592 write_packet(fd, optpkt, pkt_size, daddr); in send_ip_options()