Home
last modified time | relevance | path

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

/external/u-boot/net/
Dping.c26 struct icmp_hdr *icmp = (struct icmp_hdr *)(pkt + IP_HDR_SIZE); in set_icmp_header()
32 ip->ip_sum = compute_ip_checksum(ip, IP_HDR_SIZE); in set_icmp_header()
105 ip->ip_sum = compute_ip_checksum(ip, IP_HDR_SIZE); in ping_receive()
109 icmph->checksum = compute_ip_checksum(icmph, len - IP_HDR_SIZE); in ping_receive()
Dnet.c864 #define IP_MAXUDP (IP_PKTSIZE - IP_HDR_SIZE)
889 payload = (struct hole *)(pkt_buff + IP_HDR_SIZE); in __net_defragment()
893 len = ntohs(ip->ip_len) - IP_HDR_SIZE; in __net_defragment()
906 memcpy(localip, ip, IP_HDR_SIZE); in __net_defragment()
989 memcpy((uchar *)thisfrag, indata + IP_HDR_SIZE, len); in __net_defragment()
994 *lenp = total_len + IP_HDR_SIZE; in __net_defragment()
1187 if (!ip_checksum_ok((uchar *)ip, IP_HDR_SIZE)) { in net_process_received_packet()
1468 ip->ip_len = htons(IP_HDR_SIZE); in net_set_ip_header()
1495 ip->ip_sum = compute_ip_checksum(ip, IP_HDR_SIZE); in net_set_udp_header()
/external/u-boot/include/
Dnet.h378 #define IP_HDR_SIZE (sizeof(struct ip_hdr)) macro
401 #define UDP_HDR_SIZE (IP_UDP_HDR_SIZE - IP_HDR_SIZE)
474 #define IP_ICMP_HDR_SIZE (IP_HDR_SIZE + ICMP_HDR_SIZE)
/external/u-boot/drivers/net/
Dsandbox.c140 IP_HDR_SIZE); in sb_eth_send()
/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()