Searched refs:IP_HDR_SIZE (Results 1 – 5 of 5) sorted by relevance
/third_party/uboot/u-boot-2020.01/net/ |
D | ping.c | 25 struct icmp_hdr *icmp = (struct icmp_hdr *)(pkt + IP_HDR_SIZE); in set_icmp_header() 101 ip->ip_sum = compute_ip_checksum(ip, IP_HDR_SIZE); in ping_receive() 105 icmph->checksum = compute_ip_checksum(icmph, len - IP_HDR_SIZE); in ping_receive()
|
D | net.c | 890 #define IP_MAXUDP (IP_PKTSIZE - IP_HDR_SIZE) 918 payload = (struct hole *)(pkt_buff + IP_HDR_SIZE); in __net_defragment() 922 len = ntohs(ip->ip_len) - IP_HDR_SIZE; in __net_defragment() 935 memcpy(localip, ip, IP_HDR_SIZE); in __net_defragment() 1018 memcpy((uchar *)thisfrag, indata + IP_HDR_SIZE, len); in __net_defragment() 1023 *lenp = total_len + IP_HDR_SIZE; in __net_defragment() 1219 if (!ip_checksum_ok((uchar *)ip, IP_HDR_SIZE)) { in net_process_received_packet() 1506 ip->ip_sum = compute_ip_checksum(ip, IP_HDR_SIZE); in net_set_ip_header()
|
/third_party/uboot/u-boot-2020.01/include/ |
D | net.h | 374 #define IP_HDR_SIZE (sizeof(struct ip_hdr)) macro 376 #define IP_MIN_FRAG_DATAGRAM_SIZE (IP_HDR_SIZE + 8) 399 #define UDP_HDR_SIZE (IP_UDP_HDR_SIZE - IP_HDR_SIZE) 472 #define IP_ICMP_HDR_SIZE (IP_HDR_SIZE + ICMP_HDR_SIZE)
|
/third_party/uboot/u-boot-2020.01/drivers/net/ |
D | sandbox.c | 151 ipr->ip_sum = compute_ip_checksum(ipr, IP_HDR_SIZE); in sandbox_eth_ping_req_to_reply() 237 ipr->ip_sum = compute_ip_checksum(ipr, IP_HDR_SIZE); in sandbox_eth_recv_ping_req()
|
/third_party/uboot/u-boot-2020.01/lib/efi_selftest/ |
D | efi_selftest_snp.c | 123 p.ip_udp.ip_sum = efi_ip_checksum(&p.ip_udp, IP_HDR_SIZE); in send_dhcp_discover()
|