diff --git a/src/applications/diameter/DiameterBase.cc b/src/applications/diameter/DiameterBase.cc index d45988dfa4f16103282dbd7bdd586bad49618189..1734114810f37009f4818989d5625c9e31eda517 100644 --- a/src/applications/diameter/DiameterBase.cc +++ b/src/applications/diameter/DiameterBase.cc @@ -1,4 +1,6 @@ // +// Copyright (C) 2012 Calin Cerchez +// // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or diff --git a/src/applications/diameter/DiameterBase.h b/src/applications/diameter/DiameterBase.h index c0b8805f3c5ae4559bfca4b20b9678bd538f5c88..5c9dfa401906e761ec4fa1a294fe8cfdc832a358 100644 --- a/src/applications/diameter/DiameterBase.h +++ b/src/applications/diameter/DiameterBase.h @@ -1,4 +1,6 @@ // +// Copyright (C) 2012 Calin Cerchez +// // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or @@ -54,7 +56,7 @@ public: void initialize(int stage); void handleMessage(cMessage *msg); - virtual DiameterMessage *processMessage(DiameterMessage *msg) {} + virtual DiameterMessage *processMessage(DiameterMessage *msg) { return NULL; } int getOutboundStreams() { return outboundStreams; } SCTPSocket getServerSocket() { return serverSocket; } diff --git a/src/applications/diameter/DiameterBase.ned b/src/applications/diameter/DiameterBase.ned index 4daabd431405f038f86562df3a2fb1a6fdcff9e1..2e4484465498636ec7da5907702bab1f2fe106df 100644 --- a/src/applications/diameter/DiameterBase.ned +++ b/src/applications/diameter/DiameterBase.ned @@ -1,4 +1,6 @@ // +// Copyright (C) 2012 Calin Cerchez +// // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or diff --git a/src/applications/diameter/DiameterClient.cc b/src/applications/diameter/DiameterClient.cc index d44fc54fb8b1682d18d33abecdde0998bc0084de..78182a5579d83cfacffe3b5b8bb6d24c140af6f4 100644 --- a/src/applications/diameter/DiameterClient.cc +++ b/src/applications/diameter/DiameterClient.cc @@ -1,4 +1,6 @@ // +// Copyright (C) 2012 Calin Cerchez +// // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or diff --git a/src/applications/diameter/DiameterClient.h b/src/applications/diameter/DiameterClient.h index 922a7f2c527c79cb95fe57c00456d3ecd651e184..ba8e7e7290e9bc772c105060d7e1c37ab27a1a0c 100644 --- a/src/applications/diameter/DiameterClient.h +++ b/src/applications/diameter/DiameterClient.h @@ -1,4 +1,6 @@ // +// Copyright (C) 2012 Calin Cerchez +// // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or diff --git a/src/applications/diameter/DiameterClient.ned b/src/applications/diameter/DiameterClient.ned index a41e9c74d590270fbeda6ae6c00e95f88c951dbb..ec4f2d0f420a1b2f82e471db54e880d6d3f13353 100644 --- a/src/applications/diameter/DiameterClient.ned +++ b/src/applications/diameter/DiameterClient.ned @@ -1,4 +1,6 @@ // +// Copyright (C) 2012 Calin Cerchez +// // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or diff --git a/src/applications/diameter/DiameterNode.ned b/src/applications/diameter/DiameterNode.ned index b4225e5da6d3755e979a7c906af6ceb4d0df0327..3703bd188ab509a00c2dc7eb6a1b57b4a8cd13fc 100644 --- a/src/applications/diameter/DiameterNode.ned +++ b/src/applications/diameter/DiameterNode.ned @@ -1,4 +1,6 @@ // +// Copyright (C) 2012 Calin Cerchez +// // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or diff --git a/src/applications/diameter/DiameterServer.cc b/src/applications/diameter/DiameterServer.cc index e027fa00bf135fdcec321934b7b2c7514941803a..5f60fcb225a230a5ba5105965492494baa3a75d4 100644 --- a/src/applications/diameter/DiameterServer.cc +++ b/src/applications/diameter/DiameterServer.cc @@ -1,4 +1,6 @@ // +// Copyright (C) 2012 Calin Cerchez +// // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or diff --git a/src/applications/diameter/DiameterServer.h b/src/applications/diameter/DiameterServer.h index bb07de73a99a905c8db4bd98937ab6993a73bf5d..31028d3cb45ab433c84549167fb9a296ee92bd0d 100644 --- a/src/applications/diameter/DiameterServer.h +++ b/src/applications/diameter/DiameterServer.h @@ -1,4 +1,6 @@ // +// Copyright (C) 2012 Calin Cerchez +// // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or diff --git a/src/applications/diameter/DiameterServer.ned b/src/applications/diameter/DiameterServer.ned index 22ba5dc320a745bf2ef3895beeaf4c43e63c7d82..9ef599b99d52ada7c8ee750a240b8e9c2e34becc 100644 --- a/src/applications/diameter/DiameterServer.ned +++ b/src/applications/diameter/DiameterServer.ned @@ -1,4 +1,6 @@ // +// Copyright (C) 2012 Calin Cerchez +// // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or diff --git a/src/applications/diameter/connection/DiameterConnection.cc b/src/applications/diameter/connection/DiameterConnection.cc index 78ad2aa956b5c5492e043067096c5994b810c778..f165dcaffec782d7c1c979706f394600160e3ea4 100644 --- a/src/applications/diameter/connection/DiameterConnection.cc +++ b/src/applications/diameter/connection/DiameterConnection.cc @@ -1,4 +1,6 @@ // +// Copyright (C) 2012 Calin Cerchez +// // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or @@ -98,6 +100,7 @@ void DiameterConnection::socketDataArrived(int32 connId, void *yourPtr, cPacket default: PeerEvent event = R_RCV_MESSAGE; peer->performStateTransition(event, dmsg); + break; } } else { switch (hdr.getCommandCode()) { @@ -119,6 +122,7 @@ void DiameterConnection::socketDataArrived(int32 connId, void *yourPtr, cPacket default: PeerEvent event = I_RCV_MESSAGE; peer->performStateTransition(event, dmsg); + break; } } } diff --git a/src/applications/diameter/connection/DiameterConnection.h b/src/applications/diameter/connection/DiameterConnection.h index 4f30f0e5598da08dc7bb5d55d27312158734abed..10916c50355b8e2affb1ed9a061f2418ed0f3d87 100644 --- a/src/applications/diameter/connection/DiameterConnection.h +++ b/src/applications/diameter/connection/DiameterConnection.h @@ -1,4 +1,6 @@ // +// Copyright (C) 2012 Calin Cerchez +// // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or diff --git a/src/applications/diameter/connection/DiameterConnectionMap.cc b/src/applications/diameter/connection/DiameterConnectionMap.cc index cdcd6f005e25094a934a20212ea7c4b20cc66d26..223e1d45635033da189c822abd83ef1217bffb5c 100644 --- a/src/applications/diameter/connection/DiameterConnectionMap.cc +++ b/src/applications/diameter/connection/DiameterConnectionMap.cc @@ -1,4 +1,6 @@ // +// Copyright (C) 2012 Calin Cerchez +// // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or diff --git a/src/applications/diameter/connection/DiameterConnectionMap.h b/src/applications/diameter/connection/DiameterConnectionMap.h index e7a9a2da8508e255c91a1ed9e62305679f291f42..eb45510cbcc84223f3187ae6241888c103315288 100644 --- a/src/applications/diameter/connection/DiameterConnectionMap.h +++ b/src/applications/diameter/connection/DiameterConnectionMap.h @@ -1,4 +1,6 @@ // +// Copyright (C) 2012 Calin Cerchez +// // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or diff --git a/src/applications/diameter/peer/DiameterApplication.cc b/src/applications/diameter/peer/DiameterApplication.cc index cd962e736ee43fda2121277af248d7ae8a851c5e..f7dce18ca7f1b968923a10772f4c99faa72dd633 100644 --- a/src/applications/diameter/peer/DiameterApplication.cc +++ b/src/applications/diameter/peer/DiameterApplication.cc @@ -1,4 +1,6 @@ // +// Copyright (C) 2012 Calin Cerchez +// // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or diff --git a/src/applications/diameter/peer/DiameterApplication.h b/src/applications/diameter/peer/DiameterApplication.h index 66fbe0780fa0578abc0438540be2964b2d8f3554..943928a884da79b01149572aa5c147b5c4b62c51 100644 --- a/src/applications/diameter/peer/DiameterApplication.h +++ b/src/applications/diameter/peer/DiameterApplication.h @@ -1,4 +1,6 @@ // +// Copyright (C) 2012 Calin Cerchez +// // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or diff --git a/src/applications/diameter/peer/DiameterPeer.cc b/src/applications/diameter/peer/DiameterPeer.cc index f3c0ac1ab7010bd1e34e4dc2c648a041e11396ec..da616c0694a8791b281dd5a30759e10957aa5b03 100644 --- a/src/applications/diameter/peer/DiameterPeer.cc +++ b/src/applications/diameter/peer/DiameterPeer.cc @@ -1,4 +1,6 @@ // +// Copyright (C) 2012 Calin Cerchez +// // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or @@ -126,6 +128,7 @@ void DiameterPeer::performStateTransition(PeerEvent &event, DiameterMessage *msg EV << "DiameterPeer: Received unexpected event\n"; if (msg != NULL) delete msg; + break; } break; case WAIT_CONN_ACK: @@ -156,6 +159,7 @@ void DiameterPeer::performStateTransition(PeerEvent &event, DiameterMessage *msg EV << "DiameterBase: Received unexpected event\n"; if (msg != NULL) delete msg; + break; } break; case WAIT_I_CEA: @@ -187,6 +191,7 @@ void DiameterPeer::performStateTransition(PeerEvent &event, DiameterMessage *msg EV << "DiameterPeer: Received unexpected event\n"; if (msg != NULL) delete msg; + break; } break; case WAIT_CONN_ACK_ELECT: @@ -215,6 +220,7 @@ void DiameterPeer::performStateTransition(PeerEvent &event, DiameterMessage *msg EV << "DiameterPeer: Received unexpected event\n"; if (msg != NULL) delete msg; + break; } break; case WAIT_RETURNS: @@ -248,6 +254,7 @@ void DiameterPeer::performStateTransition(PeerEvent &event, DiameterMessage *msg EV << "DiameterPeer: Received unexpected event\n"; if (msg != NULL) delete msg; + break; } break; case R_OPEN: @@ -297,6 +304,7 @@ void DiameterPeer::performStateTransition(PeerEvent &event, DiameterMessage *msg EV << "DiameterPeer: Received unexpected event\n"; if (msg != NULL) delete msg; + break; } break; case I_OPEN: @@ -345,6 +353,7 @@ void DiameterPeer::performStateTransition(PeerEvent &event, DiameterMessage *msg EV << "DiameterPeer: Received unexpected event\n"; if (msg != NULL) delete msg; + break; } break; case CLOSING: @@ -373,12 +382,14 @@ void DiameterPeer::performStateTransition(PeerEvent &event, DiameterMessage *msg EV << "DiameterPeer: Received unexpected event\n"; if (msg != NULL) delete msg; + break; } break; default: EV << "DiameterPeer: Unknown state\n"; if (msg != NULL) delete msg; + break; } if (oldState != fsm.getState()) @@ -443,6 +454,7 @@ void DiameterPeer::stateEntered() { startTimer(twTimer, "TW-TIMER", TW_TIMER_TIMEOUT + uniform(-2, 2)); break; default:; + break; } } diff --git a/src/applications/diameter/peer/DiameterPeer.h b/src/applications/diameter/peer/DiameterPeer.h index 5082b84bd1e9e320d70e4ea483f3b7bef9c2b2fd..507881832fda00921bf640644450d776f9653b22 100644 --- a/src/applications/diameter/peer/DiameterPeer.h +++ b/src/applications/diameter/peer/DiameterPeer.h @@ -1,4 +1,6 @@ // +// Copyright (C) 2012 Calin Cerchez +// // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or diff --git a/src/applications/diameter/peer/DiameterPeerTable.cc b/src/applications/diameter/peer/DiameterPeerTable.cc index 73abc5319742c0709e7b31e659cd8e310abb55e6..5ef3ea69bef965393a0ed3a032e34ddb342489cb 100644 --- a/src/applications/diameter/peer/DiameterPeerTable.cc +++ b/src/applications/diameter/peer/DiameterPeerTable.cc @@ -1,4 +1,6 @@ // +// Copyright (C) 2012 Calin Cerchez +// // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or diff --git a/src/applications/diameter/peer/DiameterPeerTable.h b/src/applications/diameter/peer/DiameterPeerTable.h index 7e00f3306c9b58c46f29cef6c6890324c9b6e49f..786b5c3b69aa84b4105ef9578f34a5fd2e6d0419 100644 --- a/src/applications/diameter/peer/DiameterPeerTable.h +++ b/src/applications/diameter/peer/DiameterPeerTable.h @@ -1,4 +1,6 @@ // +// Copyright (C) 2012 Calin Cerchez +// // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or diff --git a/src/applications/diameter/session/DiameterSession.cc b/src/applications/diameter/session/DiameterSession.cc index 12bdddb58c7eec19edf691e1ea6ecc5fb7f57b2d..2e2cd69ddf635d0ecee9ca9c7fa73c9f5d8afa70 100644 --- a/src/applications/diameter/session/DiameterSession.cc +++ b/src/applications/diameter/session/DiameterSession.cc @@ -1,4 +1,6 @@ // +// Copyright (C) 2012 Calin Cerchez +// // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or @@ -61,12 +63,14 @@ void DiameterSession::performStateTransition(SessionEvent &event, unsigned applI EV << "DiameterSession: Received unexpected event\n"; if (msg != NULL) delete msg; + break; } break; default: EV << "DiameterSession: Unknown state\n"; if (msg != NULL) delete msg; + break; } if (oldState != fsm->getState()) diff --git a/src/applications/diameter/session/DiameterSession.h b/src/applications/diameter/session/DiameterSession.h index 3d476b03b4f2149cba60303dc44a60a5d5399513..1379ad0a7781fdb6655c3464a22b588760d59e31 100644 --- a/src/applications/diameter/session/DiameterSession.h +++ b/src/applications/diameter/session/DiameterSession.h @@ -1,4 +1,6 @@ // +// Copyright (C) 2012 Calin Cerchez +// // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or diff --git a/src/applications/diameter/session/DiameterSessionTable.cc b/src/applications/diameter/session/DiameterSessionTable.cc index 74d8c27f480a354be3ca35190ec3aca6c84a2492..e2f1010d0e0343c964c1a5580dfabbcef1897b86 100644 --- a/src/applications/diameter/session/DiameterSessionTable.cc +++ b/src/applications/diameter/session/DiameterSessionTable.cc @@ -1,4 +1,6 @@ // +// Copyright (C) 2012 Calin Cerchez +// // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or diff --git a/src/applications/diameter/session/DiameterSessionTable.h b/src/applications/diameter/session/DiameterSessionTable.h index 8dd0d4a12616d0b469568429cef3cba9b897ffca..ed75e39bed8831c4c2a7e65b6fc2ee341f5ca2ec 100644 --- a/src/applications/diameter/session/DiameterSessionTable.h +++ b/src/applications/diameter/session/DiameterSessionTable.h @@ -1,4 +1,6 @@ // +// Copyright (C) 2012 Calin Cerchez +// // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or diff --git a/src/applications/diameter/utils/DiameterMessage.cc b/src/applications/diameter/utils/DiameterMessage.cc index df161b31f1b56cd75b0a328b02ccc68c747d69b6..42e486636c74f49dfaf8e878cbe628b3b4973ea2 100644 --- a/src/applications/diameter/utils/DiameterMessage.cc +++ b/src/applications/diameter/utils/DiameterMessage.cc @@ -1,4 +1,6 @@ // +// Copyright (C) 2012 Calin Cerchez +// // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or diff --git a/src/applications/diameter/utils/DiameterMessage.h b/src/applications/diameter/utils/DiameterMessage.h index b78a2dd88973ce7c8064f1818e0b0c6c85e6cad5..906a9555eaabdfd2a06b8203a49f7a27c15fc511 100644 --- a/src/applications/diameter/utils/DiameterMessage.h +++ b/src/applications/diameter/utils/DiameterMessage.h @@ -1,4 +1,6 @@ // +// Copyright (C) 2012 Calin Cerchez +// // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or diff --git a/src/applications/diameter/utils/DiameterMessage.msg b/src/applications/diameter/utils/DiameterMessage.msg index 335e9cf40236212f6e2b9edb10f7534d1f36e951..dc0b18b58961345dcceb5ea4d0668d79c0b53c42 100644 --- a/src/applications/diameter/utils/DiameterMessage.msg +++ b/src/applications/diameter/utils/DiameterMessage.msg @@ -1,4 +1,6 @@ // +// Copyright (C) 2012 Calin Cerchez +// // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or diff --git a/src/applications/diameter/utils/DiameterSerializer.cc b/src/applications/diameter/utils/DiameterSerializer.cc index afa47e2baae2421000a3e275c7bfb05c298e994c..9091985ddd93b050f2bc7549c03910d603857b2e 100644 --- a/src/applications/diameter/utils/DiameterSerializer.cc +++ b/src/applications/diameter/utils/DiameterSerializer.cc @@ -1,4 +1,6 @@ // +// Copyright (C) 2012 Calin Cerchez +// // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or diff --git a/src/applications/diameter/utils/DiameterSerializer.h b/src/applications/diameter/utils/DiameterSerializer.h index 7f2d11da8bb4d79ce8065e4f161d324ed1eaf607..e3e1f0b581908193f2232c7526a3c7f386e72df6 100644 --- a/src/applications/diameter/utils/DiameterSerializer.h +++ b/src/applications/diameter/utils/DiameterSerializer.h @@ -1,4 +1,6 @@ // +// Copyright (C) 2012 Calin Cerchez +// // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or diff --git a/src/applications/diameter/utils/DiameterUtils.cc b/src/applications/diameter/utils/DiameterUtils.cc index cc30894d07fa859423fa4ac8fcda74fbd9fd4ca1..e79ce83c1e889a01d0f5c652d1b675d865180136 100644 --- a/src/applications/diameter/utils/DiameterUtils.cc +++ b/src/applications/diameter/utils/DiameterUtils.cc @@ -1,4 +1,6 @@ // +// Copyright (C) 2012 Calin Cerchez +// // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or diff --git a/src/applications/diameter/utils/DiameterUtils.h b/src/applications/diameter/utils/DiameterUtils.h index 1050d1ec4144ea816d5e7672f32a5f383d68ecf3..345dca64444f91b63d9d583b479d23ceb0b1f45c 100644 --- a/src/applications/diameter/utils/DiameterUtils.h +++ b/src/applications/diameter/utils/DiameterUtils.h @@ -1,4 +1,6 @@ // +// Copyright (C) 2012 Calin Cerchez +// // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or