X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Ftestbed%2Ftestbed_api_underlay.c;h=7e509fdfe031b375a5b37d05aa2675e49ef822dd;hb=d17a17ea785f91c18b5694eab3372c4e4564d95e;hp=1a2176d316affe6311c3c8f84d4bb2b8be100c3e;hpb=f27338992f0a5915ee974faea05f764c2df6f584;p=oweals%2Fgnunet.git diff --git a/src/testbed/testbed_api_underlay.c b/src/testbed/testbed_api_underlay.c index 1a2176d31..7e509fdfe 100644 --- a/src/testbed/testbed_api_underlay.c +++ b/src/testbed/testbed_api_underlay.c @@ -1,22 +1,22 @@ /* - This file is part of GNUnet. - Copyright (C) 2008--2013 Christian Grothoff (and other contributing authors) + This file is part of GNUnet. + Copyright (C) 2008--2013 GNUnet e.V. - GNUnet is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published - by the Free Software Foundation; either version 3, or (at your - option) any later version. + GNUnet is free software: you can redistribute it and/or modify it + under the terms of the GNU Affero General Public License as published + by the Free Software Foundation, either version 3 of the License, + or (at your option) any later version. - GNUnet is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. + GNUnet is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Affero General Public License for more details. - You should have received a copy of the GNU General Public License - along with GNUnet; see the file COPYING. If not, write to the - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . + + SPDX-License-Identifier: AGPL3.0-or-later + */ /** * @file testbed/testbed_api_underlay.c @@ -151,7 +151,9 @@ free_link_properties (struct GNUNET_TESTBED_UnderlayLinkModel *model) */ struct GNUNET_TESTBED_UnderlayLinkModel * GNUNET_TESTBED_underlaylinkmodel_create (struct GNUNET_TESTBED_Peer *peer, - enum GNUNET_TESTBED_UnderlayLinkModelType type) + enum + GNUNET_TESTBED_UnderlayLinkModelType + type) { struct GNUNET_TESTBED_UnderlayLinkModel *m; @@ -173,7 +175,9 @@ GNUNET_TESTBED_underlaylinkmodel_create (struct GNUNET_TESTBED_Peer *peer, * @param peer the peer to add */ void -GNUNET_TESTBED_underlaylinkmodel_add_peer (struct GNUNET_TESTBED_UnderlayLinkModel *model, +GNUNET_TESTBED_underlaylinkmodel_add_peer (struct + GNUNET_TESTBED_UnderlayLinkModel * + model, struct GNUNET_TESTBED_Peer *peer) { struct ListEntry *entry; @@ -197,7 +201,9 @@ GNUNET_TESTBED_underlaylinkmodel_add_peer (struct GNUNET_TESTBED_UnderlayLinkMod * @param bandwidth bandwidth of the link in kilobytes per second [kB/s] */ void -GNUNET_TESTBED_underlaylinkmodel_set_link (struct GNUNET_TESTBED_UnderlayLinkModel *model, +GNUNET_TESTBED_underlaylinkmodel_set_link (struct + GNUNET_TESTBED_UnderlayLinkModel * + model, struct GNUNET_TESTBED_Peer *peer, uint32_t latency, uint32_t loss, @@ -224,7 +230,8 @@ GNUNET_TESTBED_underlaylinkmodel_set_link (struct GNUNET_TESTBED_UnderlayLinkMod * @param model the model to unallocate */ void -GNUNET_TESTBED_underlaylinkmodel_free (struct GNUNET_TESTBED_UnderlayLinkModel *model) +GNUNET_TESTBED_underlaylinkmodel_free (struct + GNUNET_TESTBED_UnderlayLinkModel *model) { model->peer->underlay_model_exists = 0; free_entries (model); @@ -240,7 +247,8 @@ GNUNET_TESTBED_underlaylinkmodel_free (struct GNUNET_TESTBED_UnderlayLinkModel * * @param model the model to commit */ void -GNUNET_TESTBED_underlaylinkmodel_commit (struct GNUNET_TESTBED_UnderlayLinkModel *model) +GNUNET_TESTBED_underlaylinkmodel_commit (struct + GNUNET_TESTBED_UnderlayLinkModel *model) { /* FIXME: Marshal the model into a message */ GNUNET_break (0);