diff options
author | Bill Fenner <fenner@gmail.com> | 2021-02-04 21:10:31 -0800 |
---|---|---|
committer | Denis Ovsienko <denis@ovsienko.info> | 2021-02-14 15:08:33 +0000 |
commit | 6c002d33c0be53140cf998d24413746979e14125 (patch) | |
tree | c641c953dc8eeebd7e5cb4d2d3d1221acc8328d7 /print-bfd.c | |
parent | 5d000b07738ee13d347d721d2492f739b212fdf5 (diff) | |
download | tcpdump-6c002d33c0be53140cf998d24413746979e14125.tar.gz |
BFD: add SBFD support (RFC7880 and RFC7881)
Add support for SBFD on UDP port 7784. SBFD is different
in that packets from the reflector will be sent with *source*
port 7784; in all other BFD mechanisms, it is only the
destination port that matters. For SBFD print-udp.c has to
check both source and destination port.
Diffstat (limited to 'print-bfd.c')
-rw-r--r-- | print-bfd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/print-bfd.c b/print-bfd.c index e28046e7..32dcbf20 100644 --- a/print-bfd.c +++ b/print-bfd.c @@ -147,6 +147,7 @@ static const struct tok bfd_port_values[] = { { BFD_CONTROL_PORT, "Control" }, { BFD_MULTIHOP_PORT, "Multihop" }, { BFD_LAG_PORT, "Lag" }, + { SBFD_PORT, "Sbfd" }, { 0, NULL } }; @@ -294,7 +295,8 @@ bfd_print(netdissect_options *ndo, const u_char *pptr, ndo->ndo_protocol = "bfd"; if (port == BFD_CONTROL_PORT || port == BFD_MULTIHOP_PORT || - port == BFD_LAG_PORT) { + port == BFD_LAG_PORT || + port == SBFD_PORT) { /* * Control packet. */ |