diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2018-08-29 08:51:50 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2018-08-29 08:51:50 +0000 |
commit | b1b8ec5fbc0ac2fafff8d7debd8ab5fdd791e776 (patch) | |
tree | 272f6e963e76719e9d72d220ab43c7df3bcca919 /usr.sbin/bgpd | |
parent | 86b5e77220f6d28cc9f30875ad27bfd1b14b329e (diff) |
Adjust comment to make it clear that a NULL nexthop is actually eligable
Diffstat (limited to 'usr.sbin/bgpd')
-rw-r--r-- | usr.sbin/bgpd/rde_decide.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/rde_decide.c b/usr.sbin/bgpd/rde_decide.c index a912cacf72f..04f09a1620d 100644 --- a/usr.sbin/bgpd/rde_decide.c +++ b/usr.sbin/bgpd/rde_decide.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde_decide.c,v 1.70 2018/08/06 08:06:49 claudio Exp $ */ +/* $OpenBSD: rde_decide.c,v 1.71 2018/08/29 08:51:49 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Claudio Jeker <claudio@openbsd.org> @@ -137,7 +137,11 @@ prefix_cmp(struct prefix *p1, struct prefix *p2) if (asp2->flags & F_ATTR_LOOP) return (1); - /* 1. check if prefix is eligible a.k.a reachable */ + /* + * 1. check if prefix is eligible a.k.a reachable + * A NULL nexthop is eligible since it is used for locally + * announced networks. + */ if (prefix_nexthop(p2) != NULL && prefix_nexthop(p2)->state != NEXTHOP_REACH) return (1); |