Navigation


Changeset 268:b364ffffa2ed in freeDiameter


Ignore:
Timestamp:
Apr 19, 2010, 4:58:02 PM (14 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Ported the Echo/Drop? plugin from waaad

Location:
extensions/app_radgw
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/app_radgw/CMakeLists.txt

    r259 r268  
    9595
    9696
    97 
    98 
    99 
    100 
    101 
    102 
    103 #
    104 # OPTION(BUILD_SUB_ECHO_DROP "Build 'echo/drop' sub-extension? (echo or drop specific RADIUS attributes, no Diameter translation)" ON)
    105 #       IF (BUILD_SUB_ECHO_DROP)
    106 #          ADD_DEFINITIONS(-DSUB_ECHO_DROP_VERBO=2)
    107 #          BISON_FILE(sub_echo_drop.y)
    108 #          FLEX_FILE(sub_echo_drop.l)
    109 #          SET_SOURCE_FILES_PROPERTIES(lex.sub_echo_drop.c sub_echo_drop.tab.c PROPERTIES COMPILE_FLAGS "-I ${CMAKE_CURRENT_SOURCE_DIR}")
    110 #          ADD_LIBRARY(sub_echo_drop MODULE ${RG_COMMON_HEADER}
    111 #               sub_echo_drop.c
    112 #               sub_echo_drop.h
    113 #               lex.sub_echo_drop.c
    114 #               sub_echo_drop.tab.c
    115 #               sub_echo_drop.tab.h)
    116 #          TARGET_LINK_LIBRARIES(sub_echo_drop rg_common)
    117 #       ENDIF (BUILD_SUB_ECHO_DROP)
     97### Generic plugin to handle some attributes (either delete them or simply echo them in the answer)
     98OPTION(BUILD_RGWX_ECHODROP "Build 'echo/drop' plugin? (drop specific RADIUS attributes or echo them in RADIUS answer)" ON)
     99        IF (BUILD_RGWX_ECHODROP)
     100           BISON_FILE(rgwx_echodrop.y)
     101           FLEX_FILE(rgwx_echodrop.l)
     102           SET_SOURCE_FILES_PROPERTIES(lex.rgwx_echodrop.c rgwx_echodrop.tab.c PROPERTIES COMPILE_FLAGS "-I ${CMAKE_CURRENT_SOURCE_DIR}")
     103           RGWX_ADD_PLUGIN(echodrop ${RG_COMMON_HEADER} rgwx_echodrop.h rgwx_echodrop.c lex.rgwx_echodrop.c rgwx_echodrop.tab.c rgwx_echodrop.tab.h )
     104        ENDIF (BUILD_RGWX_ECHODROP)
  • extensions/app_radgw/rgwx_acct.c

    r262 r268  
    7777        CHECK_FCT( fd_dict_search( fd_g_config->cnf_dict, DICT_AVP, AVP_BY_NAME, "State", &new->dict.State, ENOENT) );
    7878        CHECK_FCT( fd_dict_search( fd_g_config->cnf_dict, DICT_AVP, AVP_BY_NAME, "User-Name", &new->dict.User_Name, ENOENT) );
     79       
     80        TODO("Advertize application support...");
    7981       
    8082        *state = new;
Note: See TracChangeset for help on using the changeset viewer.