Searched refs:IP_HDR_SIZE (Results 1 – 8 of 8) sorted by relevance
| /u-boot/net/ |
| A D | ping.c | 27 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 D | net.c | 988 #define IP_MAXUDP (IP_PKTSIZE - IP_HDR_SIZE) 1016 if (ntohs(ip->ip_len) <= IP_HDR_SIZE) in __net_defragment() 1020 payload = (struct hole *)(pkt_buff + IP_HDR_SIZE); in __net_defragment() 1024 len = ntohs(ip->ip_len) - IP_HDR_SIZE; in __net_defragment() 1041 memcpy(localip, ip, IP_HDR_SIZE); in __net_defragment() 1132 *lenp = total_len + IP_HDR_SIZE; in __net_defragment() 1313 if (len < IP_HDR_SIZE) { in net_process_received_packet() 1315 (ulong)IP_HDR_SIZE); in net_process_received_packet() 1324 if (len < IP_HDR_SIZE) { in net_process_received_packet() 1338 if (!ip_checksum_ok((uchar *)ip, IP_HDR_SIZE)) { in net_process_received_packet() [all …]
|
| A D | tcp.c | 276 pkt_hdr_len = IP_HDR_SIZE + net_set_ack_options(b); in tcp_set_tcp_header() 310 pkt_hdr_len = IP_HDR_SIZE + net_set_ack_options(b); in tcp_set_tcp_header() 319 tcp_len = pkt_len - IP_HDR_SIZE; in tcp_set_tcp_header() 640 int tcp_len = pkt_len - IP_HDR_SIZE; in rxhand_tcp_f() 654 if (tcp_rx_xsum != compute_ip_checksum(b, IP_HDR_SIZE)) { in rxhand_tcp_f()
|
| /u-boot/include/ |
| A D | net.h | 337 #define IP_HDR_SIZE (sizeof(struct ip_hdr)) macro 339 #define IP_MIN_FRAG_DATAGRAM_SIZE (IP_HDR_SIZE + 8) 362 #define UDP_HDR_SIZE (IP_UDP_HDR_SIZE - IP_HDR_SIZE) 435 #define IP_ICMP_HDR_SIZE (IP_HDR_SIZE + ICMP_HDR_SIZE)
|
| /u-boot/include/net/ |
| A D | tcp.h | 55 #define TCP_HDR_SIZE (IP_TCP_HDR_SIZE - IP_HDR_SIZE)
|
| /u-boot/drivers/net/ |
| A D | sandbox.c | 153 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/test/cmd/ |
| A D | wget.c | 144 pkt_len - IP_HDR_SIZE, in sb_ack_handler()
|
| /u-boot/lib/efi_selftest/ |
| A D | efi_selftest_snp.c | 124 p.ip_udp.ip_sum = efi_ip_checksum(&p.ip_udp, IP_HDR_SIZE); in send_dhcp_discover()
|
Completed in 26 milliseconds