Home
last modified time | relevance | path

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

/openbmc/qemu/net/
H A Deth.c227 struct eth_header *new_ehdr = new_ehdr_buf; in eth_strip_vlan() local
230 new_ehdr, sizeof(*new_ehdr)); in eth_strip_vlan()
232 if (copied < sizeof(*new_ehdr)) { in eth_strip_vlan()
236 switch (be16_to_cpu(new_ehdr->h_proto)) { in eth_strip_vlan()
239 copied = iov_to_buf(iov, iovcnt, iovoff + sizeof(*new_ehdr), in eth_strip_vlan()
246 new_ehdr->h_proto = vlan_hdr.h_proto; in eth_strip_vlan()
249 *payload_offset = iovoff + sizeof(*new_ehdr) + sizeof(vlan_hdr); in eth_strip_vlan()
251 if (be16_to_cpu(new_ehdr->h_proto) == ETH_P_VLAN) { in eth_strip_vlan()
254 PKT_GET_VLAN_HDR(new_ehdr), sizeof(vlan_hdr)); in eth_strip_vlan()