Changeset 1:bafb831ba688 in freeDiameter
- Timestamp:
- Aug 31, 2009, 11:31:10 AM (15 years ago)
- Branch:
- default
- Phase:
- public
- Files:
-
- 3 edited
- 21 moved
Legend:
- Unmodified
- Added
- Removed
-
CMakeLists.txt
r0 r1 2 2 3 3 # Name of the project, and language 4 PROJECT(" FreeDiameter" C)4 PROJECT("freeDiameter" C) 5 5 6 6 # Some subfolders may have tests … … 19 19 INCLUDE_DIRECTORIES(include) 20 20 INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}/include) 21 SUBDIRS(include/free diameter)21 SUBDIRS(include/freeDiameter) 22 22 23 23 # some subfolders use yacc and lex parsers … … 34 34 35 35 # Location for the source code 36 SUBDIRS(libfree diameter)37 SUBDIRS(free diameter)36 SUBDIRS(libfreeDiameter) 37 SUBDIRS(freeDiameter) 38 38 39 39 # Do we build the extensions? -
INSTALL
r0 r1 13 13 make tests 14 14 15 Note: instead of passing options on the command line, you can edit the CCmakeCache.txt file16 or use a CMake front-end (for example cmake-gui)15 Note: instead of passing options on the command line, you can use a CMake front-end (for example cmake-gui) 16 or edit the CCmakeCache.txt file directly. 17 17 18 Note that there are dependencies on someexternal tools that may not be enforced by the configure script.18 Note that there are dependencies on external tools that may not be enforced by the configure script. 19 19 On Ubuntu Intrepid, the following packages were required (aptitude install ...): 20 20 gcc make flex bison libsctp1 libsctp-dev cmake … … 28 28 29 29 You can also configure which extensions to build with CMake: 30 NoExtensions:BOOL=OFF (or the following are ignored)30 IGNORE_ALL_EXTENSIONS:BOOL=OFF (or the following are ignored) 31 31 BUILD_APP_TEST:BOOL=ON 32 32 BUILD_RT_ANY:BOOL=ON … … 35 35 BUILD_SAMPLE:BOOL=ON 36 36 37 You can change the default configuration file name:38 DEFAULT_CONF_FILE:STRING=/path/to/some/free diameter.conf37 You can change the default configuration file pathname: 38 DEFAULT_CONF_FILE:STRING=/path/to/some/freeDiameter.conf 39 39 -
README
r0 r1 1 The FreeDiameter daemon implements the Diameter base protocol.2 Loadable extensions add the logic of Diameter applications oradvanced use of the daemon.1 The freeDiameter daemon implements the Diameter base protocol. 2 Loadable extensions add the logic of Diameter applications and advanced use of the daemon. 3 3 See http://aaa.koganei.wide.ad.jp/ for more information on the project. 4 FreeDiameter was previously known as the "waaad" project (WIDE AAA Daemon)4 freeDiameter was previously known as the "waaad" project (WIDE AAA Daemon) 5 5 6 This version is not related to the "freediameter" project from Sun, which seems abandoned.6 This project is not related to the "freediameter" project from Sun on sourceforge. 7 7 8 8 Author: Sebastien Decugis. -
freeDiameter/CMakeLists.txt
r0 r1 1 1 # The subproject name 2 Project("free diameterd" C)2 Project("freeDiameterd" C) 3 3 4 4 SET(PROJECT_VERSION 0.1) … … 7 7 # List of source files 8 8 SET(FD_COMMON_SRC 9 f d.h9 fD.h 10 10 dict_base_proto.c 11 11 ) 12 12 13 13 # Building the executable 14 ADD_EXECUTABLE(free diameterd ${FD_COMMON_SRC} main.c)14 ADD_EXECUTABLE(freeDiameterd ${FD_COMMON_SRC} main.c) 15 15 16 16 # The link command 17 LINK_DIRECTORIES(${CURRENT_BINARY_DIR}/../libfree diameter)18 TARGET_LINK_LIBRARIES(free diameterd libfreediameter ${FD_LIBS})17 LINK_DIRECTORIES(${CURRENT_BINARY_DIR}/../libfreeDiameter) 18 TARGET_LINK_LIBRARIES(freeDiameterd libfreeDiameter ${FD_LIBS}) 19 19 20 20 # The unary tests directory -
freeDiameter/dict_base_proto.c
r0 r1 37 37 */ 38 38 39 #include "f d.h"39 #include "fD.h" 40 40 41 41 #include <netinet/in.h> -
freeDiameter/fD.h
r0 r1 34 34 *********************************************************************************************************/ 35 35 36 /* This file contains the definitions for internal use in the free diameter daemon */36 /* This file contains the definitions for internal use in the freeDiameter daemon */ 37 37 38 38 #ifndef _FD_H 39 39 #define _FD_H 40 40 41 #include <free diameter/freediameter-host.h>42 #include <free diameter/freediameter.h>41 #include <freeDiameter/freeDiameter-host.h> 42 #include <freeDiameter/freeDiameter.h> 43 43 44 44 /* Create all the dictionary objects defined in the Diameter base RFC. */ -
freeDiameter/main.c
r0 r1 34 34 *********************************************************************************************************/ 35 35 36 #include "f d.h"36 #include "fD.h" 37 37 38 38 /* Entry point */ … … 54 54 fd_dict_dump(fd_g_dict); 55 55 56 TRACE_DEBUG(INFO, " FreeDiameter daemon initialized.");56 TRACE_DEBUG(INFO, "freeDiameter daemon initialized."); 57 57 58 58 return 0; -
freeDiameter/tests/CMakeLists.txt
r0 r1 1 1 # Test directory 2 PROJECT("libfree diameter tests" C)2 PROJECT("libfreeDiameter tests" C) 3 3 4 4 # give the possibility to configure the timeout duration for the tests … … 35 35 # ENDFOREACH(SRC_FILE) 36 36 37 # Create an archive with the daemon common files 38 ADD_LIBRARY(f dcore STATIC ${TEST_COMMON_SRC})37 # Create an archive with the daemon common files (all but main) 38 ADD_LIBRARY(fDcore STATIC ${TEST_COMMON_SRC}) 39 39 40 40 … … 43 43 FOREACH( TEST ${TEST_LIST} ) 44 44 ADD_EXECUTABLE(${TEST} ${TEST}.c tests.h) 45 TARGET_LINK_LIBRARIES(${TEST} libfree diameter fdcore ${FD_LIBS})45 TARGET_LINK_LIBRARIES(${TEST} libfreeDiameter fDcore ${FD_LIBS}) 46 46 ADD_TEST(${TEST} ${EXECUTABLE_OUTPUT_PATH}/${TEST}) 47 47 ENDFOREACH( TEST ) -
freeDiameter/tests/testmq.c
r0 r1 36 36 #include "tests.h" 37 37 38 /* Structure for testing thre ashold function */38 /* Structure for testing threshold function */ 39 39 static struct thrh_test { 40 40 struct mqueue * queue; /* pointer to the queue */ -
freeDiameter/tests/tests.h
r0 r1 42 42 #define _TESTS_H 43 43 44 #include "f d.h"44 #include "fD.h" 45 45 46 46 #include <pthread.h> -
include/freeDiameter/CMakeLists.txt
r0 r1 1 #CMake configuration for free diameter include directory1 #CMake configuration for freeDiameter include directory 2 2 3 Project(" FreeDiameter include directory" C)3 Project("freeDiameter include directory" C) 4 4 5 5 ######################## … … 74 74 # The default configuration file name 75 75 IF (NOT DEFAULT_CONF_FILE) 76 SET(DEFAULT_CONF_FILE "free diameter.conf")76 SET(DEFAULT_CONF_FILE "freeDiameter.conf") 77 77 ENDIF (NOT DEFAULT_CONF_FILE) 78 78 ########################## 79 79 80 80 # Generate the host.h file 81 CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/free diameter-host.h.in ${CMAKE_CURRENT_BINARY_DIR}/freediameter-host.h)81 CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/freeDiameter-host.h.in ${CMAKE_CURRENT_BINARY_DIR}/freeDiameter-host.h) 82 82 83 83 # Save the FD_LIBS for parent scope -
include/freeDiameter/freeDiameter.h
r0 r1 38 38 39 39 40 #include <free diameter/libfreediameter.h>40 #include <freeDiameter/libfreeDiameter.h> 41 41 42 42 -
include/freeDiameter/libfreeDiameter.h
r0 r1 34 34 *********************************************************************************************************/ 35 35 36 /* This file contains the definitions of functions and types used by the libfree diameter library.37 * 38 * This library is meant to be used by both the free diameter daemon and its extensions.36 /* This file contains the definitions of functions and types used by the libfreeDiameter library. 37 * 38 * This library is meant to be used by both the freeDiameter daemon and its extensions. 39 39 * 40 40 * It provides the tools to manipulate Diameter messages and related data. 41 41 * 42 * This file should always be included as #include <freediameter/libfreediameter.h> 43 * Note that this library does not store any state. The daemon must pass the pointer to 44 * the dictionary and other global objects to all extensions that use the libfreediameter 45 * library. 42 * This file should always be included as #include <freeDiameter/libfreeDiameter.h> 46 43 */ 47 44 … … 50 47 51 48 #ifndef FD_IS_CONFIG 52 #error "You must include 'free diameter-host.h' before this file."49 #error "You must include 'freeDiameter-host.h' before this file." 53 50 #endif /* FD_IS_CONFIG */ 54 51 -
libfreeDiameter/CMakeLists.txt
r0 r1 1 1 # Name of the subproject 2 Project("libfree diameter" C)2 Project("libfreeDiameter" C) 3 3 4 4 SET(PROJECT_COPYRIGHT "Copyright (c) 2008-2009, WIDE Project (www.wide.ad.jp) and NICT (www.nict.go.jp)") … … 6 6 # List of source files for the library 7 7 SET(LFD_SRC 8 libf d.h8 libfD.h 9 9 init.c 10 10 log.c … … 16 16 17 17 # Build as a shared library 18 ADD_LIBRARY(libfree diameter SHARED ${LFD_SRC})18 ADD_LIBRARY(libfreeDiameter SHARED ${LFD_SRC}) 19 19 20 20 # Avoid the liblib name 21 SET_TARGET_PROPERTIES(libfree diameter PROPERTIES OUTPUT_NAME "freediameter")21 SET_TARGET_PROPERTIES(libfreeDiameter PROPERTIES OUTPUT_NAME "freeDiameter") 22 22 23 23 # The library itself needs other libraries 24 TARGET_LINK_LIBRARIES(libfree diameter ${FD_LIBS})24 TARGET_LINK_LIBRARIES(libfreeDiameter ${FD_LIBS}) 25 25 -
libfreeDiameter/dictionary.c
r0 r1 34 34 *********************************************************************************************************/ 35 35 36 #include "libf d.h"36 #include "libfD.h" 37 37 38 38 /* Names of the base types */ … … 1290 1290 /*******************************************************************************************************/ 1291 1291 1292 /* These are the functions exported outside libfree diameter. */1292 /* These are the functions exported outside libfreeDiameter. */ 1293 1293 1294 1294 /* Get the data associated to an object */ -
libfreeDiameter/init.c
r0 r1 34 34 *********************************************************************************************************/ 35 35 36 #include "libf d.h"36 #include "libfD.h" 37 37 38 38 int fd_lib_init(void) … … 43 43 ret = pthread_key_create(&fd_log_thname, free); 44 44 if (ret != 0) { 45 fprintf(stderr, "Error initializing the libfree diameter library: %s\n", strerror(ret) );45 fprintf(stderr, "Error initializing the libfreeDiameter library: %s\n", strerror(ret) ); 46 46 return ret; 47 47 } -
libfreeDiameter/libfD.h
r0 r1 34 34 *********************************************************************************************************/ 35 35 36 /* This file contains the definitions for internal use in the libfree diameter library */36 /* This file contains the definitions for internal use in the libfreeDiameter library */ 37 37 38 38 #ifndef _LIBFD_H 39 39 #define _LIBFD_H 40 40 41 #include <free diameter/freediameter-host.h>42 #include <free diameter/libfreediameter.h>41 #include <freeDiameter/freeDiameter-host.h> 42 #include <freeDiameter/libfreeDiameter.h> 43 43 44 44 /* Internal to the library */ … … 47 47 48 48 49 50 49 #endif /* _LIBFD_H */ -
libfreeDiameter/lists.c
r0 r1 34 34 *********************************************************************************************************/ 35 35 36 #include "libf d.h"36 #include "libfD.h" 37 37 38 38 /* Initialize a list element */ -
libfreeDiameter/log.c
r0 r1 34 34 *********************************************************************************************************/ 35 35 36 #include "libf d.h"36 #include "libfD.h" 37 37 38 38 #include <stdarg.h> -
libfreeDiameter/messages.c
r0 r1 39 39 */ 40 40 41 #include "libf d.h"41 #include "libfD.h" 42 42 43 43 #include <sys/param.h> -
libfreeDiameter/mqueues.c
r0 r1 46 46 */ 47 47 48 #include "libf d.h"48 #include "libfD.h" 49 49 50 50 /* Definition of a message queue object */ … … 59 59 int thrs; /* number of threads waiting for a new message (when count is 0) */ 60 60 61 uint16_t high; /* High level threshold (see libfree diameter.h for details) */61 uint16_t high; /* High level threshold (see libfreeDiameter.h for details) */ 62 62 uint16_t low; /* Low level threshhold */ 63 63 void *data; /* Opaque pointer for threshold callbacks */
Note: See TracChangeset
for help on using the changeset viewer.