diff options
Diffstat (limited to 'src/main/java/com/lumaserv/bgp/protocol/attribute/UnknownAttribute.java')
-rw-r--r-- | src/main/java/com/lumaserv/bgp/protocol/attribute/UnknownAttribute.java | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/main/java/com/lumaserv/bgp/protocol/attribute/UnknownAttribute.java b/src/main/java/com/lumaserv/bgp/protocol/attribute/UnknownAttribute.java new file mode 100644 index 0000000..9dbe0f9 --- /dev/null +++ b/src/main/java/com/lumaserv/bgp/protocol/attribute/UnknownAttribute.java @@ -0,0 +1,23 @@ +package com.lumaserv.bgp.protocol.attribute; + +import lombok.AllArgsConstructor; +import lombok.Getter; +import lombok.Setter; + +@AllArgsConstructor +@Getter +@Setter +public class UnknownAttribute implements PathAttribute { + + byte typeCode; + byte[] data; + + public byte[] build() { + return data; + } + + public byte getTypeCode() { + return typeCode; + } + +} |