2020-02-09 23:22:52 +08:00
|
|
|
/**
|
|
|
|
* @file interface.c
|
|
|
|
* @brief Implements network interface data structures.
|
|
|
|
* @note Copyright (C) 2020 Richard Cochran <richardcochran@gmail.com>
|
|
|
|
* @note SPDX-License-Identifier: GPL-2.0+
|
|
|
|
*/
|
|
|
|
#include "interface.h"
|
|
|
|
|
2020-02-10 03:14:42 +08:00
|
|
|
int interface_get_tsinfo(struct interface *iface)
|
|
|
|
{
|
|
|
|
return sk_get_ts_info(iface->ts_label, &iface->ts_info);
|
|
|
|
}
|
|
|
|
|
2020-02-10 02:56:54 +08:00
|
|
|
const char *interface_label(struct interface *iface)
|
|
|
|
{
|
|
|
|
return iface->ts_label;
|
|
|
|
}
|
|
|
|
|
2020-02-09 23:22:52 +08:00
|
|
|
const char *interface_name(struct interface *iface)
|
|
|
|
{
|
|
|
|
return iface->name;
|
|
|
|
}
|