We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dac978e commit 5189446Copy full SHA for 5189446
net/ipv4/route.c
@@ -2575,12 +2575,16 @@ static struct rtable *__mkroute_output(const struct fib_result *res,
2575
!netif_is_l3_master(dev_out))
2576
return ERR_PTR(-EINVAL);
2577
2578
- if (ipv4_is_lbcast(fl4->daddr))
+ if (ipv4_is_lbcast(fl4->daddr)) {
2579
type = RTN_BROADCAST;
2580
- else if (ipv4_is_multicast(fl4->daddr))
+
2581
+ /* reset fi to prevent gateway resolution */
2582
+ fi = NULL;
2583
+ } else if (ipv4_is_multicast(fl4->daddr)) {
2584
type = RTN_MULTICAST;
- else if (ipv4_is_zeronet(fl4->daddr))
2585
+ } else if (ipv4_is_zeronet(fl4->daddr)) {
2586
2587
+ }
2588
2589
if (dev_out->flags & IFF_LOOPBACK)
2590
flags |= RTCF_LOCAL;
0 commit comments