Navigation


Changeset 114:5b3868944e2b in freeDiameter for freeDiameter/tests/testmesg.c


Ignore:
Timestamp:
Dec 8, 2009, 4:55:18 PM (14 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Reporting errors in parse_dict function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freeDiameter/tests/testmesg.c

    r35 r114  
    687687                                buf_cpy[5] = 0x11;
    688688                                CHECK( 0, fd_msg_parse_buffer( &buf_cpy, 344, &msg) );
    689                                 CHECK( ENOTSUP, fd_msg_parse_dict( msg, fd_g_config->cnf_dict ) );
     689                                CHECK( ENOTSUP, fd_msg_parse_dict( msg, fd_g_config->cnf_dict, NULL ) );
    690690                               
    691691                                /* reset */
     
    702702                                /* Check that we cannot support this message now */
    703703                                CHECK( 0, fd_msg_parse_buffer( &buf_cpy, 344, &msg) );
    704                                 CHECK( ENOTSUP, fd_msg_parse_dict( msg, fd_g_config->cnf_dict ) );
     704                                CHECK( ENOTSUP, fd_msg_parse_dict( msg, fd_g_config->cnf_dict, NULL ) );
    705705                               
    706706                                /* reset */
     
    716716                                /* Check that we can support this message now */
    717717                                CHECK( 0, fd_msg_parse_buffer( &buf_cpy, 344, &msg) );
    718                                 CHECK( 0, fd_msg_parse_dict( msg, fd_g_config->cnf_dict ) );
     718                                CHECK( 0, fd_msg_parse_dict( msg, fd_g_config->cnf_dict, NULL ) );
    719719                               
    720720                                #if 0
     
    727727                       
    728728                        CHECK( 0, fd_msg_parse_buffer( &buf, 344, &msg) );
    729                         CHECK( 0, fd_msg_parse_dict( msg, fd_g_config->cnf_dict ) );
     729                        CHECK( 0, fd_msg_parse_dict( msg, fd_g_config->cnf_dict, NULL ) );
    730730                        #if 0
    731731                        fd_msg_dump_walk(0, msg);
     
    964964                /* Ok, now let's recreate the message */
    965965                CHECK( 0, fd_msg_parse_buffer( &buf, 64, &cer) );
    966                 CHECK( 0, fd_msg_parse_dict( cer, fd_g_config->cnf_dict ) );
     966                CHECK( 0, fd_msg_parse_dict( cer, fd_g_config->cnf_dict, NULL ) );
    967967               
    968968                /* Get the pointers to the first and last AVP */
     
    11941194                       
    11951195                        CHECK( 0, fd_msg_parse_buffer( &buf, 148, &msg) );
    1196                         CHECK( 0, fd_msg_parse_dict( msg, fd_g_config->cnf_dict ) );
     1196                        CHECK( 0, fd_msg_parse_dict( msg, fd_g_config->cnf_dict, NULL ) );
    11971197                        #if 0
    11981198                        fd_msg_dump_walk(0, msg);
Note: See TracChangeset for help on using the changeset viewer.