Before we export network interface data through the ifmibdata structure,
  OR the flags bits with the driver managed status flags.
This commit is contained in:
csjp 2005-11-08 16:38:21 +00:00
parent 92f4e61ec3
commit 516e77bfa8

View File

@ -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;