From 52c592a3bcb88992eaf078b96adabf244512b6b1 Mon Sep 17 00:00:00 2001 From: joerg Date: Sun, 30 Dec 2001 16:40:00 +0000 Subject: Extend the hack where 0.0.0.1 meant `any address for remote is acceptable' to addresses 0.0.0.*. This allows for multiple such interfaces. MFC after: 1 month --- sys/net/if_spppsubr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/net') diff --git a/sys/net/if_spppsubr.c b/sys/net/if_spppsubr.c index c716518..5e87eae 100644 --- a/sys/net/if_spppsubr.c +++ b/sys/net/if_spppsubr.c @@ -2976,10 +2976,10 @@ sppp_ipcp_RCR(struct sppp *sp, struct lcp_header *h, int len) desiredaddr = p[2] << 24 | p[3] << 16 | p[4] << 8 | p[5]; if (desiredaddr == hisaddr || - (hisaddr == 1 && desiredaddr != 0)) { + (hisaddr >= 1 && hisaddr <= 254 && desiredaddr != 0)) { /* * Peer's address is same as our value, - * or we have set it to 0.0.0.1 to + * or we have set it to 0.0.0.* to * indicate that we do not really care, * this is agreeable. Gonna conf-ack * it. -- cgit v1.1