static const struct tok bfd_port_values[] = {
{ BFD_CONTROL_PORT, "Control" },
{ BFD_MULTIHOP_PORT, "Multihop" },
- { BFD_LAG_PORT, "Lag" },
+ { BFD_LAG_PORT, "LAG" },
+ { SBFD_PORT, "S-BFD" },
{ 0, NULL }
};
pptr++;
ND_PRINT(", Password: ");
/* the length is equal to the password length plus three */
- (void)nd_printn(ndo, pptr, auth_len - 3, NULL);
+ nd_printjn(ndo, pptr, auth_len - 3);
break;
case AUTH_MD5:
case AUTH_MET_MD5:
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.
*/
/* BFDv0 */
case 0:
- if (ndo->ndo_vflag < 1)
- {
+ if (ndo->ndo_vflag < 1) {
ND_PRINT("BFDv0, Control, Flags: [%s], length: %u",
bittok2str(bfd_v0_flag_values, "none", flags),
len);
/* BFDv1 */
case 1:
- if (ndo->ndo_vflag < 1)
- {
+ if (ndo->ndo_vflag < 1) {
ND_PRINT("BFDv1, %s, State %s, Flags: [%s], length: %u",
tok2str(bfd_port_values, "unknown (%u)", port),
tok2str(bfd_v1_state_values, "unknown (%u)", (flags & 0xc0) >> 6),