]> The Tcpdump Group git mirrors - tcpdump/commit
bgp: Decode BGP link-bandwidth extended community properly
authorDonatas Abraitis <[email protected]>
Wed, 22 Sep 2021 08:30:06 +0000 (11:30 +0300)
committerDenis Ovsienko <[email protected]>
Sat, 9 Oct 2021 16:19:58 +0000 (17:19 +0100)
commit31c9c8736bf471385c41f532d96faf50a9ef62d1
treeb29713d0df7d6aeb66c9792a1ec26ddbbacd6c30
parent010b971cea1ce7aef1ce774b81f9594989adb878
bgp: Decode BGP link-bandwidth extended community properly

First two bytes are reserved for AS.

Before:
```
  Extended Community (16), length: 8, Flags [OT]:
    link-BW (0x4004), Flags [non-transitive]: bandwidth: -308754489798474897524123005616128.000 Mbps
    0x0000:  4004 fde8 47f4 2400
  Updated routes:
    192.168.10.0/23
```

After:
```
  Extended Community (16), length: 8, Flags [OT]:
    link-BW (0x4004), Flags [non-transitive]: bandwidth: 1.000 Mbps
    0x0000:  4004 fde8 47f4 2400
  Updated routes:
    192.168.10.0/23
```

Signed-off-by: Donatas Abraitis <[email protected]>
print-bgp.c