]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: Use correct encoding before printing shutdown msg
authorDonatas Abraitis <donatas.abraitis@gmail.com>
Wed, 5 Jan 2022 13:05:04 +0000 (15:05 +0200)
committerDonatas Abraitis <donatas.abraitis@gmail.com>
Fri, 7 Jan 2022 20:35:38 +0000 (22:35 +0200)
commit202a171144d2c4735c5ca199bce5adda89272e11
tree9ae626e4996b187cf29245e399f4ec79c35686ac
parentb776f48c3658d9c3aae1034883a4a20ab40fa2bb
bgpd: Use correct encoding before printing shutdown msg

Using `bgp shutdown message MSG...`.

Length should be decoded from the first byte, but it's decoded from the data
instead.

Before:

```
%NOTIFICATION: sent to neighbor 192.168.0.2 6/2 (Cease/Administratively Shutdown) 70 bytes 5b 54 49 43 4b 45 54 2d 31 2d 31 34 33 38 33 36 37 33 39 30 5d 20 73
```

After:

```
%NOTIFICATION: sent to neighbor 192.168.0.2 6/2 (Cease/Administratively Shutdown) "[TICKET-1-1438367390] software upgrade; Expected downtime for 2 hours;"
```

On receiving side:

```
"[TICKET-1-1438367390] software upgrade; Expected downtime for 2 hours;"
```

Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
bgpd/bgpd.c