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();
}
// Application-id
- i_aux = appid->getIntegerValue();
+ u_aux = appid->getIntegerValue();
- if(i_aux < 0) {
+ if(u_aux < 0) {
std::string msg = "Error processing command <application-id '"; msg += appid->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 <hop-by-hop-id '"; msg += hbh->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 <end-to-end-id '"; msg += ete->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;