mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-03 06:59:21 +00:00
Merge pull request #7336 from donaldsharp/sharp_one_one
sharpd: Fix nexthop group name collision
This commit is contained in:
commit
0894afd4cf
@ -77,7 +77,8 @@ struct sharp_nhg {
|
||||
|
||||
uint32_t id;
|
||||
|
||||
char name[256];
|
||||
#define NHG_NAME_LEN 256
|
||||
char name[NHG_NAME_LEN];
|
||||
|
||||
bool installed;
|
||||
};
|
||||
@ -95,7 +96,7 @@ struct sharp_nhg_rb_head nhg_head;
|
||||
static int sharp_nhg_compare_func(const struct sharp_nhg *a,
|
||||
const struct sharp_nhg *b)
|
||||
{
|
||||
return strncmp(a->name, b->name, strlen(a->name));
|
||||
return strncmp(a->name, b->name, NHG_NAME_LEN);
|
||||
}
|
||||
|
||||
DECLARE_RBTREE_UNIQ(sharp_nhg_rb, struct sharp_nhg, mylistitem,
|
||||
|
Loading…
Reference in New Issue
Block a user