summaryrefslogtreecommitdiff
path: root/net/mctp/test/utils.h
diff options
context:
space:
mode:
authorMatt Johnston <matt@codeconstruct.com.au>2025-07-10 16:56:01 +0800
committerPaolo Abeni <pabeni@redhat.com>2025-07-15 12:08:39 +0200
commite6d8e7dbc5a363a8e55a65f3bbe7f9f44f0aeb4f (patch)
treea9d1f25875eed8f6c219efa2895652cf9911a51e /net/mctp/test/utils.h
parentb7e28129b667dede890bc7bd340a77e325df156a (diff)
net: mctp: Add bind lookup test
Test the preference order of bound socket matches with a series of test packets. Signed-off-by: Matt Johnston <matt@codeconstruct.com.au> Link: https://patch.msgid.link/20250710-mctp-bind-v4-8-8ec2f6460c56@codeconstruct.com.au Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'net/mctp/test/utils.h')
-rw-r--r--net/mctp/test/utils.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/mctp/test/utils.h b/net/mctp/test/utils.h
index c2aaba5188ab..06bdb6cb5eff 100644
--- a/net/mctp/test/utils.h
+++ b/net/mctp/test/utils.h
@@ -39,6 +39,9 @@ struct mctp_test_bind_setup {
bool have_peer;
mctp_eid_t peer_addr;
int peer_net;
+
+ /* optional name. Used for comparison in "lookup" tests */
+ const char *name;
};
struct mctp_test_dev *mctp_test_create_dev(void);