- public static final byte[] OFOUI = new byte[] {(byte)0x00, (byte)0x26, (byte)0xe1}; // OpenFlow OUI
- public static final byte[] customTlvSubType = new byte[] {0};
- public static final int customTlvOffset = OFOUI.length + customTlvSubType.length;
- public static final byte chassisIDSubType[] = new byte[] {4}; // MAC address for the system
- public static final byte portIDSubType[] = new byte[] {7}; // locally assigned
-
- public enum TLVType {
- Unknown ((byte)0),
- ChassisID ((byte)1),
- PortID ((byte)2),
- TTL ((byte)3),
- PortDesc ((byte)4),
- SystemName ((byte)5),
- SystemDesc ((byte)6),
- Custom ((byte)127);
-
- private byte value;
- private TLVType(byte value) {
- this.value = value;
- }
- public byte getValue() {
- return value;
- }
- }
+ public static final byte[] OFOUI = new byte[] { (byte) 0x00, (byte) 0x26,
+ (byte) 0xe1 }; // OpenFlow OUI
+ public static final byte[] customTlvSubType = new byte[] { 0 };
+ public static final int customTlvOffset = OFOUI.length
+ + customTlvSubType.length;
+ public static final byte chassisIDSubType[] = new byte[] { 4 }; // MAC address for the system
+ public static final byte portIDSubType[] = new byte[] { 7 }; // locally assigned
+
+ public enum TLVType {
+ Unknown((byte) 0), ChassisID((byte) 1), PortID((byte) 2), TTL((byte) 3), PortDesc(
+ (byte) 4), SystemName((byte) 5), SystemDesc((byte) 6), Custom(
+ (byte) 127);
+
+ private byte value;
+
+ private TLVType(byte value) {
+ this.value = value;
+ }
+
+ public byte getValue() {
+ return value;
+ }
+ }