Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net Only report expire time for DYNAMIC forwarding table...
details: https://anonhg.NetBSD.org/src/rev/1a8487997fb8
branches: trunk
changeset: 513928:1a8487997fb8
user: thorpej <thorpej%NetBSD.org@localhost>
date: Fri Aug 17 22:10:20 2001 +0000
description:
Only report expire time for DYNAMIC forwarding table entries.
diffstat:
sys/net/if_bridge.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r a6a7b5e1b609 -r 1a8487997fb8 sys/net/if_bridge.c
--- a/sys/net/if_bridge.c Fri Aug 17 21:47:57 2001 +0000
+++ b/sys/net/if_bridge.c Fri Aug 17 22:10:20 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_bridge.c,v 1.1 2001/08/17 21:37:27 thorpej Exp $ */
+/* $NetBSD: if_bridge.c,v 1.2 2001/08/17 22:10:20 thorpej Exp $ */
/*
* Copyright 2001 Wasabi Systems, Inc.
@@ -738,7 +738,10 @@
goto out;
strcpy(bareq.ifba_ifsname, brt->brt_ifp->if_xname);
memcpy(bareq.ifba_dst, brt->brt_addr, sizeof(brt->brt_addr));
- bareq.ifba_expire = brt->brt_expire - mono_time.tv_sec;
+ if ((brt->brt_flags & IFBAF_TYPEMASK) == IFBAF_DYNAMIC)
+ bareq.ifba_expire = brt->brt_expire - mono_time.tv_sec;
+ else
+ bareq.ifba_expire = 0;
bareq.ifba_flags = brt->brt_flags;
error = copyout(&bareq, bac->ifbac_req + count, sizeof(bareq));
Home |
Main Index |
Thread Index |
Old Index