summaryrefslogtreecommitdiff
path: root/src/main/java/com/lumaserv/bgp/protocol/attribute/UnknownAttribute.java
diff options
context:
space:
mode:
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.java6
1 files changed, 4 insertions, 2 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
index 69dae2d..222c9bf 100644
--- a/src/main/java/com/lumaserv/bgp/protocol/attribute/UnknownAttribute.java
+++ b/src/main/java/com/lumaserv/bgp/protocol/attribute/UnknownAttribute.java
@@ -4,6 +4,8 @@ import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;
+import java.nio.ByteBuffer;
+
@AllArgsConstructor
@Getter
@Setter
@@ -12,8 +14,8 @@ public class UnknownAttribute implements PathAttribute {
byte typeCode;
byte[] data;
- public byte[] build() {
- return data;
+ public void build(ByteBuffer b) {
+ b.put(b);
}
public byte getTypeCode() {