Home
last modified time | relevance | path

Searched refs:eth_header (Results 1 – 17 of 17) sorted by relevance

/qemu/include/net/
H A Deth.h38 struct eth_header { struct
195 ((struct eth_header *)(p))
197 ((struct vlan_header *) (((uint8_t *)(p)) + sizeof(struct eth_header)))
240 (sizeof(struct eth_header) + 2 * sizeof(struct vlan_header))
287 get_eth_packet_type(const struct eth_header *ehdr) in get_eth_packet_type()
305 return sizeof(struct eth_header) + sizeof(struct vlan_header); in eth_get_l2_hdr_length()
308 return sizeof(struct eth_header) + 2 * sizeof(struct vlan_header); in eth_get_l2_hdr_length()
310 return sizeof(struct eth_header) + sizeof(struct vlan_header); in eth_get_l2_hdr_length()
313 return sizeof(struct eth_header); in eth_get_l2_hdr_length()
320 uint8_t p[sizeof(struct eth_header) + sizeof(struct vlan_header)]; in eth_get_l2_hdr_length_iov()
[all …]
/qemu/net/
H A Dchecksum.c73 if (length < sizeof(struct eth_header)) { in net_checksum_calculate()
80 mac_hdr_len = sizeof(struct eth_header) + in net_checksum_calculate()
85 mac_hdr_len = sizeof(struct eth_header) + in net_checksum_calculate()
88 mac_hdr_len = sizeof(struct eth_header) + in net_checksum_calculate()
93 mac_hdr_len = sizeof(struct eth_header); in net_checksum_calculate()
H A Deth.c24 void eth_setup_vlan_headers(struct eth_header *ehdr, size_t *ehdr_size, in eth_setup_vlan_headers()
227 struct eth_header *new_ehdr = new_ehdr_buf; in eth_strip_vlan()
262 return sizeof(struct eth_header) + sizeof(struct vlan_header); in eth_strip_vlan()
264 return sizeof(struct eth_header); in eth_strip_vlan()
284 new_ehdr_size = sizeof(struct eth_header); in eth_strip_vlan_ex()
290 new_ehdr_size = sizeof(struct eth_header) + sizeof(struct vlan_header); in eth_strip_vlan_ex()
H A Dcolo.c55 (pkt->size < sizeof(struct eth_header) + sizeof(struct vlan_header) + in parse_packet_early()
/qemu/hw/hyperv/
H A Dsyndbg.c75 if (curr_len < sizeof(struct eth_header) || in get_udb_pkt_data()
79 offset = sizeof(struct eth_header); in get_udb_pkt_data()
80 curr_len -= sizeof(struct eth_header); in get_udb_pkt_data()
143 (sizeof(struct eth_header) + sizeof(struct ip_header) +\
176 sizeof(struct eth_header) + in create_udp_pkt()
/qemu/tests/qtest/
H A De1000e-test.c39 static const struct eth_header packet = {
89 struct eth_header test_iov = packet; in e1000e_receive_verify()
H A Digb-test.c43 static const struct eth_header packet = {
92 struct eth_header test_iov = packet; in igb_receive_verify()
/qemu/hw/net/
H A De1000x_common.c79 bool e1000x_rx_group_filter(uint32_t *mac, const struct eth_header *ehdr) in e1000x_rx_group_filter()
143 size_t header_size = sizeof(struct eth_header) + sizeof(struct vlan_header); in e1000x_is_oversized()
H A De1000x_common.h112 bool e1000x_rx_group_filter(uint32_t *mac, const struct eth_header *ehdr);
H A Dvirtio-net.c2060 + sizeof(struct eth_header)); in virtio_net_rsc_extract_unit4()
2076 + sizeof(struct eth_header)); in virtio_net_rsc_extract_unit6()
2163 seg->buf = g_malloc(hdr_len + sizeof(struct eth_header) in virtio_net_rsc_cache_buf()
2467 sizeof(struct eth_header))) { in virtio_net_rsc_sanity_check4()
2502 ((hdr_len + sizeof(struct eth_header)) + 12), in virtio_net_rsc_receive4()
2529 ip_len > (size - chain->n->guest_hdr_len - sizeof(struct eth_header) in virtio_net_rsc_sanity_check6()
2571 ((hdr_len + sizeof(struct eth_header)) + 8), in virtio_net_rsc_receive6()
2573 hdr_len + sizeof(struct eth_header) in virtio_net_rsc_receive6()
2622 struct eth_header *eth; in virtio_net_rsc_receive()
2626 if (size < (n->host_hdr_len + sizeof(struct eth_header))) { in virtio_net_rsc_receive()
[all …]
H A Dnet_tx_pkt.c45 struct eth_header eth;
180 if (bytes_read < sizeof(struct eth_header)) { in net_tx_pkt_parse_headers()
185 l2_hdr->iov_len = sizeof(struct eth_header); in net_tx_pkt_parse_headers()
H A Dnet_rx_pkt.c28 struct eth_header eth;
H A Digb_core.c71 struct eth_header eth;
1007 static bool igb_rx_is_oversized(IGBCore *core, const struct eth_header *ehdr, in igb_rx_is_oversized()
1012 size_t header_size = sizeof(struct eth_header) + vlan_header_size; in igb_rx_is_oversized()
1023 const struct eth_header *ehdr = &l2_header->eth; in igb_receive_assign()
H A Dftgmac100.c506 if (frame_size < sizeof(struct eth_header)) { in ftgmac100_insert_vlan()
H A Dvmxnet3.c1933 struct eth_header *ehdr = PKT_GET_ETH_HDR(data); in vmxnet3_rx_filter_may_indicate()
/qemu/include/standard-headers/linux/
H A Dethtool.h1347 struct eth_header ether_spec;
1587 struct eth_header ether_spec;
/qemu/hw/net/rocker/
H A Drocker_of_dpa.c145 struct eth_header *ethhdr;
159 struct eth_header ethhdr_rewrite;
386 fc->iov[0].iov_len = sizeof(struct eth_header); in of_dpa_flow_pkt_hdr_reset()
398 sofar += sizeof(struct eth_header); in of_dpa_flow_pkt_parse()
494 memcpy(&fc->ethhdr_rewrite, fields->ethhdr, sizeof(struct eth_header)); in of_dpa_flow_pkt_hdr_rewrite()