Mercurial > hg > freeDiameter
comparison extensions/test_app/test_app.c @ 1214:c2fbaf2985f4
New options to test_app extension to generate long Diameter messages
author | Sebastien Decugis <sdecugis@freediameter.net> |
---|---|
date | Tue, 18 Jun 2013 16:27:45 +0800 |
parents | 2c62bba0ef4b |
children |
comparison
equal
deleted
inserted
replaced
1213:b1c4876b1896 | 1214:c2fbaf2985f4 |
---|---|
52 /* Set the default values */ | 52 /* Set the default values */ |
53 ta_conf->vendor_id = 999999; /* Dummy value */ | 53 ta_conf->vendor_id = 999999; /* Dummy value */ |
54 ta_conf->appli_id = 0xffffff; /* dummy value */ | 54 ta_conf->appli_id = 0xffffff; /* dummy value */ |
55 ta_conf->cmd_id = 0xfffffe; /* Experimental */ | 55 ta_conf->cmd_id = 0xfffffe; /* Experimental */ |
56 ta_conf->avp_id = 0xffffff; /* dummy value */ | 56 ta_conf->avp_id = 0xffffff; /* dummy value */ |
57 ta_conf->long_avp_len = 5000; | |
57 ta_conf->mode = MODE_SERV | MODE_CLI; | 58 ta_conf->mode = MODE_SERV | MODE_CLI; |
58 ta_conf->dest_realm = strdup(fd_g_config->cnf_diamrlm); | 59 ta_conf->dest_realm = strdup(fd_g_config->cnf_diamrlm); |
59 ta_conf->dest_host = NULL; | 60 ta_conf->dest_host = NULL; |
60 ta_conf->signal = TEST_APP_DEFAULT_SIGNAL; | 61 ta_conf->signal = TEST_APP_DEFAULT_SIGNAL; |
61 ta_conf->bench_concur = 100; | 62 ta_conf->bench_concur = 100; |
74 fd_log_debug( "------- app_test configuration dump: ---------"); | 75 fd_log_debug( "------- app_test configuration dump: ---------"); |
75 fd_log_debug( " Vendor Id .......... : %u", ta_conf->vendor_id); | 76 fd_log_debug( " Vendor Id .......... : %u", ta_conf->vendor_id); |
76 fd_log_debug( " Application Id ..... : %u", ta_conf->appli_id); | 77 fd_log_debug( " Application Id ..... : %u", ta_conf->appli_id); |
77 fd_log_debug( " Command Id ......... : %u", ta_conf->cmd_id); | 78 fd_log_debug( " Command Id ......... : %u", ta_conf->cmd_id); |
78 fd_log_debug( " AVP Id ............. : %u", ta_conf->avp_id); | 79 fd_log_debug( " AVP Id ............. : %u", ta_conf->avp_id); |
80 fd_log_debug( " Long AVP Id ........ : %u", ta_conf->long_avp_id); | |
81 fd_log_debug( " Long AVP len ....... : %zu", ta_conf->long_avp_len); | |
79 fd_log_debug( " Mode ............... : %s%s%s", ta_conf->mode & MODE_SERV ? "Serv" : "", ta_conf->mode & MODE_CLI ? "Cli" : "", ta_conf->mode & MODE_BENCH ? " (Benchmark)" : ""); | 82 fd_log_debug( " Mode ............... : %s%s%s", ta_conf->mode & MODE_SERV ? "Serv" : "", ta_conf->mode & MODE_CLI ? "Cli" : "", ta_conf->mode & MODE_BENCH ? " (Benchmark)" : ""); |
80 fd_log_debug( " Destination Realm .. : %s", ta_conf->dest_realm ?: "- none -"); | 83 fd_log_debug( " Destination Realm .. : %s", ta_conf->dest_realm ?: "- none -"); |
81 fd_log_debug( " Destination Host ... : %s", ta_conf->dest_host ?: "- none -"); | 84 fd_log_debug( " Destination Host ... : %s", ta_conf->dest_host ?: "- none -"); |
82 fd_log_debug( " Signal ............. : %i", ta_conf->signal); | 85 fd_log_debug( " Signal ............. : %i", ta_conf->signal); |
83 fd_log_debug( "------- /app_test configuration dump ---------"); | 86 fd_log_debug( "------- /app_test configuration dump ---------"); |