aboutsummaryrefslogtreecommitdiff
path: root/sys/net/route.c
diff options
context:
space:
mode:
authorGarrett Wollman <wollman@FreeBSD.org>2000-04-23 04:00:00 +0000
committerGarrett Wollman <wollman@FreeBSD.org>2000-04-23 04:00:00 +0000
commit1a11e63e1df50dac434b3a6d29fd9e94339ec11c (patch)
treee4d870d35924196feaf88e670ab54ae2fa4aac5e /sys/net/route.c
parent4807c4ebeb2d7d37fc41ccd93ce477c0f7aa5d09 (diff)
downloadsrc-1a11e63e1df50dac434b3a6d29fd9e94339ec11c.tar.gz
src-1a11e63e1df50dac434b3a6d29fd9e94339ec11c.zip
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.
Notes
Notes: svn path=/head/; revision=59529
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 3a8c88796748..38867f4e7220 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");