diff options
author | Robert Watson <rwatson@FreeBSD.org> | 2008-03-07 16:00:44 +0000 |
---|---|---|
committer | Robert Watson <rwatson@FreeBSD.org> | 2008-03-07 16:00:44 +0000 |
commit | b9175c45567050239120a8eca62ab33c4698cfb2 (patch) | |
tree | d726f0f93d4cbbfd29007ccba23b6bc9820077a3 /sys/net/if.c | |
parent | b916b56b5a1ecbd0c6ed3c4abf17187620567a0e (diff) | |
download | src-b9175c45567050239120a8eca62ab33c4698cfb2.tar.gz src-b9175c45567050239120a8eca62ab33c4698cfb2.zip |
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.
Notes
Notes:
svn path=/head/; revision=176906
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 a6db03d4bcfc..d30f93c5f968 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 |