diff options
author | dim <dim@FreeBSD.org> | 2016-01-11 19:36:44 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2016-01-11 19:36:44 +0000 |
commit | 79c349e677e1561f808f42fec3e6151d88397dd8 (patch) | |
tree | ea943142da24fe9f4d36e8fd2ca89c22a874740d /sys/net/if_ethersubr.c | |
parent | ca5a713355f56c0b7f18b4a361310ac52b13b066 (diff) | |
parent | 4ba3f354902d216384ffbcd5a6b1b3e219d451ea (diff) | |
download | FreeBSD-src-79c349e677e1561f808f42fec3e6151d88397dd8.zip FreeBSD-src-79c349e677e1561f808f42fec3e6151d88397dd8.tar.gz |
Merge ^/head r293430 through r293685.
Diffstat (limited to 'sys/net/if_ethersubr.c')
-rw-r--r-- | sys/net/if_ethersubr.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c index 2b82ecc..2d652ad 100644 --- a/sys/net/if_ethersubr.c +++ b/sys/net/if_ethersubr.c @@ -202,7 +202,6 @@ ether_resolve_addr(struct ifnet *ifp, struct mbuf *m, uint32_t *pflags) { struct ether_header *eh; - struct rtentry *rt; uint32_t lleflags = 0; int error = 0; #if defined(INET) || defined(INET6) @@ -253,8 +252,7 @@ ether_resolve_addr(struct ifnet *ifp, struct mbuf *m, } if (error == EHOSTDOWN) { - rt = (ro != NULL) ? ro->ro_rt : NULL; - if (rt != NULL && (rt->rt_flags & RTF_GATEWAY) != 0) + if (ro != NULL && (ro->ro_flags & RT_HAS_GW) != 0) error = EHOSTUNREACH; } |