summaryrefslogtreecommitdiff
path: root/src/main/java/com/lumaserv/bgp/protocol/message/BGPNotification.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/lumaserv/bgp/protocol/message/BGPNotification.java')
-rw-r--r--src/main/java/com/lumaserv/bgp/protocol/message/BGPNotification.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/main/java/com/lumaserv/bgp/protocol/message/BGPNotification.java b/src/main/java/com/lumaserv/bgp/protocol/message/BGPNotification.java
new file mode 100644
index 0000000..54ee9bd
--- /dev/null
+++ b/src/main/java/com/lumaserv/bgp/protocol/message/BGPNotification.java
@@ -0,0 +1,18 @@
+package com.lumaserv.bgp.protocol.message;
+
+import lombok.Getter;
+import lombok.Setter;
+
+@Getter
+@Setter
+public class BGPNotification {
+
+ byte majorErrorCode;
+ byte minorErrorCode;
+
+ public BGPNotification(byte[] message) {
+ this.majorErrorCode = message[0];
+ this.minorErrorCode = message[1];
+ }
+
+}