Make arp_rtrequest()'s 'bad gateway' messages slightly more informative,

to aid me in tracking down LLINFO inconsistencies in the routing table.

Discussed with:	fenner
This commit is contained in:
Bruce M Simpson 2003-10-03 17:21:17 +00:00
parent d87866b1e2
commit beb2ced8ac
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=120698

View file

@ -208,7 +208,10 @@ arp_rtrequest(req, rt, info)
case RTM_RESOLVE:
if (gate->sa_family != AF_LINK ||
gate->sa_len < sizeof(null_sdl)) {
log(LOG_DEBUG, "arp_rtrequest: bad gateway value\n");
log(LOG_DEBUG, "arp_rtrequest: bad gateway %s%s\n",
inet_ntoa(SIN(rt_key(rt))->sin_addr),
(gate->sa_family != AF_LINK) ?
" (sa_family != AF_LINK)": "");
break;
}
SDL(gate)->sdl_type = rt->rt_ifp->if_type;