mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-upf.git
synced 2025-11-02 21:13:46 +00:00
66 lines
2.2 KiB
C
66 lines
2.2 KiB
C
#pragma once
|
|
|
|
#include <osmocom/core/utils.h>
|
|
|
|
#include <osmocom/pfcp/pfcp_proto.h>
|
|
|
|
extern const struct value_string osmo_pfcp_message_type_strs[];
|
|
static inline const char *osmo_pfcp_message_type_str(enum osmo_pfcp_message_type val)
|
|
{
|
|
return get_value_string(osmo_pfcp_message_type_strs, val);
|
|
}
|
|
|
|
extern const struct value_string osmo_pfcp_iei_strs[];
|
|
static inline const char *osmo_pfcp_iei_str(enum osmo_pfcp_iei val)
|
|
{
|
|
return get_value_string(osmo_pfcp_iei_strs, val);
|
|
}
|
|
|
|
extern const struct value_string osmo_pfcp_cause_strs[];
|
|
static inline const char *osmo_pfcp_cause_str(enum osmo_pfcp_cause val)
|
|
{
|
|
return get_value_string(osmo_pfcp_cause_strs, val);
|
|
}
|
|
|
|
extern const struct value_string osmo_pfcp_up_feature_strs[];
|
|
static inline const char *osmo_pfcp_up_feature_str(enum osmo_pfcp_up_feature val)
|
|
{
|
|
return get_value_string(osmo_pfcp_up_feature_strs, val);
|
|
}
|
|
|
|
extern const struct value_string osmo_pfcp_cp_feature_strs[];
|
|
static inline const char *osmo_pfcp_cp_feature_str(enum osmo_pfcp_cp_feature val)
|
|
{
|
|
return get_value_string(osmo_pfcp_cp_feature_strs, val);
|
|
}
|
|
|
|
extern const struct value_string osmo_pfcp_apply_action_strs[];
|
|
static inline const char *osmo_pfcp_apply_action_str(enum osmo_pfcp_apply_action val)
|
|
{
|
|
return get_value_string(osmo_pfcp_apply_action_strs, val);
|
|
}
|
|
|
|
extern const struct value_string osmo_pfcp_outer_header_creation_strs[];
|
|
static inline const char *osmo_pfcp_outer_header_creation_str(enum osmo_pfcp_outer_header_creation val)
|
|
{
|
|
return get_value_string(osmo_pfcp_outer_header_creation_strs, val);
|
|
}
|
|
|
|
extern const struct value_string osmo_pfcp_outer_header_removal_desc_strs[];
|
|
static inline const char *osmo_pfcp_outer_header_removal_desc_str(enum osmo_pfcp_outer_header_removal_desc val)
|
|
{
|
|
return get_value_string(osmo_pfcp_outer_header_removal_desc_strs, val);
|
|
}
|
|
|
|
extern const struct value_string osmo_pfcp_source_iface_strs[];
|
|
static inline const char *osmo_pfcp_source_iface_str(enum osmo_pfcp_source_iface val)
|
|
{
|
|
return get_value_string(osmo_pfcp_source_iface_strs, val);
|
|
}
|
|
|
|
extern const struct value_string osmo_pfcp_dest_iface_strs[];
|
|
static inline const char *osmo_pfcp_dest_iface_str(enum osmo_pfcp_dest_iface val)
|
|
{
|
|
return get_value_string(osmo_pfcp_dest_iface_strs, val);
|
|
}
|