diff options
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() { |