Commit f1fe4d90 authored by FredericLeroy's avatar FredericLeroy

Add S6a interface from Eurecom

Author: Sebastien ROUX <sebastien.roux@eurecom.fr>
parent a68ec3b8
Pipeline #1676 skipped
......@@ -35,7 +35,7 @@ INCLUDE_DIRECTORIES(${LFDCORE_INCLUDES})
####
# Diameter applications dictionaries
FD_EXTENSION_SUBDIR(dict_s6a "3GPP S6A TS.29.279-990" ON)
FD_EXTENSION_SUBDIR(dict_nasreq "NASREQ (RFC4005) Dictionary definitions" ON)
FD_EXTENSION_SUBDIR(dict_eap "Diameter EAP (RFC4072) Dictionary definitions" ON)
......
# The dict_rfc5777 extension
PROJECT("S6a protocol based on 3GPP 29.272-990" C)
# Compile as a module
FD_ADD_EXTENSION(dict_s6a dict_s6a.c)
####
## INSTALL section ##
INSTALL(TARGETS dict_s6a
LIBRARY DESTINATION ${INSTALL_EXTENSIONS_SUFFIX}
COMPONENT freeDiameter-dictionary-s6a)
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -37,6 +37,9 @@
#ifndef FD_IS_CONFIG
#define FD_IS_CONFIG
#if HAVE_CONFIG_H
# include "config.h"
#else
#cmakedefine HAVE_NTOHLL
#cmakedefine HAVE_MALLOC_H
#cmakedefine HAVE_SIGNALENT_H
......@@ -57,6 +60,7 @@
#cmakedefine GNUTLS_VERSION_210
#cmakedefine GNUTLS_VERSION_300
#cmakedefine GNUTLS_VERSION_310
#endif /* !HAVE_CONFIG_H */
#cmakedefine ERRORS_ON_TODO
#cmakedefine DEBUG
......
......@@ -499,7 +499,7 @@ int fd_breakhere(void);
TRACE_DEBUG_ALL( "Check FCT: " #__call__ ); \
__ret__ = (__call__); \
if (__ret__ != 0) { \
TRACE_DEBUG_ERROR("ERROR: in '" #__call__ "':\t%s", strerror(__ret__)); \
TRACE_DEBUG_ERROR("ERROR: in %s:%d'" #__call__ "':\t%s", __FILE__, __LINE__, strerror(__ret__)); \
__fallback__; \
} \
}
......
......@@ -967,8 +967,12 @@ int fd_msg_anscb_associate( struct msg * msg, void ( *anscb)(void *, struct msg
/* Check the parameters */
CHECK_PARAMS( CHECK_MSG(msg) );
CHECK_PARAMS( msg->msg_public.msg_flags & CMD_FLAG_REQUEST ); /* we associate with requests only */
// CHECK_PARAMS( msg->msg_public.msg_flags & CMD_FLAG_REQUEST ); /* we associate with requests only */
CHECK_PARAMS( (anscb == NULL) || (msg->msg_cb.fct == NULL) ); /* We are not overwritting a cb */
/* No need to associate a callback with an answer. */
if ((msg->msg_public.msg_flags & CMD_FLAG_REQUEST) == 0) {
return 0;
}
/* Associate callback and data with the message, if any */
msg->msg_cb.fct = anscb;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment