Skip to content

Commit

Permalink
bfdd: align max name length with vrf name size
Browse files Browse the repository at this point in the history
max name length is used for defining the maximum size for vrf attribute.
it appears that the size is not enough to align with real vrf name size.
so align with default vrf value.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
  • Loading branch information
pguibert6WIND committed Sep 30, 2019
1 parent 54bfd98 commit b02ce68
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bfdd/bfdctl.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ struct sockaddr_any {
};

#ifndef MAXNAMELEN
#define MAXNAMELEN 32
/* aligned with VRF_NAMSIZ + 1 defined in vrf.h */
#define MAXNAMELEN 37
#endif

#define BPC_DEF_DETECTMULTIPLIER 3
Expand Down

0 comments on commit b02ce68

Please sign in to comment.