package com.lumaserv.bgp.protocol.attribute; import lombok.Getter; import lombok.Setter; import java.nio.ByteBuffer; import java.util.ArrayList; import java.util.List; @Getter @Setter public class AS4PathAttribute implements PathAttribute { List segments = new ArrayList<>(); public AS4PathAttribute(byte typeCode, byte[] data) { int offset = 0; while (offset < data.length) { Segment segment = new Segment().setType(data[offset]); byte length = data[offset + 1]; for(int i=0; i asns = new ArrayList<>(); } }