diff options
Diffstat (limited to 'ldpd/adjacency.c')
| -rw-r--r-- | ldpd/adjacency.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ldpd/adjacency.c b/ldpd/adjacency.c index 69031bdd75..2e7b43296a 100644 --- a/ldpd/adjacency.c +++ b/ldpd/adjacency.c @@ -48,6 +48,12 @@ adj_compare(struct adj *a, struct adj *b) switch (a->source.type) { case HELLO_LINK: + if (strcmp(a->source.link.ia->iface->name, + b->source.link.ia->iface->name) < 0) + return (-1); + if (strcmp(a->source.link.ia->iface->name, + b->source.link.ia->iface->name) > 0) + return (1); if (a->source.link.ia->af < b->source.link.ia->af) return (-1); if (a->source.link.ia->af > b->source.link.ia->af) |
