diff options
author | joerg <joerg@FreeBSD.org> | 2001-12-30 16:40:00 +0000 |
---|---|---|
committer | joerg <joerg@FreeBSD.org> | 2001-12-30 16:40:00 +0000 |
commit | 52c592a3bcb88992eaf078b96adabf244512b6b1 (patch) | |
tree | 7bdab2f8d21819956e87083a51962b2d1fd76a89 /sys/net/if_spppsubr.c | |
parent | e97e1a4d643513399b5beea8c92a43fe2e8897af (diff) | |
download | FreeBSD-src-52c592a3bcb88992eaf078b96adabf244512b6b1.zip FreeBSD-src-52c592a3bcb88992eaf078b96adabf244512b6b1.tar.gz |
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
Diffstat (limited to 'sys/net/if_spppsubr.c')
-rw-r--r-- | sys/net/if_spppsubr.c | 4 |
1 files changed, 2 insertions, 2 deletions
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. |