Home
last modified time | relevance | path

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

/external/u-boot/net/
Dping.c25 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()
Dnet.c890 #define IP_MAXUDP (IP_PKTSIZE - IP_HDR_SIZE)
915 payload = (struct hole *)(pkt_buff + IP_HDR_SIZE); in __net_defragment()
919 len = ntohs(ip->ip_len) - IP_HDR_SIZE; in __net_defragment()
932 memcpy(localip, ip, IP_HDR_SIZE); in __net_defragment()
1015 memcpy((uchar *)thisfrag, indata + IP_HDR_SIZE, len); in __net_defragment()
1020 *lenp = total_len + IP_HDR_SIZE; in __net_defragment()
1216 if (!ip_checksum_ok((uchar *)ip, IP_HDR_SIZE)) { in net_process_received_packet()
1503 ip->ip_sum = compute_ip_checksum(ip, IP_HDR_SIZE); in net_set_ip_header()
/external/u-boot/include/
Dnet.h374 #define IP_HDR_SIZE (sizeof(struct ip_hdr)) macro
397 #define UDP_HDR_SIZE (IP_UDP_HDR_SIZE - IP_HDR_SIZE)
470 #define IP_ICMP_HDR_SIZE (IP_HDR_SIZE + ICMP_HDR_SIZE)
/external/u-boot/drivers/net/
Dsandbox.c151 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()
/external/u-boot/lib/efi_selftest/
Defi_selftest_snp.c123 p.ip_udp.ip_sum = efi_ip_checksum(&p.ip_udp, IP_HDR_SIZE); in send_dhcp_discover()