Home
last modified time | relevance | path

Searched refs:ip_header (Results 1 – 9 of 9) sorted by relevance

/openbmc/qemu/include/net/
H A Deth.h49 struct ip_header { struct
201 ((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,
/openbmc/qemu/net/
H A Dchecksum.c63 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()
H A Deth.c42 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()
/openbmc/qemu/hw/net/
H A Dnet_tx_pkt.c49 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 …]
H A Dvirtio-net.c68 #define VIRTIO_NET_MAX_IP4_PAYLOAD (65535 - sizeof(struct ip_header))
1703 size_t csum_size = ETH_HLEN + sizeof(struct ip_header) + in receive_filter()
2082 struct ip_header *ip;
2084 ip = (struct ip_header *)(buf + chain->n->guest_hdr_len in virtio_net_rsc_purge()
2318 struct ip_header *ip1, *ip2; in virtio_net_rsc_tcp_ctrl_check()
2320 ip1 = (struct ip_header *)(unit->ip); in virtio_net_rsc_tcp_ctrl_check()
2321 ip2 = (struct ip_header *)(seg->unit.ip);
2455 struct ip_header *ip, in virtio_net_rsc_receive4()
2490 if (ip_len < (sizeof(struct ip_header) + sizeof(struct tcp_header)) in virtio_net_rsc_sanity_check6()
2510 if (size < (hdr_len + sizeof(struct eth_header) + sizeof(struct ip_header) in virtio_net_rsc_receive6()
[all...]
H A Drtl8139.c2074 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()
H A Dnet_rx_pkt.c248 struct ip_header *ip4_hdr = &pkt->ip4hdr_info.ip4_hdr; in _net_rx_rss_prepare_ip4()
/openbmc/qemu/hw/hyperv/
H A Dsyndbg.c83 if (curr_len < sizeof(struct ip_header) || in get_udb_pkt_data()
144 (sizeof(struct eth_header) + sizeof(struct ip_header) +\
163 (4 << 4) | (sizeof(struct ip_header) >> 2); in create_udp_pkt()
172 cpu_to_be16(sizeof(struct ip_header) + sizeof(struct udp_header) + in create_udp_pkt()
/openbmc/qemu/hw/net/rocker/
H A Drocker_of_dpa.c148 struct ip_header *ipv4hdr;
410 sofar += sizeof(struct ip_header); in of_dpa_flow_pkt_parse()
412 DPRINTF("flow_pkt_parse underrun on ip_header\n"); in of_dpa_flow_pkt_parse()
415 fields->ipv4hdr = (struct ip_header *)(fields->h_proto + 1); in of_dpa_flow_pkt_parse()