Commit 5189446
net: ipv4: fix regression in local-broadcast routes
Commit 9e30ecf ("net: ipv4: fix incorrect MTU in broadcast routes")
introduced a regression where local-broadcast packets would have their
gateway set in __mkroute_output, which was caused by fi = NULL being
removed.
Fix this by resetting the fib_info for local-broadcast packets. This
preserves the intended changes for directed-broadcast packets.
Cc: [email protected]
Fixes: 9e30ecf ("net: ipv4: fix incorrect MTU in broadcast routes")
Reported-by: Brett A C Sheffield <[email protected]>
Closes: https://lore.kernel.org/regressions/[email protected]
Signed-off-by: Oscar Maes <[email protected]>
Reviewed-by: David Ahern <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Paolo Abeni <[email protected]>1 parent dac978e commit 5189446
1 file changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2575 | 2575 | | |
2576 | 2576 | | |
2577 | 2577 | | |
2578 | | - | |
| 2578 | + | |
2579 | 2579 | | |
2580 | | - | |
| 2580 | + | |
| 2581 | + | |
| 2582 | + | |
| 2583 | + | |
2581 | 2584 | | |
2582 | | - | |
| 2585 | + | |
2583 | 2586 | | |
| 2587 | + | |
2584 | 2588 | | |
2585 | 2589 | | |
2586 | 2590 | | |
| |||
0 commit comments