diff options
author | JanHolger <jan@bebendorf.eu> | 2021-11-30 21:08:47 +0100 |
---|---|---|
committer | JanHolger <jan@bebendorf.eu> | 2021-11-30 21:08:47 +0100 |
commit | 7498460d25ccae73b717f43653778624ce0daed0 (patch) | |
tree | e92b90d5d81c4be4594eae2ff59ce342883cef9e /src/main/java/com/lumaserv/bgp/protocol | |
parent | 4912be906f7663960474a34a3ba04c6c227dc91a (diff) |
Fixed a few issues
Diffstat (limited to 'src/main/java/com/lumaserv/bgp/protocol')
4 files changed, 10 insertions, 1 deletions
diff --git a/src/main/java/com/lumaserv/bgp/protocol/attribute/AS4PathAttribute.java b/src/main/java/com/lumaserv/bgp/protocol/attribute/AS4PathAttribute.java index 415dd5f..796fbea 100644 --- a/src/main/java/com/lumaserv/bgp/protocol/attribute/AS4PathAttribute.java +++ b/src/main/java/com/lumaserv/bgp/protocol/attribute/AS4PathAttribute.java @@ -6,6 +6,8 @@ import lombok.Setter; import java.util.ArrayList; import java.util.List; +@Getter +@Setter public class AS4PathAttribute implements PathAttribute { List<Segment> segments = new ArrayList<>(); diff --git a/src/main/java/com/lumaserv/bgp/protocol/attribute/ASPathAttribute.java b/src/main/java/com/lumaserv/bgp/protocol/attribute/ASPathAttribute.java index 64be45b..d6f14ea 100644 --- a/src/main/java/com/lumaserv/bgp/protocol/attribute/ASPathAttribute.java +++ b/src/main/java/com/lumaserv/bgp/protocol/attribute/ASPathAttribute.java @@ -6,6 +6,8 @@ import lombok.Setter; import java.util.ArrayList; import java.util.List; +@Getter +@Setter public class ASPathAttribute implements PathAttribute { List<Segment> segments = new ArrayList<>(); diff --git a/src/main/java/com/lumaserv/bgp/protocol/attribute/AggregatorAttribute.java b/src/main/java/com/lumaserv/bgp/protocol/attribute/AggregatorAttribute.java index 8a3dfdb..25f3e70 100644 --- a/src/main/java/com/lumaserv/bgp/protocol/attribute/AggregatorAttribute.java +++ b/src/main/java/com/lumaserv/bgp/protocol/attribute/AggregatorAttribute.java @@ -7,7 +7,7 @@ import lombok.Setter; @Setter public class AggregatorAttribute implements PathAttribute { - int as; + final int as; byte[] origin; public AggregatorAttribute(byte typeCode, byte[] data) { diff --git a/src/main/java/com/lumaserv/bgp/protocol/attribute/NextHopAttribute.java b/src/main/java/com/lumaserv/bgp/protocol/attribute/NextHopAttribute.java index f60d236..14d5367 100644 --- a/src/main/java/com/lumaserv/bgp/protocol/attribute/NextHopAttribute.java +++ b/src/main/java/com/lumaserv/bgp/protocol/attribute/NextHopAttribute.java @@ -1,5 +1,10 @@ package com.lumaserv.bgp.protocol.attribute; +import lombok.Getter; +import lombok.Setter; + +@Getter +@Setter public class NextHopAttribute implements PathAttribute { byte[] address; |