diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2004-07-05 17:27:33 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2004-07-05 17:27:33 +0000 |
commit | 83c0d3e9f0bac5a6b2724157891be739879d20d5 (patch) | |
tree | f1a3a28946290927f6612aa89fd8ed0d1a048b7c /usr.sbin/bgpd | |
parent | 67b93fc8db203c78e410987595a86e3323abcb69 (diff) |
The rde no longer needs to check if the nexthop is the loopback address.
This is now down in the parent. OK henning@
Diffstat (limited to 'usr.sbin/bgpd')
-rw-r--r-- | usr.sbin/bgpd/rde_attr.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.sbin/bgpd/rde_attr.c b/usr.sbin/bgpd/rde_attr.c index 7bb303ba581..29962edf8a4 100644 --- a/usr.sbin/bgpd/rde_attr.c +++ b/usr.sbin/bgpd/rde_attr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde_attr.c,v 1.36 2004/07/05 02:13:44 henning Exp $ */ +/* $OpenBSD: rde_attr.c,v 1.37 2004/07/05 17:27:32 claudio Exp $ */ /* * Copyright (c) 2004 Claudio Jeker <claudio@openbsd.org> @@ -127,11 +127,10 @@ attr_parse(u_char *p, u_int16_t len, struct attr_flags *a, int ebgp, UPD_READ(&a->nexthop, p, plen, 4); /* network byte order */ /* * Check if the nexthop is a valid IP address. We consider - * multicast, experimental and loopback addresses as invalid. + * multicast and experimental addresses as invalid. */ tmp32 = ntohl(a->nexthop.s_addr); - if (IN_MULTICAST(tmp32) || IN_BADCLASS(tmp32) || - (tmp32 & 0x7f000000) == 0x7f000000) + if (IN_MULTICAST(tmp32) || IN_BADCLASS(tmp32)) return (-1); break; case ATTR_MED: |