1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
package com.lumaserv.bgp.protocol.attribute; import lombok.Getter; import lombok.Setter; @Getter @Setter public class OriginAttribute implements PathAttribute { byte origin; public OriginAttribute(byte typeCode, byte[] data) { origin = data[0]; } public byte getTypeCode() { return 1; } public byte[] build() { return new byte[0]; } }