Searched refs:eth_header (Results 1 – 17 of 17) sorted by relevance
38 struct eth_header { struct195 ((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 …]
73 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()
24 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()
55 (pkt->size < sizeof(struct eth_header) + sizeof(struct vlan_header) + in parse_packet_early()
76 if (curr_len < sizeof(struct eth_header) || in get_udb_pkt_data() 80 offset = sizeof(struct eth_header); in get_udb_pkt_data() 81 curr_len -= sizeof(struct eth_header); in get_udb_pkt_data() 144 (sizeof(struct eth_header) + sizeof(struct ip_header) +\177 sizeof(struct eth_header) + in create_udp_pkt()
43 static const struct eth_header packet = {92 struct eth_header test_iov = packet; in igb_receive_verify()
39 static const struct eth_header packet = {89 struct eth_header test_iov = packet; in e1000e_receive_verify()
79 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()
112 bool e1000x_rx_group_filter(uint32_t *mac, const struct eth_header *ehdr);
2085 + sizeof(struct eth_header)); in virtio_net_rsc_purge() 2101 + sizeof(struct eth_header));2188 seg->buf = g_malloc(hdr_len + sizeof(struct eth_header)2492 sizeof(struct eth_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() 2527 ((hdr_len + sizeof(struct eth_header)) + 12), in virtio_net_rsc_receive6() 2529 hdr_len + sizeof(struct eth_header) + sizeof(struct ip_header)); in virtio_net_rsc_receive6() 2554 ip_len > (size - chain->n->guest_hdr_len - sizeof(struct eth_header) in virtio_net_rsc_lookup_chain() 2580 if (size < (hdr_len + sizeof(struct eth_header) + sizeof(struct ip6_header) in virtio_net_rsc_lookup_chain() 2596 ((hdr_len + sizeof(struct eth_header)) in virtio_net_rsc_receive() [all...]
45 struct eth_header eth;176 if (bytes_read < sizeof(struct eth_header)) { in net_tx_pkt_parse_headers()181 l2_hdr->iov_len = sizeof(struct eth_header); in net_tx_pkt_parse_headers()
28 struct eth_header eth;
71 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()
506 if (frame_size < sizeof(struct eth_header)) { in ftgmac100_insert_vlan()
1917 struct eth_header *ehdr = PKT_GET_ETH_HDR(data); in vmxnet3_rx_filter_may_indicate()
1351 struct eth_header ether_spec;1591 struct eth_header ether_spec;
145 struct eth_header *ethhdr;159 struct eth_header ethhdr_rewrite;377 fc->iov[0].iov_len = sizeof(struct eth_header); in of_dpa_flow_alloc() 389 sofar += sizeof(struct eth_header); in of_dpa_flow_pkt_hdr_reset() 391 DPRINTF("flow_pkt_parse underrun on eth_header\n"); in of_dpa_flow_pkt_parse() 485 memcpy(&fc->ethhdr_rewrite, fields->ethhdr, sizeof(struct eth_header)); in of_dpa_flow_pkt_strip_vlan()