Files
systemd/src
Benjamin Franzke dfa14e2859 resolved: define source address for proxy-only stub replies
DnsPacket.ifindex=1 (loopback) is normalized to 0 whenever a message is
received on the loopback iface, so for both listeners, 127.0.0.53 and
127.0.0.54, the ifindex will be set to 0 by manager_recv() for queries
that have a local origin.

Replies to such local messages need to set a proper ifindex in any
case, as the supplied source-address would otherwise be ignored in
manager_ipv4_send() (CMSG generation is skipped due to ifindex > 0 check).

Note that this change only forces `ifindex` to loopback if it was actually
normalized to `0` before (due to a loopback detection) in order to keep the
nat-to-127.0.0.54-from-another-interface usecase that was described in
a8d0906344 intact.
Also note that nat is not supported for the main stub 127.0.0.53 which is
why forcing LOOPBACK_IFINDEX was/is fine for that case.

Fixes #23495
2022-05-31 22:38:47 +02:00
..
2022-05-31 09:20:52 +02:00
2022-05-31 09:20:52 +02:00
2022-05-02 18:04:53 +02:00
2022-05-31 09:20:52 +02:00
2022-05-31 09:20:52 +02:00
2022-05-24 21:26:06 +02:00
2022-04-01 15:23:43 +02:00
2022-04-28 15:46:44 +02:00
…
2022-05-28 21:38:33 +02:00
2022-05-31 09:20:52 +02:00
2022-05-05 00:05:57 +09:00
2022-05-31 09:20:52 +02:00