diff options
author | Mikael Magnusson <mikma@users.sourceforge.net> | 2022-01-30 14:47:49 +0100 |
---|---|---|
committer | Mikael Magnusson <mikma@users.sourceforge.net> | 2023-11-12 23:50:07 +0100 |
commit | 45143e7d7ad17e149d4df8f5502a15c3222691e4 (patch) | |
tree | 57ad7add033e572dc0bdde65cf6021d290e060d1 /src/main/java/com/lumaserv/bgp/protocol/attribute/OriginAttribute.java | |
parent | ebec82011e1f83bd40f5bb94ea72c2552306e940 (diff) |
WIP build with ByteBuffer
Diffstat (limited to 'src/main/java/com/lumaserv/bgp/protocol/attribute/OriginAttribute.java')
-rw-r--r-- | src/main/java/com/lumaserv/bgp/protocol/attribute/OriginAttribute.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/com/lumaserv/bgp/protocol/attribute/OriginAttribute.java b/src/main/java/com/lumaserv/bgp/protocol/attribute/OriginAttribute.java index 9827bae..b8c996d 100644 --- a/src/main/java/com/lumaserv/bgp/protocol/attribute/OriginAttribute.java +++ b/src/main/java/com/lumaserv/bgp/protocol/attribute/OriginAttribute.java @@ -1,5 +1,7 @@ package com.lumaserv.bgp.protocol.attribute; +import java.nio.ByteBuffer; + import lombok.Getter; import lombok.Setter; @@ -40,8 +42,8 @@ public class OriginAttribute implements PathAttribute { return 1; } - public byte[] build() { - return new byte[0]; + public void build(ByteBuffer b) { + b.put(origin); } public String toString() { |