Searched refs:IP_HDR_SIZE (Results 1 – 4 of 4) sorted by relevance
26 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()
849 #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()
380 #define IP_HDR_SIZE (sizeof(struct ip_hdr)) macro403 #define UDP_HDR_SIZE (IP_UDP_HDR_SIZE - IP_HDR_SIZE)476 #define IP_ICMP_HDR_SIZE (IP_HDR_SIZE + ICMP_HDR_SIZE)
141 IP_HDR_SIZE); in sb_eth_send()