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

Changeset 4233


Ignore:
Timestamp:
Aug 12, 2009, 11:06:08 AM (8 years ago)
Author:
bless
Message:
  • removal of obsolete and unused method Statemodule::profile_valid()
Location:
ntlp/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • ntlp/trunk/Changelog

    r4140 r4233  
    1414          consistent naming of parameters at command line, config file,
    1515          and interactive console
     16        - included mobility enhancements by Max Laier (Flow Info Service),
     17          this will only be compiled if you have a corresponding MIP6d installed
    1618        - improved GISTConsole to set all available GIST parameters
    1719        - implemented NAT traversal (early stage)
    1820        - improved responder cookie mechanism to carry transparent data, too
    1921        - cleaned up code for setting the RAO (Micha Lenk)
     22        - routingentry is now a full class
    2023        - several smaller bug fixes
    2124       
  • ntlp/trunk/src/ntlp_statemodule.h

    r4210 r4233  
    237237  void process_mobility_msg(MobilityMsg* mobmsg);
    238238       
    239   /// check if a stackprofile is applicable
    240   bool profile_valid(stackprop* proposal, stackprofile* profile);
    241 
    242239  /// check a responder cookie, use local secrets and resp_cookie generation function
    243240  bool evaluate_query_cookie(routingkey* r_key, respcookie* resp);
  • ntlp/trunk/src/ntlp_statemodule_main.cpp

    r4231 r4233  
    10611061
    10621062
    1063 
    1064 
    1065 /**
    1066  * Check a profile for Validity
    1067  * @param proposal -- the proposal to match agains
    1068  * @param profile -- the profile to match
    1069  *
    1070  * @note Obsolete Function, kept for reference
    1071  */
    1072 bool Statemodule::profile_valid(stackprop* proposal, stackprofile* profile) {
    1073 
    1074     bool valid=false;
    1075     bool differs=false;
    1076 
    1077     // Here we check if a given stackprofile would fit in a given stack proposal
    1078 
    1079     // iterate over all profiles in the proposal
    1080     for (unsigned int i=0; i<proposal->get_count(); i++) {
    1081         differs=false;
    1082         // only if profiles count matches we hava a chance
    1083         if (proposal->get_profile(i)->prof_vec.size()==profile->prof_vec.size()) {
    1084            
    1085             // iterate fields - we assume them to be correctly ordered protocol layers
    1086             for (unsigned int j=0; j< profile->prof_vec.size(); j++) {
    1087                 if (proposal->get_profile(i)->prof_vec[j]!=profile->prof_vec[j]) {
    1088                     differs=true;
    1089                 }
    1090             }
    1091         } else {
    1092             differs=true;
    1093         }
    1094            
    1095         // if we run through a profile which allows our profile, we are ready to go
    1096         if (!differs) valid=true;
    1097     }
    1098 
    1099     // now compare, set valid to "true", if we could verify the profile
    1100     return valid;   
    1101 }
    1102 
    1103 
    1104 
    1105 
    11061063/**
    11071064 * Send a GIST Error Message, calculate the peer correctly from PDU flags and NLI and/or IP source
Note: See TracChangeset for help on using the changeset viewer.