summaryrefslogtreecommitdiff
path: root/usr.sbin/mrouted/prune.h
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1995-12-14 01:46:23 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1995-12-14 01:46:23 +0000
commitacfc88313dd86a33e6c0424cda0578b15a539e42 (patch)
tree8831738b9326fa2111446b81b93fee2285da3e07 /usr.sbin/mrouted/prune.h
parenta10a6913325bfa093081ff08628e32d3b0f2a565 (diff)
from netbsd; update to mrouted 3.8
Diffstat (limited to 'usr.sbin/mrouted/prune.h')
-rw-r--r--usr.sbin/mrouted/prune.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.sbin/mrouted/prune.h b/usr.sbin/mrouted/prune.h
index 22df280b830..b3187a89d37 100644
--- a/usr.sbin/mrouted/prune.h
+++ b/usr.sbin/mrouted/prune.h
@@ -1,4 +1,4 @@
-/* $NetBSD: prune.h,v 1.2 1995/10/09 03:51:52 thorpej Exp $ */
+/* $NetBSD: prune.h,v 1.3 1995/12/10 10:07:11 mycroft Exp $ */
/*
* The mrouted program is covered by the license in the accompanying file
@@ -36,6 +36,9 @@ struct gtable {
struct stable *gt_srctbl; /* source table */
struct ptable *gt_pruntbl; /* prune table */
struct rtentry *gt_route; /* parent route */
+#ifdef RSRR
+ struct rsrr_cache *gt_rsrr_cache; /* RSRR cache */
+#endif /* RSRR */
};
/*
@@ -127,8 +130,8 @@ struct tr_resp {
#define MASK_TO_VAL(x, i) { \
u_int32_t _x = ntohl(x); \
- (i) = 0; \
- while ((_x) << (i)) \
+ (i) = 1; \
+ while ((_x) <<= 1) \
(i)++; \
};