}
@Test
public void findIPStartEN10MB_8021Q() {
byte[] packet = new byte[20];
PcapReader xreader = new PcapReader(PcapReader.LinkType.EN10MB);
byte[] ethernetType8021Q = PcapReaderUtil.convertShort(PcapReader.ETHERNET_TYPE_8021Q);
packet[12] = ethernetType8021Q[0];
packet[13] = ethernetType8021Q[1];
byte[] ethernetTypeIp = PcapReaderUtil.convertShort(PcapReader.ETHERNET_TYPE_IP);
packet[16] = ethernetTypeIp[0];
packet[17] = ethernetTypeIp[1];
assertEquals(18, xreader.findIPStart(packet));
}