]> The Tcpdump Group git mirrors - tcpdump/commit
Fix dissection of RFC 4684 routing information.
authorGuy Harris <[email protected]>
Tue, 4 Sep 2018 18:09:41 +0000 (11:09 -0700)
committerGuy Harris <[email protected]>
Tue, 4 Sep 2018 18:09:41 +0000 (11:09 -0700)
commit12f570c35c1edb9d2c7a1b4062b834b0315e3b1a
treed970ce9bbb6ca1b9b65be1f347536c437dd99021
parent46efa1bc471eb50b7356d3385d270c9dcb6692c4
Fix dissection of RFC 4684 routing information.

RFC 4684, sadly, doesn't do a very good job of describing what a "route
target" is.  In practice, it appears to be a Route Target extended
community, as per RFC 4360 section 4 "Route Target Community".  Those do
*not* have the same format as an RFC 4364 Route Descriptor.

So just take the code to dissect an extended community, put it in a
subroutine, change it to directly print information rather than filling
in a static string buffer (C support for strings is spectacularly bad -
large variable-length objects are hard, let's go shopping!), and call
that routine when dissecting RFC 4684 routing information.
print-bgp.c