Only report expire time for DYNAMIC forwarding table entries.

This commit is contained in:
thorpej 2001-08-17 22:10:20 +00:00
parent c82b0994e7
commit 9b50223a16
1 changed files with 5 additions and 2 deletions

View File

@ -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 @@ bridge_ioctl_rts(struct bridge_softc *sc, void *arg)
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));