Interface NeighbourMessageActions


  • public interface NeighbourMessageActions
    Performs actions on a neighbour message contexts.
    • Method Detail

      • reply

        void reply​(NeighbourMessageContext context,
                   MacAddress targetMac)
        Replies to an incoming request with the given MAC address.
        Parameters:
        context - incoming message context
        targetMac - target MAC address.
      • forward

        void forward​(NeighbourMessageContext context,
                     ConnectPoint outPort)
        Forwards the incoming message to the given connect point.
        Parameters:
        context - incoming message context
        outPort - port to send the message out
      • forward

        void forward​(NeighbourMessageContext context,
                     Interface outIntf)
        Forwards the incoming message to a given interface. The message will be modified to fit the parameters of the outgoing interface.
        Parameters:
        context - incoming message context
        outIntf - interface to send the message out
      • flood

        void flood​(NeighbourMessageContext context)
        Floods the incoming message to all edge ports except the in port.
        Parameters:
        context - incoming message context
      • drop

        void drop​(NeighbourMessageContext context)
        Drops the incoming message.
        Parameters:
        context - incoming message context