Searched refs:ip_header (Results 1 – 6 of 6) sorted by relevance
49 struct ip_header { struct201 ((struct ip_header *)(((uint8_t *)(p)) + eth_get_l2_hdr_length(p)))203 ((ldub_p(p + offsetof(struct ip_header, ip_ver_len)) & 0x0F) << 2)205 (ldub_p(p + offsetof(struct ip_header, ip_p)))376 struct ip_header ip4_hdr;410 eth_calc_ip4_pseudo_hdr_csum(struct ip_header *iphdr,
63 struct ip_header *ip; in net_checksum_calculate()100 if (length < sizeof(struct ip_header)) { in net_checksum_calculate()104 ip = (struct ip_header *)((uint8_t *)data + mac_hdr_len); in net_checksum_calculate()
42 struct ip_header *iphdr = (struct ip_header *) l3_hdr; in eth_get_gso_type()112 const struct ip_header *ip4_hdr, in _eth_tcp_has_data()151 struct ip_header *iphdr = &ip4hdr_info->ip4_hdr; in eth_get_protocols()321 struct ip_header *iphdr = (struct ip_header *) l3hdr; in eth_fix_ip4_checksum()327 eth_calc_ip4_pseudo_hdr_csum(struct ip_header *iphdr, in eth_calc_ip4_pseudo_hdr_csum()
49 struct ip_header ip;207 l3_hdr->iov_base, sizeof(struct ip_header)); in net_tx_pkt_parse_headers()209 if (bytes_read < sizeof(struct ip_header)) { in net_tx_pkt_parse_headers()216 if (l3_hdr->iov_len < sizeof(struct ip_header)) { in net_tx_pkt_parse_headers()223 if (IP_HDR_GET_LEN(l3_hdr->iov_base) != sizeof(struct ip_header)) { in net_tx_pkt_parse_headers()226 l2_hdr->iov_len + sizeof(struct ip_header), in net_tx_pkt_parse_headers()227 l3_hdr->iov_base + sizeof(struct ip_header), in net_tx_pkt_parse_headers()228 l3_hdr->iov_len - sizeof(struct ip_header)); in net_tx_pkt_parse_headers()229 if (bytes_read < l3_hdr->iov_len - sizeof(struct ip_header)) { in net_tx_pkt_parse_headers()647 struct ip_header *ip = l3hdr->iov_base; in net_tx_pkt_tcp_fragment_fix()[all …]
2074 if (saved_size < ETH_HLEN + sizeof(struct ip_header)) { in rtl8139_cplus_transmit_one()2079 struct ip_header *ip = NULL; in rtl8139_cplus_transmit_one()2103 ip = (struct ip_header*)eth_payload_data; in rtl8139_cplus_transmit_one()2113 if (hlen < sizeof(struct ip_header) || hlen > eth_payload_len) { in rtl8139_cplus_transmit_one()
248 struct ip_header *ip4_hdr = &pkt->ip4hdr_info.ip4_hdr; in _net_rx_rss_prepare_ip4()