// SPDX-License-Identifier: BSD-3-Clause
/**
 * @file test-util.c
 *
 * @brief mptcpd test utilities library.
 *
 * Copyright (c) 2020-2021, Intel Corporation
 */

#ifdef HAVE_CONFIG_H
# include <mptcpd/private/config.h>
#endif

#include <unistd.h>

#if defined(HAVE_LINUX_MPTCP_H_UPSTREAM) \
        || defined(HAVE_LINUX_MPTCP_H_MPTCP_ORG)
# include <linux/mptcp.h>
#else
# include <mptcpd/private/mptcp_upstream.h>
#endif

#include "test-util.h"


char const *tests_get_pm_family_name(void)
{
#ifdef MPTCP_PM_NAME
        return MPTCP_PM_NAME;
#else
        return MPTCP_GENL_NAME;
#endif
}


/*
  Local Variables:
  c-file-style: "linux"
  End:
*/
