Class DhcpPktHandler

  • All Implemented Interfaces:
    java.util.EventListener, org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.PacketProcessingListener, org.opendaylight.yangtools.yang.binding.NotificationListener

    @Singleton
    public class DhcpPktHandler
    extends java.lang.Object
    implements org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.PacketProcessingListener
    • Constructor Summary

      Constructors 
      Constructor Description
      DhcpPktHandler​(DhcpManager dhcpManager, DhcpExternalTunnelManager dhcpExternalTunnelManager, org.opendaylight.yang.gen.v1.urn.opendaylight.genius.interfacemanager.rpcs.rev160406.OdlInterfaceRpcService interfaceManagerRpc, org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.PacketProcessingService pktService, org.opendaylight.genius.interfacemanager.interfaces.IInterfaceManager interfaceManager, DhcpserviceConfig config, DhcpAllocationPoolManager dhcpAllocationPoolMgr, org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker, org.opendaylight.yang.gen.v1.urn.opendaylight.genius.itm.rpcs.rev160406.ItmRpcService itmRpcService, org.opendaylight.infrautils.metrics.MetricProvider metricProvider)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      short computeChecksum​(byte[] inData, byte[] srcAddr, byte[] destAddr)  
      protected @org.eclipse.jdt.annotation.NonNull byte[] convertToClasslessRouteOption​(java.lang.String dest, java.lang.String router)  
      protected @org.eclipse.jdt.annotation.Nullable byte[] getDhcpPacketOut​(DHCP reply, org.opendaylight.genius.mdsalutil.packet.Ethernet etherPkt, java.lang.String phyAddrees)  
      void onPacketReceived​(org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.PacketReceived packet)  
      void onPacketReceivedInternal​(org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.PacketReceived packet)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DhcpPktHandler

        @Inject
        public DhcpPktHandler​(DhcpManager dhcpManager,
                              DhcpExternalTunnelManager dhcpExternalTunnelManager,
                              org.opendaylight.yang.gen.v1.urn.opendaylight.genius.interfacemanager.rpcs.rev160406.OdlInterfaceRpcService interfaceManagerRpc,
                              org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.PacketProcessingService pktService,
                              org.opendaylight.genius.interfacemanager.interfaces.IInterfaceManager interfaceManager,
                              DhcpserviceConfig config,
                              DhcpAllocationPoolManager dhcpAllocationPoolMgr,
                              org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker,
                              org.opendaylight.yang.gen.v1.urn.opendaylight.genius.itm.rpcs.rev160406.ItmRpcService itmRpcService,
                              org.opendaylight.infrautils.metrics.MetricProvider metricProvider)
    • Method Detail

      • onPacketReceived

        public void onPacketReceived​(org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.PacketReceived packet)
        Specified by:
        onPacketReceived in interface org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.PacketProcessingListener
      • onPacketReceivedInternal

        public void onPacketReceivedInternal​(org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.PacketReceived packet)
      • getDhcpPacketOut

        protected @org.eclipse.jdt.annotation.Nullable byte[] getDhcpPacketOut​(DHCP reply,
                                                                               org.opendaylight.genius.mdsalutil.packet.Ethernet etherPkt,
                                                                               java.lang.String phyAddrees)
      • computeChecksum

        public short computeChecksum​(byte[] inData,
                                     byte[] srcAddr,
                                     byte[] destAddr)
      • convertToClasslessRouteOption

        protected @org.eclipse.jdt.annotation.NonNull byte[] convertToClasslessRouteOption​(java.lang.String dest,
                                                                                           java.lang.String router)