NSIS-ka
A free C++ implementation of NSIS protocols

Changeset 4093


Ignore:
Timestamp:
Jul 13, 2009, 6:00:46 PM (8 years ago)
Author:
bless
Message:
  • modified tp_queryencap to also intercept packets that have no RAO set, if the new option intercept-requires-rao==false
  • tp_queryencap will check for the C-Flag if intercept-requires-rao==false (otherwise normal Confirm and Data Packets in C-mode will be captured by tp_queryencap, too)
  • renamed option use-rao into send-rao, because it was a misnomer
Location:
ntlp/branches/20080820-configpar
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • ntlp/branches/20080820-configpar/include/gist_conf.h

    r4081 r4093  
    6666    gistconf_advertise_sctp,
    6767    gistconf_verbose_error_responses,
    68     gistconf_use_rao,
     68    gistconf_send_rao,
     69    gistconf_strict_rao,
    6970    gistconf_intercept_cmd,
    7071    gistconf_debug_tp,
  • ntlp/branches/20080820-configpar/nsis-ka.conf

    r4076 r4093  
    8383verbose-errors = on
    8484
    85 # Send Queries with experimental RAO
    86 use-rao = off
     85# Send Queries with Router Alert Option turned on
     86send-rao = on
     87
     88# Intercept only packet with RAO present? (more liberal interception looks only after magic number)
     89intercept-requires-rao = no
    8790
    8891# this will hexdump every protocol data unit that is sent or received
  • ntlp/branches/20080820-configpar/src/gist_conf.cpp

    r4037 r4093  
    7373  registerPar( new configpar<bool>(  gist_realm, gistconf_advertise_sctp,  "advertise-sctp", "advertise SCTP as supported transport protocol at handshake (bool)", true, sctpenable_default) );
    7474  registerPar( new configpar<bool>(  gist_realm, gistconf_verbose_error_responses,  "verbose-errors", "send more error responses back (should be only enabled for protocol debugging)", true, true) );
    75   registerPar( new configpar<bool>(  gist_realm, gistconf_use_rao,  "use-rao", "send Query with router alert option", true, true) );
     75  registerPar( new configpar<bool>(  gist_realm, gistconf_send_rao,  "send-rao", "send Query with router alert option", true, true) );
     76  registerPar( new configpar<bool>(  gist_realm, gistconf_strict_rao,  "intercept-requires-rao", "intercept requires presence of Router Alert Option", true, false) );
    7677  registerPar( new configpar<bool>(  gist_realm, gistconf_debug_tp,        "debug-tp", "hex dump PDUs when received or sent PDUs (bool)", true, false) );
    7778  registerPar( new configpar<string>(gist_realm, gistconf_intercept_cmd,   "intercept-cmd",  "string that contains the name of the script to enable GIST packet interception (string)", false, "./intercept") );
  • ntlp/branches/20080820-configpar/src/ntlp_starter.cpp

    r4028 r4093  
    246246                          raovec,
    247247                          udpproto,
     248                          gconf.getparref<bool>(gistconf_strict_rao),
    248249                          GIST_magic_number,
    249250                          5000UL,
  • ntlp/branches/20080820-configpar/src/ntlp_statemodule_querier.cpp

    r3923 r4093  
    123123  else
    124124  {
    125     if ( gconf.getpar<bool>(gistconf_use_rao) )
     125    if ( gconf.getpar<bool>(gistconf_send_rao) )
    126126    {
    127127            // set RAO value on peer address
  • ntlp/branches/20080820-configpar/src/signalingmodule_ntlp.cpp

    r4085 r4093  
    691691            target->set_port(param.well_known_port);
    692692            // if use RAO option
    693             if ( gconf.getpar<bool>(gistconf_use_rao) )
     693            if ( gconf.getpar<bool>(gistconf_send_rao) )
    694694            {
    695695                    target->set_protocol(prot_query_encap);
Note: See TracChangeset for help on using the changeset viewer.