From 57c1493b3adf026cf43619eb5142ee8a560d30ca Mon Sep 17 00:00:00 2001 From: "Christian S.J. Peron" <csjp@FreeBSD.org> Date: Sun, 23 Oct 2005 01:44:08 +0000 Subject: [PATCH] Before we export network interface data through the ifmibdata structure, OR the flags bits with the driver managed status flags. This fixes an issue where RUNNING flags would not be reported to processes, which conflicts with the flags information provided by ifconfig(8). --- sys/net/if_mib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/net/if_mib.c b/sys/net/if_mib.c index 0c11454ce69b..d809354cb787 100644 --- a/sys/net/if_mib.c +++ b/sys/net/if_mib.c @@ -95,9 +95,9 @@ sysctl_ifdata(SYSCTL_HANDLER_ARGS) /* XXX bad syntax! */ #define COPY(fld) ifmd.ifmd_##fld = ifp->if_##fld COPY(pcount); - COPY(flags); COPY(data); #undef COPY + ifmd.ifmd_flags = ifp->if_flags | ifp->if_drv_flags; ifmd.ifmd_snd_len = ifp->if_snd.ifq_len; ifmd.ifmd_snd_maxlen = ifp->if_snd.ifq_maxlen; ifmd.ifmd_snd_drops = ifp->if_snd.ifq_drops;