X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=source%2Fdiameter%2Fcodec%2FMessage.cpp;h=e0179a3fa4a83fb95afbe6d7406f78bc76b13203;hb=c68d53c4623b63ee20014a7eae0b9759a490c90e;hp=e28ca64cf906e97042b53e1be8789833b569c981;hpb=4e12ac57e93c052f716a6305ad8fc099c45899d1;p=anna.git diff --git a/source/diameter/codec/Message.cpp b/source/diameter/codec/Message.cpp index e28ca64..e0179a3 100644 --- a/source/diameter/codec/Message.cpp +++ b/source/diameter/codec/Message.cpp @@ -1,8 +1,8 @@ -// ANNA - Anna is Not 'N' Anymore +// ANNA - Anna is Not Nothingness Anymore // // (c) Copyright 2005-2014 Eduardo Ramos Testillano & Francisco Ruiz Rayo // -// https://bitbucket.org/testillano/anna +// http://redmine.teslayout.com/projects/anna-suite // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions @@ -14,7 +14,7 @@ // copyright notice, this list of conditions and the following disclaimer // in the documentation and/or other materials provided with the // distribution. -// * Neither the name of Google Inc. nor the names of its +// * Neither the name of the copyright holder nor the names of its // contributors may be used to endorse or promote products derived from // this software without specific prior written permission. // @@ -709,6 +709,7 @@ void Message::fromXML(const anna::xml::Node* messageNode) throw(anna::RuntimeExc hbh = messageNode->getAttribute("hop-by-hop-id", false /* no exception */); ete = messageNode->getAttribute("end-by-end-id", false /* no exception */); int i_aux; + unsigned int u_aux; if(version) { i_aux = version->getIntegerValue(); @@ -808,41 +809,41 @@ void Message::fromXML(const anna::xml::Node* messageNode) throw(anna::RuntimeExc } // Application-id - i_aux = appid->getIntegerValue(); + u_aux = appid->getIntegerValue(); - if(i_aux < 0) { + if(u_aux < 0) { std::string msg = "Error processing command getValue(); msg += "': negative values are not allowed"; throw anna::RuntimeException(msg, ANNA_FILE_LOCATION); } - setApplicationId(i_aux); + setApplicationId(u_aux); // Hob-by-hop-id if(hbh) { - i_aux = hbh->getIntegerValue(); + u_aux = hbh->getIntegerValue(); - if(i_aux < 0) { + if(u_aux < 0) { std::string msg = "Error processing command getValue(); msg += "': negative values are not allowed"; throw anna::RuntimeException(msg, ANNA_FILE_LOCATION); } - } else i_aux = 0; + } else u_aux = 0; - setHopByHop(i_aux); + setHopByHop(u_aux); // End-to-end-id if(ete) { - i_aux = ete->getIntegerValue(); + u_aux = ete->getIntegerValue(); - if(i_aux < 0) { + if(u_aux < 0) { std::string msg = "Error processing command getValue(); msg += "': negative values are not allowed"; throw anna::RuntimeException(msg, ANNA_FILE_LOCATION); } - } else i_aux = 0; + } else u_aux = 0; - setEndToEnd(i_aux); + setEndToEnd(u_aux); // Childrens Avp *avp;