pespin submitted this change.
netif/sctp.h: Add missing dep netinet/sctp.h
Change-Id: Icac109aad6dc5a694309c1aedfe4622b04c44c9c
---
M include/osmocom/netif/sctp.h
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git a/include/osmocom/netif/sctp.h b/include/osmocom/netif/sctp.h
index 9dcb6dd..3e1d775 100644
--- a/include/osmocom/netif/sctp.h
+++ b/include/osmocom/netif/sctp.h
@@ -1,6 +1,7 @@
#pragma once
#include <osmocom/core/utils.h>
+#include <netinet/sctp.h>
/* Relevant SCTP RFCs:
* rfc9260 (obsoletes rfc4960): SCTP protocol
@@ -8,22 +9,18 @@
* rfc6458: SCTP Sockets API Extensions
*/
-enum sctp_sac_state;
extern const struct value_string osmo_sctp_assoc_chg_strs[];
static inline const char *osmo_sctp_assoc_chg_str(enum sctp_sac_state val)
{ return get_value_string(osmo_sctp_assoc_chg_strs, val); }
-enum sctp_spc_state;
extern const struct value_string osmo_sctp_paddr_chg_strs[];
static inline const char *osmo_sctp_paddr_chg_str(enum sctp_spc_state val)
{ return get_value_string(osmo_sctp_paddr_chg_strs, val); }
-enum sctp_sn_type;
extern const struct value_string osmo_sctp_sn_type_strs[];
static inline const char *osmo_sctp_sn_type_str(enum sctp_sn_type val)
{ return get_value_string(osmo_sctp_sn_type_strs, val); }
-enum sctp_sn_error;
extern const struct value_string osmo_sctp_sn_error_strs[];
static inline const char *osmo_sctp_sn_error_str(enum sctp_sn_error val)
{ return get_value_string(osmo_sctp_sn_error_strs, val); }
@@ -43,18 +40,14 @@
OSMO_SCTP_OP_ERR_UNER_INITED_ABORT = 12,
OSMO_SCTP_OP_ERR_PROTO_VERSION = 13,
};
-
-
extern const struct value_string osmo_sctp_op_error_strs[];
static inline const char *osmo_sctp_op_error_str(enum osmo_sctp_op_error val)
{ return get_value_string(osmo_sctp_op_error_strs, val); }
-enum sctp_spinfo_state;
extern const struct value_string osmo_sctp_spinfo_state_strs[];
static inline const char *osmo_sctp_spinfo_state_str(enum sctp_spinfo_state val)
{ return get_value_string(osmo_sctp_spinfo_state_strs, val); }
-enum sctp_sstat_state;
extern const struct value_string osmo_sctp_sstat_state_strs[];
static inline const char *osmo_sctp_sstat_state_str(enum sctp_sstat_state val)
{ return get_value_string(osmo_sctp_sstat_state_strs, val); }
To view, visit change 41445. To unsubscribe, or for help writing mail filters, visit settings.