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.


Field Summary
static byte APP_PRTL_NUM
           
static byte BGP_PRTL_NUM
           
static byte ICMP_PRTL_NUM
           
static byte OSPF_PRTL_NUM
           
static byte TCP_PRTL_NUM
           
static byte TEST_PRTL_NUM
           
static byte UDP_PRTL_NUM
           
static byte UNKNOWN_PRTL_NUM
           
 
Constructor Summary
Protocols()
           
 
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
 

Field Detail

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
Constructor Detail

Protocols

public Protocols()
Method Detail

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.