From c8c92b5491e2d169b12746df6c30a135983a9104 Mon Sep 17 00:00:00 2001 From: Qing Li Date: Tue, 6 Oct 2009 20:33:02 +0000 Subject: [PATCH] MFC r197696 Remove a log message from production code. This log message can be triggered by a misconfigured host that is sending out gratuious ARPs. This log message can also be triggered during a network renumbering event when multiple prefixes co-exist on a single network segment. Approved by: re --- sys/netinet/in.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/netinet/in.c b/sys/netinet/in.c index d058d8f5131e..ae8e2f40d3de 100644 --- a/sys/netinet/in.c +++ b/sys/netinet/in.c @@ -1327,8 +1327,10 @@ in_lltable_rtcheck(struct ifnet *ifp, const struct sockaddr *l3addr) /* XXX rtalloc1 should take a const param */ rt = rtalloc1(__DECONST(struct sockaddr *, l3addr), 0, 0); if (rt == NULL || (rt->rt_flags & RTF_GATEWAY) || rt->rt_ifp != ifp) { +#ifdef DIAGNOSTICS log(LOG_INFO, "IPv4 address: \"%s\" is not on the network\n", inet_ntoa(((const struct sockaddr_in *)l3addr)->sin_addr)); +#endif if (rt != NULL) RTFREE_LOCKED(rt); return (EINVAL);