mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04: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
1 changed files with 4 additions and 1 deletions
|
|
@ -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