Searched refs:ip_header (Results 1 – 9 of 9) sorted by relevance
| /openbmc/qemu/include/net/ |
| H A D | eth.h | 49 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 D | checksum.c | 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()
|
| H A D | eth.c | 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()
|
| /openbmc/qemu/hw/net/ |
| H A D | net_tx_pkt.c | 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 …]
|
| H A D | virtio-net.c | 68 #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 D | rtl8139.c | 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()
|
| H A D | net_rx_pkt.c | 248 struct ip_header *ip4_hdr = &pkt->ip4hdr_info.ip4_hdr; in _net_rx_rss_prepare_ip4()
|
| /openbmc/qemu/hw/hyperv/ |
| H A D | syndbg.c | 83 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 D | rocker_of_dpa.c | 148 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()
|