diff options
Diffstat (limited to 'src/main/java/com/lumaserv/bgp/protocol/attribute/PathAttribute.java')
-rw-r--r-- | src/main/java/com/lumaserv/bgp/protocol/attribute/PathAttribute.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/com/lumaserv/bgp/protocol/attribute/PathAttribute.java b/src/main/java/com/lumaserv/bgp/protocol/attribute/PathAttribute.java index 4a10daa..95156ed 100644 --- a/src/main/java/com/lumaserv/bgp/protocol/attribute/PathAttribute.java +++ b/src/main/java/com/lumaserv/bgp/protocol/attribute/PathAttribute.java @@ -1,9 +1,11 @@ package com.lumaserv.bgp.protocol.attribute; +import java.nio.ByteBuffer; + public interface PathAttribute { byte getTypeCode(); - byte[] build(); + void build(ByteBuffer b); static PathAttribute from(byte typeCode, byte[] data) { switch (typeCode & 0xFF) { |