diff options
author | rwatson <rwatson@FreeBSD.org> | 2008-03-07 16:00:44 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2008-03-07 16:00:44 +0000 |
commit | 763a53ea3e02d4920425b2eaaf0eeff30959b95b (patch) | |
tree | d726f0f93d4cbbfd29007ccba23b6bc9820077a3 /sys/net/if.c | |
parent | d91018d5295aac23fe1c7d830ff91ec90e50fb56 (diff) | |
download | FreeBSD-src-763a53ea3e02d4920425b2eaaf0eeff30959b95b.zip FreeBSD-src-763a53ea3e02d4920425b2eaaf0eeff30959b95b.tar.gz |
Move IFF_NEEDSGIANT warning from if_ethersubr.c to if.c so it is displayed
for all network interfaces, not just ethernet-like ones.
Upgrade it to a louder WARNING and be explicit that the flag is obsolete.
Support for IFF_NEEDSGIANT will be removed in a few months (see arch@ for
details) and will not appear in 8.0.
Upgrade if_watchdog to a WARNING.
Diffstat (limited to 'sys/net/if.c')
-rw-r--r-- | sys/net/if.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/net/if.c b/sys/net/if.c index a6db03d..d30f93c5 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -546,7 +546,11 @@ if_attach(struct ifnet *ifp) rt_ifannouncemsg(ifp, IFAN_ARRIVAL); if (ifp->if_watchdog != NULL) - if_printf(ifp, "using obsoleted if_watchdog interface\n"); + if_printf(ifp, + "WARNING: using obsoleted if_watchdog interface\n"); + if (ifp->if_flags & IFF_NEEDSGIANT) + if_printf(ifp, + "WARNING: using obsoleted IFF_NEEDSGIANT flag\n"); } static void |