2002-02-27 Eric Norum <eric.norum@usask.ca>

* net/radix.c: Properly handle fetching the default route when there
	is no route.  This was a bug in the original FreeBSD code and this
	fix is from an updated version of their code.
This commit is contained in:
Joel Sherrill
2002-02-27 22:39:18 +00:00
parent 1bbe2e1dbb
commit c52f1c7cbb
6 changed files with 30 additions and 3 deletions

View File

@@ -1,3 +1,9 @@
2002-02-27 Eric Norum <eric.norum@usask.ca>
* net/radix.c: Properly handle fetching the default route when there
is no route. This was a bug in the original FreeBSD code and this
fix is from an updated version of their code.
2001-02-01 Mike Siers <mikes@poliac.com>
* pppd/rtemspppd.c (rtems_pppd_disconnect): Modified to avoid bringing

View File

@@ -264,8 +264,11 @@ rn_match(v_arg, head)
/*
* This extra grot is in case we are explicitly asked
* to look up the default. Ugh!
*
* Never return the root node itself, it seems to cause a
* lot of confusion.
*/
if ((t->rn_flags & RNF_ROOT) && t->rn_dupedkey)
if (t->rn_flags & RNF_ROOT)
t = t->rn_dupedkey;
return t;
on1:

View File

@@ -1,3 +1,9 @@
2002-02-27 Eric Norum <eric.norum@usask.ca>
* net/radix.c: Properly handle fetching the default route when there
is no route. This was a bug in the original FreeBSD code and this
fix is from an updated version of their code.
2001-02-01 Mike Siers <mikes@poliac.com>
* pppd/rtemspppd.c (rtems_pppd_disconnect): Modified to avoid bringing

View File

@@ -264,8 +264,11 @@ rn_match(v_arg, head)
/*
* This extra grot is in case we are explicitly asked
* to look up the default. Ugh!
*
* Never return the root node itself, it seems to cause a
* lot of confusion.
*/
if ((t->rn_flags & RNF_ROOT) && t->rn_dupedkey)
if (t->rn_flags & RNF_ROOT)
t = t->rn_dupedkey;
return t;
on1:

View File

@@ -1,3 +1,9 @@
2002-02-27 Eric Norum <eric.norum@usask.ca>
* net/radix.c: Properly handle fetching the default route when there
is no route. This was a bug in the original FreeBSD code and this
fix is from an updated version of their code.
2001-02-01 Mike Siers <mikes@poliac.com>
* pppd/rtemspppd.c (rtems_pppd_disconnect): Modified to avoid bringing

View File

@@ -264,8 +264,11 @@ rn_match(v_arg, head)
/*
* This extra grot is in case we are explicitly asked
* to look up the default. Ugh!
*
* Never return the root node itself, it seems to cause a
* lot of confusion.
*/
if ((t->rn_flags & RNF_ROOT) && t->rn_dupedkey)
if (t->rn_flags & RNF_ROOT)
t = t->rn_dupedkey;
return t;
on1: