]> git.ipfire.org Git - thirdparty/strongswan.git/commit
pf-handler: Accept loopback interfaces as packet source
authorTobias Brunner <tobias@strongswan.org>
Mon, 27 Jan 2025 08:40:56 +0000 (09:40 +0100)
committerTobias Brunner <tobias@strongswan.org>
Fri, 31 Jan 2025 10:19:42 +0000 (11:19 +0100)
commitabbf9d28b0032cf80b79bcacea3146a60800a6dd
tree2893e1484202cb4806f26b848fd984b02ad5893d
parent543a4c86f9fd6ebad1339fd1fea469c26c0c2b77
pf-handler: Accept loopback interfaces as packet source

In some setups the responses from the DHCP server are sent via lo, which
does not have an address of type `ARPHRD_ETHER` (the address length is
the same, though, just all zeros, by default).  Note that the dhcp plugin
doesn't actually care for the MAC address or interface details, that's
only used by the farp plugin.

Fixes: 187c72d1afdc ("dhcp: Port the plugin to FreeBSD/macOS")
src/libcharon/network/pf_handler.c