Home
last modified time | relevance | path

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

/OK3568_Linux_fs/u-boot/net/
H A 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()
H A Dnet.c849 #define IP_MAXUDP (IP_PKTSIZE - IP_HDR_SIZE)
874 payload = (struct hole *)(pkt_buff + IP_HDR_SIZE); in __net_defragment()
878 len = ntohs(ip->ip_len) - IP_HDR_SIZE; in __net_defragment()
891 memcpy(localip, ip, IP_HDR_SIZE); in __net_defragment()
974 memcpy((uchar *)thisfrag, indata + IP_HDR_SIZE, len); in __net_defragment()
979 *lenp = total_len + IP_HDR_SIZE; in __net_defragment()
1172 if (!ip_checksum_ok((uchar *)ip, IP_HDR_SIZE)) { in net_process_received_packet()
1448 ip->ip_len = htons(IP_HDR_SIZE); in net_set_ip_header()
1475 ip->ip_sum = compute_ip_checksum(ip, IP_HDR_SIZE); in net_set_udp_header()
/OK3568_Linux_fs/u-boot/include/
H A Dnet.h380 #define IP_HDR_SIZE (sizeof(struct ip_hdr)) macro
403 #define UDP_HDR_SIZE (IP_UDP_HDR_SIZE - IP_HDR_SIZE)
476 #define IP_ICMP_HDR_SIZE (IP_HDR_SIZE + ICMP_HDR_SIZE)
/OK3568_Linux_fs/u-boot/drivers/net/
H A Dsandbox.c141 IP_HDR_SIZE); in sb_eth_send()