[PATCHv4 RESEND net-next 2/2] selftests: wireguard: update to using nft for qemu test

Hangbin Liu liuhangbin at gmail.com
Fri Mar 21 10:40:35 UTC 2025


Hi Jason, Phil,
On Wed, Mar 19, 2025 at 05:15:41PM +0100, Jason A. Donenfeld wrote:
> On Mon, Jan 06, 2025 at 08:10:43AM +0000, Hangbin Liu wrote:
> > +	echo "file /bin/nft $(NFTABLES_PATH)/src/nft 755 0 0" >> $@
> > +	echo "file /lib/libmnl.so.0 $(TOOLCHAIN_PATH)/lib/libmnl.so.0 755 0 0" >> $@
> > +	echo "file /lib/libnftnl.so.11 $(TOOLCHAIN_PATH)/lib/libnftnl.so.11 755 0 0" >> $@
> 
> Can't these be statically linked into the nft binary?

If I omit these, I will got error like

mnl_attr_put: symbol not found

Even though I set `--enable-static` in nft build.

Do you know what's the reason?

Thanks
Hangbin


More information about the WireGuard mailing list