Revision 98835fe3 hw/e1000.c

b/hw/e1000.c
642 642

  
643 643
    if (vlan_enabled(s) && is_vlan_packet(s, buf)) {
644 644
        vlan_special = cpu_to_le16(be16_to_cpup((uint16_t *)(buf + 14)));
645
        memmove((void *)(buf + 4), buf, 12);
645
        memmove((uint8_t *)buf + 4, buf, 12);
646 646
        vlan_status = E1000_RXD_STAT_VP;
647 647
        vlan_offset = 4;
648 648
        size -= 4;

Also available in: Unified diff