Search in sources :

Example 6 with MsgType

use of org.onlab.packet.DHCP6.MsgType in project onos by opennetworkinglab.

the class Dhcp6HandlerUtil method getDhcp6LeafMessageType.

/**
 * Determine DHCP message type (direct DHCPv6 or wrapped into relay messages).
 *
 * @param relayPacket {@link DHCP6} packet to be parsed
 * @return {@link DHCP6.MsgType} contained message type of dhcpv6 packet/relay-message
 */
public static DHCP6.MsgType getDhcp6LeafMessageType(DHCP6 relayPacket) {
    checkNotNull(relayPacket);
    DHCP6 dhcp6Child = getDhcp6Leaf(relayPacket);
    return DHCP6.MsgType.getType(dhcp6Child != null ? dhcp6Child.getMsgType() : relayPacket.getMsgType());
}
Also used : DHCP6(org.onlab.packet.DHCP6)

Aggregations

DHCP6 (org.onlab.packet.DHCP6)6 MsgType (org.onlab.packet.DHCP6.MsgType)2 IpAddress (org.onlab.packet.IpAddress)2 MacAddress (org.onlab.packet.MacAddress)2 DhcpRecord (org.onosproject.dhcprelay.store.DhcpRecord)2 Route (org.onosproject.routeservice.Route)2 Ethernet (org.onlab.packet.Ethernet)1 IPv6 (org.onlab.packet.IPv6)1 IpPrefix (org.onlab.packet.IpPrefix)1 UDP (org.onlab.packet.UDP)1 VlanId (org.onlab.packet.VlanId)1 Dhcp6ClientIdOption (org.onlab.packet.dhcp.Dhcp6ClientIdOption)1 ConnectPoint (org.onosproject.net.ConnectPoint)1 Host (org.onosproject.net.Host)1 HostId (org.onosproject.net.HostId)1 HostLocation (org.onosproject.net.HostLocation)1 DefaultHostDescription (org.onosproject.net.host.DefaultHostDescription)1 HostDescription (org.onosproject.net.host.HostDescription)1 Interface (org.onosproject.net.intf.Interface)1 FpmRecord (org.onosproject.routing.fpm.api.FpmRecord)1