Package org.pcap4j.packet.IcmpV6RouterAdvertisementPacket

Examples of org.pcap4j.packet.IcmpV6RouterAdvertisementPacket.IcmpV6RouterAdvertisementHeader


    }
  }

  @Test
  public void testGetHeader() {
    IcmpV6RouterAdvertisementHeader h = packet.getHeader();
    assertEquals(curHopLimit, h.getCurHopLimit());
    assertEquals(managedAddressConfigurationFlag, h.getManagedAddressConfigurationFlag());
    assertEquals(otherConfigurationFlag, h.getOtherConfigurationFlag());
    assertEquals(reserved, h.getReserved());
    assertEquals(routerLifetime, h.getRouterLifetime());
    assertEquals(reachableTime, h.getReachableTime());
    assertEquals(retransTimer, h.getRetransTimer());
    Iterator<IpV6NeighborDiscoveryOption> iter = h.getOptions().iterator();
    for (IpV6NeighborDiscoveryOption expected: options) {
      IpV6NeighborDiscoveryOption actual = iter.next();
      assertEquals(expected, actual);
    }
View Full Code Here

TOP

Related Classes of org.pcap4j.packet.IcmpV6RouterAdvertisementPacket.IcmpV6RouterAdvertisementHeader

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.