package com.lumaserv.bgp.protocol.attribute; import lombok.Getter; import lombok.Setter; import java.util.ArrayList; import java.util.List; @Getter @Setter public class ASPathAttribute implements PathAttribute { List segments = new ArrayList<>(); public ASPathAttribute(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<>(); } }