]> git.ipfire.org Git - thirdparty/dracut.git/commit - dracut-functions.sh
fix(dracut-functions.sh): ip route parsing
authorMartin Wilck <mwilck@suse.com>
Fri, 21 Jan 2022 20:25:54 +0000 (21:25 +0100)
committerJóhann B. Guðmundsson <johannbg@gmail.com>
Fri, 4 Feb 2022 18:35:33 +0000 (18:35 +0000)
commitd754e1c6f081a6501cb7fdcb5caaa6c4977235af
tree1347c10368efc9035d111c91c46858bcb5cd125b
parent9371dcaba3c58377428eee44bd702fae7b2ab20e
fix(dracut-functions.sh): ip route parsing

The code for determining local interface and address works
only for peers that are reachable in a single hop.

This is parsed correctly:
192.168.110.1 dev br0 src 192.168.110.160 uid 0 \    cache

But this isn't:
192.168.1.4 via 192.168.110.1 dev br0 src 192.168.110.160 uid 0 \    cache

Fix it.

Fixes: ceca74cc ("dracut-functions: add ip_params_for_remote_addr() helper")
dracut-functions.sh