summaryrefslogtreecommitdiff
path: root/src/main/java/com/lumaserv/bgp/protocol/attribute/UnknownAttribute.java
diff options
context:
space:
mode:
authorJanHolger <jan@bebendorf.eu>2021-07-06 17:01:33 +0200
committerJanHolger <jan@bebendorf.eu>2021-07-06 17:01:33 +0200
commit1d26c0a20d3c595d2846de31c2034e27595540b1 (patch)
treed19fb1f538c0c0cd5e0db55e45e1f16230782aac /src/main/java/com/lumaserv/bgp/protocol/attribute/UnknownAttribute.java
Initial commit
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.java23
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;
+ }
+
+}