summaryrefslogtreecommitdiff
path: root/src/main/java/com/lumaserv/bgp/protocol/attribute/OriginAttribute.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/lumaserv/bgp/protocol/attribute/OriginAttribute.java')
-rw-r--r--src/main/java/com/lumaserv/bgp/protocol/attribute/OriginAttribute.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/main/java/com/lumaserv/bgp/protocol/attribute/OriginAttribute.java b/src/main/java/com/lumaserv/bgp/protocol/attribute/OriginAttribute.java
new file mode 100644
index 0000000..2bf1208
--- /dev/null
+++ b/src/main/java/com/lumaserv/bgp/protocol/attribute/OriginAttribute.java
@@ -0,0 +1,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];
+ }
+
+}