Navigation



Ignore:
Timestamp:
Apr 15, 2010, 11:56:32 AM (14 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Added two plugins for RADIUS/Diameter gateway debug.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/app_radgw/CMakeLists.txt

    r254 r255  
    1717        radius.c
    1818        md5.c
     19        rgw_msg_codes.c
     20        rgw_msg_attrtype.c
    1921)
    2022SET( RG_COMMON_HEADER
     
    5456
    5557
     58########### RADIUS/Diameter translation agent plugins (support for RADIUS protocol) ############
     59# Use the macro RGWX_ADD_PLUGIN(name files...) to create a plugin.
     60# It is equivalent to add_library with the appropriate parameters
     61# and naming conventions (.rgwx : Radius GateWay eXtension)
     62MACRO(RGWX_ADD_PLUGIN PLGNAME)
     63  ADD_LIBRARY(${PLGNAME} MODULE ${ARGN})
     64  SET_TARGET_PROPERTIES(${PLGNAME} PROPERTIES PREFIX "" )
     65  SET_TARGET_PROPERTIES(${PLGNAME} PROPERTIES SUFFIX ".rgwx" )
     66  TARGET_LINK_LIBRARIES(${PLGNAME} rgw_common)
     67ENDMACRO(RGWX_ADD_PLUGIN)
     68
     69# Example of plugin:
     70OPTION(BUILD_RGWX_SAMPLE "Build sample plugin? (for developers only)" OFF)
     71        IF (BUILD_RGWX_SAMPLE)
     72           RGWX_ADD_PLUGIN(sample ${RG_COMMON_HEADER} rgwx_sample.c)
     73        ENDIF (BUILD_RGWX_SAMPLE)
     74
     75# A plugin for debug: dumps RADIUS and Diameter messages state at the time the plugin is called.
     76OPTION(BUILD_RGWX_DEBUG "Build debug plugin? (display status of RADIUS and Diameter messages)" ON)
     77        IF (BUILD_RGWX_DEBUG)
     78           RGWX_ADD_PLUGIN(debug ${RG_COMMON_HEADER} rgwx_debug.c)
     79        ENDIF (BUILD_RGWX_DEBUG)
    5680
    5781
     
    6387
    6488
    65 ########### Sub extensions #############
    66 # Example of support extension:
    67 # OPTION(BUILD_RADIUS_GW_SAMPLE "Build sample sub-extension? (for debug only)" OFF)
    68 #       IF (BUILD_RADIUS_GW_SAMPLE)
    69 #          ADD_LIBRARY(sub_sample MODULE ${RG_COMMON_HEADER} sub_sample.c)
    70 #          TARGET_LINK_LIBRARIES(sub_sample rg_common)
    71 #       ENDIF (BUILD_RADIUS_GW_SAMPLE)
    72        
    73 # OPTION(BUILD_SUB_DEBUG "Build debug sub-extension? (display status of RADIUS and Diameter messages)" ON)
    74 #       IF (BUILD_SUB_DEBUG)
    75 #          ADD_LIBRARY(sub_debug MODULE ${RG_COMMON_HEADER} sub_debug.c)
    76 #          TARGET_LINK_LIBRARIES(sub_debug rg_common)
    77 #       ENDIF (BUILD_SUB_DEBUG)
     89
    7890#
    7991# OPTION(BUILD_SUB_ECHO_DROP "Build 'echo/drop' sub-extension? (echo or drop specific RADIUS attributes, no Diameter translation)" ON)
Note: See TracChangeset for help on using the changeset viewer.