Package org.pcap4j.packet.namednumber

Examples of org.pcap4j.packet.namednumber.DataLinkType


    // TODO fail("not yet implemented");
  }

  @Test
  public void testDataLinkNameToVal() throws Exception {
    DataLinkType dlt = Pcaps.dataLinkNameToVal("EN10MB");
    assertEquals(DataLinkType.EN10MB, dlt);

    dlt = Pcaps.dataLinkNameToVal("PPP");
    assertEquals(DataLinkType.PPP, dlt);
  }
View Full Code Here

TOP

Related Classes of org.pcap4j.packet.namednumber.DataLinkType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.