Author: andre
Date: Sat Aug 21 11:02:54 2010
New Revision: 211544
URL: http://svn.freebsd.org/changeset/base/211544

Log:
  MFC r211316:
  
    Change the messages of the ICMP bad port bandwidth limiter from
    a kernel printf to a log output with the priority of LOG_NOTICE.

Modified:
  stable/6/sys/netinet/ip_icmp.c

Modified: stable/6/sys/netinet/ip_icmp.c
==============================================================================
--- stable/6/sys/netinet/ip_icmp.c      Sat Aug 21 11:02:18 2010        
(r211543)
+++ stable/6/sys/netinet/ip_icmp.c      Sat Aug 21 11:02:54 2010        
(r211544)
@@ -42,6 +42,7 @@
 #include <sys/time.h>
 #include <sys/kernel.h>
 #include <sys/sysctl.h>
+#include <sys/syslog.h>
 
 #include <net/if.h>
 #include <net/if_types.h>
@@ -922,7 +923,7 @@ badport_bandlim(int which)
                 * the previous behaviour at the expense of added complexity.
                 */
                if (icmplim_output && opps > icmplim)
-                       printf("Limiting %s from %d to %d packets/sec\n",
+                       log(LOG_NOTICE, "Limiting %s from %d to %d 
packets/sec\n",
                                r->type, opps, icmplim);
        }
        return 0;                       /* okay to send packet */
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to