mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-11-07 04:36:52 -10:00
netlink: update rta_multipath conditions in arp/ndp after 656a39c1a0
This commit is contained in:
1 parent
30376771fc
commit
c90901245e
2 files changed
+2
-2
No files matched your search
@@ -130,7 +130,7 @@ guess_ifindex(struct snl_state *ss, uint32_t fibnum, struct in_addr addr)
|
||||
if (!snl_parse_nlmsg(ss, hdr, &snl_rtm_route_parser, &r))
|
||||
return (0);
|
||||
|
||||
if (r.rta_multipath || (r.rta_rtflags & RTF_GATEWAY))
|
||||
if (r.rta_multipath.num_nhops > 0 || (r.rta_rtflags & RTF_GATEWAY))
|
||||
return (0);
|
||||
|
||||
/* Check if the interface is of supported type */
|
||||
|
||||
@@ -167,7 +167,7 @@ guess_ifindex(struct snl_state *ss, uint32_t fibnum, const struct sockaddr_in6 *
|
||||
if (!snl_parse_nlmsg(ss, hdr, &snl_rtm_route_parser, &r))
|
||||
return (0);
|
||||
|
||||
if (r.rta_multipath || (r.rta_rtflags & RTF_GATEWAY))
|
||||
if (r.rta_multipath.num_nhops > 0 || (r.rta_rtflags & RTF_GATEWAY))
|
||||
return (0);
|
||||
|
||||
/* Check if the interface is of supported type */
|
||||
|
||||
Reference in new issue
Block a user