diff options
| author | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2018-08-29 17:13:46 -0300 | 
|---|---|---|
| committer | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2018-09-03 10:41:33 -0300 | 
| commit | 40675ea908eec9f3735219a44617371519f41d67 (patch) | |
| tree | 5c22c59ee152e16f44572268469bad125ac771fb /bfdd/bfdd.c | |
| parent | 50571b2ee7c2c7f8f140cd099ff7a62ee33ceba4 (diff) | |
bfdd: enumerate all diagnositic codes
Enumerate all codes, update the string representation and fix the
misdiagnosed echo failure.
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Diffstat (limited to 'bfdd/bfdd.c')
| -rw-r--r-- | bfdd/bfdd.c | 19 | 
1 files changed, 12 insertions, 7 deletions
diff --git a/bfdd/bfdd.c b/bfdd/bfdd.c index 44a29861b7..9c75e103e7 100644 --- a/bfdd/bfdd.c +++ b/bfdd/bfdd.c @@ -130,17 +130,22 @@ static struct option longopts[] = {  struct bfd_global bglobal;  struct bfd_diag_str_list diag_list[] = { -	{.str = "NeighDown", .type = BFD_DIAGNEIGHDOWN}, -	{.str = "DetectTime", .type = BFD_DIAGDETECTTIME}, -	{.str = "AdminDown", .type = BFD_DIAGADMINDOWN}, +	{.str = "control-expired", .type = BD_CONTROL_EXPIRED}, +	{.str = "echo-failed", .type = BD_ECHO_FAILED}, +	{.str = "neighbor-down", .type = BD_NEIGHBOR_DOWN}, +	{.str = "forwarding-reset", .type = BD_FORWARDING_RESET}, +	{.str = "path-down", .type = BD_PATH_DOWN}, +	{.str = "concatenated-path-down", .type = BD_CONCATPATH_DOWN}, +	{.str = "administratively-down", .type = BD_ADMIN_DOWN}, +	{.str = "reverse-concat-path-down", .type = BD_REVCONCATPATH_DOWN},  	{.str = NULL},  };  struct bfd_state_str_list state_list[] = { -	{.str = "AdminDown", .type = PTM_BFD_ADM_DOWN}, -	{.str = "Down", .type = PTM_BFD_DOWN}, -	{.str = "Init", .type = PTM_BFD_INIT}, -	{.str = "Up", .type = PTM_BFD_UP}, +	{.str = "admin-down", .type = PTM_BFD_ADM_DOWN}, +	{.str = "down", .type = PTM_BFD_DOWN}, +	{.str = "init", .type = PTM_BFD_INIT}, +	{.str = "up", .type = PTM_BFD_UP},  	{.str = NULL},  };  | 
