## Uses of Class
com.h3c.util.pkt.ProtocolId

- Packages that use ProtocolId
  Package | Description
  --- | ---
  com.h3c.of.ctl | Public API for the OpenFlow Controller.
  com.h3c.of.ctl.pkt | Public API for the OpenFlow Packet Sequencer and participating Packet Listeners.
  com.h3c.sdn.diag | Definitions of the path diagnostic service.
  com.h3c.util.pkt |

- - ### Uses of ProtocolId in com.h3c.of.ctl

    Method parameters in com.h3c.of.ctl with type arguments of type ProtocolId
    Modifier and Type | Method and Description
    --- | ---
    `void` | ControllerService.`addPacketListener(SequencedPacketListener listener, PacketListenerRole role, int altitude, Set<ProtocolId> interest)` Adds the specified packet listener to the sequencer, in the specified role and at the specified altitude.
    `void` | ControllerServiceAdapter.`addPacketListener(SequencedPacketListener listener, PacketListenerRole role, int altitude, Set<ProtocolId> interest)`

  - ### Uses of ProtocolId in com.h3c.of.ctl.pkt

    Methods in com.h3c.of.ctl.pkt that return types with arguments of type ProtocolId
    Modifier and Type | Method and Description
    --- | ---
    `List<ProtocolId>` | MessageContext.`getProtocols()` Returns an ordered list of `protocols` decoded from the packet.
    `List<ProtocolId>` | MessageContextAdapter.`getProtocols()`

    Method parameters in com.h3c.of.ctl.pkt with type arguments of type ProtocolId
    Modifier and Type | Method and Description
    --- | ---
    `void` | PacketSequencer.`addPacketListener(SequencedPacketListener listener, PacketListenerRole role, int altitude, Set<ProtocolId> interest)` Adds the specified packet listener to the sequencer, in the specified role and at the specified altitude.

  - ### Uses of ProtocolId in com.h3c.sdn.diag

    Methods in com.h3c.sdn.diag with parameters of type ProtocolId
    Modifier and Type | Method and Description
    --- | ---
    `Set<DataPathId>` | PathDiagnosticService.`getObservationPosts(String pid, ProtocolId packetType)` Returns the identity of all the observation posts for a given packet model ID.
    `List<PacketModel>` | PathDiagnosticService.`getPacketModels(ProtocolId packetType)` Returns all registered packet models present in the system.

  - ### Uses of ProtocolId in com.h3c.util.pkt

    Methods in com.h3c.util.pkt that return ProtocolId
    Modifier and Type | Method and Description
    --- | ---
    `ProtocolId` | UnknownProtocol.`id()`
    `ProtocolId` | Udp.`id()`
    `ProtocolId` | Tcp.`id()`
    `ProtocolId` | Sctp.`id()`
    `ProtocolId` | Protocol.`id()` Returns the protocol ID.
    `ProtocolId` | PppEthernet.`id()`
    `ProtocolId` | Mpls.`id()`
    `ProtocolId` | Lldp.`id()`
    `ProtocolId` | IpV6.`id()`
    `ProtocolId` | Ip.`id()`
    `ProtocolId` | IcmpV6.`id()`
    `ProtocolId` | Icmp.`id()`
    `ProtocolId` | Ethernet.`id()`
    `ProtocolId` | Dns.`id()`
    `ProtocolId` | DhcpV6.`id()`
    `ProtocolId` | Dhcp.`id()`
    `ProtocolId` | Bddp.`id()`
    `ProtocolId` | Arp.`id()`
    `ProtocolId` | Packet.`innermostId()` Returns the innermost layer protocol ID (highest in the the network stack).
    `static ProtocolId` | ProtocolId.`valueOf(String name)` Returns the enum constant of this type with the specified name.
    `static ProtocolId[]` | ProtocolId.`values()` Returns an array containing the constants of this enum type, in the order they are declared.

    Methods in com.h3c.util.pkt that return types with arguments of type ProtocolId
    Modifier and Type | Method and Description
    --- | ---
    `List<ProtocolId>` | Packet.`protocolIds()` Returns a list of protocol IDs from the outermost to innermost layer.

    Methods in com.h3c.util.pkt with parameters of type ProtocolId
    Modifier and Type | Method and Description
    --- | ---
    `static long` | Packet.`computeProtocolMask(ProtocolId... protocols)` Computes the mask of all protocol IDs.
    `<P extends Protocol> P` | Packet.`get(ProtocolId id)` Returns the protocol with the given protocol ID.
    `boolean` | Packet.`has(ProtocolId id)` Returns true if the protocols corresponding to the given ID is contained in the packet.
    `boolean` | Packet.`hasAll(ProtocolId... ids)` Returns true if all the protocols corresponding to the IDs are contained in the packet.
    `boolean` | Packet.`hasAny(ProtocolId... ids)` Returns true if any of the protocols corresponding to the IDs are contained in the packet.

Copyright © 2014. All Rights Reserved.