Home
last modified time | relevance | path

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

/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,
/qemu/hw/net/
H A Dnet_tx_pkt.c49 struct ip_header ip;
211 l3_hdr->iov_base, sizeof(struct ip_header)); in net_tx_pkt_parse_headers()
213 if (bytes_read < sizeof(struct ip_header)) { in net_tx_pkt_parse_headers()
220 if (l3_hdr->iov_len < sizeof(struct ip_header)) { in net_tx_pkt_parse_headers()
227 if (IP_HDR_GET_LEN(l3_hdr->iov_base) != sizeof(struct ip_header)) { in net_tx_pkt_parse_headers()
230 l2_hdr->iov_len + sizeof(struct ip_header), in net_tx_pkt_parse_headers()
231 l3_hdr->iov_base + sizeof(struct ip_header), in net_tx_pkt_parse_headers()
233 if (bytes_read < l3_hdr->iov_len - sizeof(struct ip_header)) { in net_tx_pkt_parse_headers()
651 struct ip_header *ip = l3hdr->iov_base; in net_tx_pkt_tcp_fragment_fix()
675 struct ip_header *ip = l3hdr->iov_base; in net_tx_pkt_tcp_fragment_advance()
[all …]
H A Dvirtio-net.c67 #define VIRTIO_NET_MAX_IP4_PAYLOAD (65535 - sizeof(struct ip_header))
2046 struct ip_header *ip; in virtio_net_rsc_extract_unit4()
2048 ip = (struct ip_header *)(buf + chain->n->guest_hdr_len in virtio_net_rsc_extract_unit4()
2282 struct ip_header *ip1, *ip2; in virtio_net_rsc_coalesce4()
2284 ip1 = (struct ip_header *)(unit->ip); in virtio_net_rsc_coalesce4()
2285 ip2 = (struct ip_header *)(seg->unit.ip); in virtio_net_rsc_coalesce4()
2419 struct ip_header *ip, in virtio_net_rsc_sanity_check4()
2454 if (ip_len < (sizeof(struct ip_header) + sizeof(struct tcp_header)) in virtio_net_rsc_sanity_check4()
2474 if (size < (hdr_len + sizeof(struct eth_header) + sizeof(struct ip_header) in virtio_net_rsc_receive4()
2493 hdr_len + sizeof(struct eth_header) + sizeof(struct ip_header)); in virtio_net_rsc_receive4()
H A Drtl8139.c2075 if (saved_size < ETH_HLEN + sizeof(struct ip_header)) { in rtl8139_cplus_transmit_one()
2080 struct ip_header *ip = NULL; in rtl8139_cplus_transmit_one()
2104 ip = (struct ip_header*)eth_payload_data; in rtl8139_cplus_transmit_one()
2114 if (hlen < sizeof(struct ip_header) || hlen > eth_payload_len) { in rtl8139_cplus_transmit_one()
H A Dnet_rx_pkt.c254 struct ip_header *ip4_hdr = &pkt->ip4hdr_info.ip4_hdr; in _net_rx_rss_prepare_ip4()
/qemu/net/
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()
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 *)(data + mac_hdr_len); in net_checksum_calculate()
/qemu/hw/hyperv/
H A Dsyndbg.c82 if (curr_len < sizeof(struct ip_header) || in get_udb_pkt_data()
143 (sizeof(struct eth_header) + sizeof(struct ip_header) +\
162 (4 << 4) | (sizeof(struct ip_header) >> 2); in create_udp_pkt()
171 cpu_to_be16(sizeof(struct ip_header) + sizeof(struct udp_header) + in create_udp_pkt()
/qemu/hw/net/rocker/
H A Drocker_of_dpa.c148 struct ip_header *ipv4hdr;
419 sofar += sizeof(struct ip_header); in of_dpa_flow_pkt_parse()
424 fields->ipv4hdr = (struct ip_header *)(fields->h_proto + 1); in of_dpa_flow_pkt_parse()