diff options
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.java | 18 |
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]; + } + +} |