mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-04 07:31:11 +00:00
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:
parent
d87866b1e2
commit
beb2ced8ac
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=120698
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue