diff options
| author | Donatas Abraitis <donatas.abraitis@gmail.com> | 2020-03-15 14:19:11 +0200 |
|---|---|---|
| committer | Donatas Abraitis <donatas.abraitis@gmail.com> | 2020-03-16 09:22:22 +0200 |
| commit | 3893aeeea3f7c3f0d83e428f23f02fcc02568b1c (patch) | |
| tree | 633b55231a558cedcdc31a4a7e21e34a7d889342 /python | |
| parent | 7d76c335d8c3076cbd76284dd82855872c633a15 (diff) | |
bgpd: Add subcodes for BGP Finite State Machine Error
Implement https://tools.ietf.org/html/rfc6608
I used python scapy library to send a notification message in OpenSent state:
```
send(IP(dst="192.168.0.1")/TCP(sport=sp,
dport=179,
seq=rec.ack,
ack=rec.seq + 1,
flags=0x18)/BGPHeader(type=3)/BGPNotification(error_code=4,
error_subcode=0))
```
Logs from FRR:
```
%NOTIFICATION: sent to neighbor 192.168.0.2 5/1 (Neighbor Events Error/Receive Unexpected Message in OpenSent State) 0 bytes
```
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Diffstat (limited to 'python')
0 files changed, 0 insertions, 0 deletions
