diff options
author | Phil Sutter <phil@nwl.cc> | 2017-02-09 11:50:54 +0100 |
---|---|---|
committer | Stephen Hemminger <stephen@networkplumber.org> | 2017-02-09 17:28:48 -0800 |
commit | 886f2c43b5e6fb88da46cb22f6df6c7e50d79cc0 (patch) | |
tree | 629cbc1c731e75a78a635b90e289687d64989517 /testsuite/Makefile | |
parent | 72dfff6e11d3992b5581eae2e8cf7b9855e84477 (diff) |
testsuite: Generate nlmsg blob at runtime
Since netlink messages are in host byte order, shipping a pre-generated
nlmsg blob won't suffice on systems with different endianness. Therefore
generate the blob at runtime, so it's content fits the hosts endianness.
Note that the generated message will contain only a single interface
featuring two VFs instead of the full list before. Yet this is
sufficient, as it triggers the crash with iproute versions prior to
commit 8c29ae7cc2494 ("ip link: Fix crash on older kernels when show VF
dev").
Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'testsuite/Makefile')
-rw-r--r-- | testsuite/Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/testsuite/Makefile b/testsuite/Makefile index 20276500..fa7ddb86 100644 --- a/testsuite/Makefile +++ b/testsuite/Makefile @@ -43,6 +43,8 @@ $(TESTS): clean ifeq (,$(HAVE_UNSHARED_UTIL)) $(error Please install util-linux tools to run tests in separated network namespace) endif + @./tools/generate_nlmsg + @mkdir -p $(RESULTS_DIR) @for d in $(TESTS_DIR); do \ |