summaryrefslogtreecommitdiffstats
path: root/sys/net/if.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2008-03-07 16:00:44 +0000
committerrwatson <rwatson@FreeBSD.org>2008-03-07 16:00:44 +0000
commit763a53ea3e02d4920425b2eaaf0eeff30959b95b (patch)
treed726f0f93d4cbbfd29007ccba23b6bc9820077a3 /sys/net/if.c
parentd91018d5295aac23fe1c7d830ff91ec90e50fb56 (diff)
downloadFreeBSD-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.c6
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
OpenPOWER on IntegriCloud