summaryrefslogtreecommitdiffstats
path: root/sys/net/route.c
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>2000-04-23 04:00:00 +0000
committerwollman <wollman@FreeBSD.org>2000-04-23 04:00:00 +0000
commit20f13d8bcf58854c0416942f7c7975ace2e92d65 (patch)
treef6d3cd46288b6d6342b8fba86514d8cb5f18b921 /sys/net/route.c
parentf330db8d18c694129d83a4541e19f5291514e6c0 (diff)
downloadFreeBSD-src-20f13d8bcf58854c0416942f7c7975ace2e92d65.zip
FreeBSD-src-20f13d8bcf58854c0416942f7c7975ace2e92d65.tar.gz
A couple months ago, Kirk and I were doing a walkthrough of the radix-tree
search routine, and scratching our heads over why it was so obfuscated. This delta fixes a number of confusing style bugs and renames several structure members to have more meaningful names. There remain a number of odd control-flow structures. These changes do not affect the generated code.
Diffstat (limited to 'sys/net/route.c')
-rw-r--r--sys/net/route.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/route.c b/sys/net/route.c
index 3a8c887..38867f4 100644
--- a/sys/net/route.c
+++ b/sys/net/route.c
@@ -781,7 +781,7 @@ rt_fixchange(rn, vp)
xm1 = (u_char *)rt_mask(rt0);
xk2 = (u_char *)rt_key(rt);
- for (i = rnh->rnh_treetop->rn_off; i < len; i++) {
+ for (i = rnh->rnh_treetop->rn_offset; i < len; i++) {
if ((xk2[i] & xm1[i]) != xk1[i]) {
#ifdef DEBUG
if(rtfcdebug) printf("no match\n");
OpenPOWER on IntegriCloud