Home
last modified time | relevance | path

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

/u-boot/net/
A Dping.c27 struct icmp_hdr *icmp = (struct icmp_hdr *)(pkt + IP_HDR_SIZE); in set_icmp_header()
106 ip->ip_sum = compute_ip_checksum(ip, IP_HDR_SIZE); in ping_receive()
110 icmph->checksum = compute_ip_checksum(icmph, len - IP_HDR_SIZE); in ping_receive()
A Dnet.c886 #define IP_MAXUDP (IP_PKTSIZE - IP_HDR_SIZE)
911 payload = (struct hole *)(pkt_buff + IP_HDR_SIZE); in __net_defragment()
915 len = ntohs(ip->ip_len) - IP_HDR_SIZE; in __net_defragment()
928 memcpy(localip, ip, IP_HDR_SIZE); in __net_defragment()
1011 memcpy((uchar *)thisfrag, indata + IP_HDR_SIZE, len); in __net_defragment()
1016 *lenp = total_len + IP_HDR_SIZE; in __net_defragment()
1212 if (!ip_checksum_ok((uchar *)ip, IP_HDR_SIZE)) { in net_process_received_packet()
1498 ip->ip_sum = compute_ip_checksum(ip, IP_HDR_SIZE); in net_set_ip_header()
/u-boot/include/
A Dnet.h396 #define IP_HDR_SIZE (sizeof(struct ip_hdr)) macro
419 #define UDP_HDR_SIZE (IP_UDP_HDR_SIZE - IP_HDR_SIZE)
492 #define IP_ICMP_HDR_SIZE (IP_HDR_SIZE + ICMP_HDR_SIZE)
/u-boot/drivers/net/
A Dsandbox.c153 ipr->ip_sum = compute_ip_checksum(ipr, IP_HDR_SIZE); in sandbox_eth_ping_req_to_reply()
239 ipr->ip_sum = compute_ip_checksum(ipr, IP_HDR_SIZE); in sandbox_eth_recv_ping_req()
/u-boot/lib/efi_selftest/
A Defi_selftest_snp.c124 p.ip_udp.ip_sum = efi_ip_checksum(&p.ip_udp, IP_HDR_SIZE); in send_dhcp_discover()

Completed in 9 milliseconds