SSF.OS
Class Protocols
java.lang.Object
|
+--SSF.OS.Protocols
- public class Protocols
- extends java.lang.Object
Static (global) information about supported protocol names and numbers.
|
Method Summary |
static int |
getProtocolByName(java.lang.String pname)
Return the protocol number associated with the named protocol. |
static java.lang.String |
getProtocolByNumber(int pnum)
Return the name of the protocol associated with the given number. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UNKNOWN_PRTL_NUM
public static final byte UNKNOWN_PRTL_NUM
- See Also:
- Constant Field Values
ICMP_PRTL_NUM
public static final byte ICMP_PRTL_NUM
- See Also:
- Constant Field Values
TCP_PRTL_NUM
public static final byte TCP_PRTL_NUM
- See Also:
- Constant Field Values
UDP_PRTL_NUM
public static final byte UDP_PRTL_NUM
- See Also:
- Constant Field Values
OSPF_PRTL_NUM
public static final byte OSPF_PRTL_NUM
- See Also:
- Constant Field Values
BGP_PRTL_NUM
public static final byte BGP_PRTL_NUM
- See Also:
- Constant Field Values
APP_PRTL_NUM
public static final byte APP_PRTL_NUM
- See Also:
- Constant Field Values
TEST_PRTL_NUM
public static final byte TEST_PRTL_NUM
- See Also:
- Constant Field Values
Protocols
public Protocols()
getProtocolByName
public static int getProtocolByName(java.lang.String pname)
- Return the protocol number associated with the named protocol.
getProtocolByNumber
public static java.lang.String getProtocolByNumber(int pnum)
- Return the name of the protocol associated with the given number.