diff --git a/LICENSE b/LICENSE index c639838..2fa9023 100644 --- a/LICENSE +++ b/LICENSE @@ -4,6 +4,7 @@ Copyright (c) 2022 Huawei Device Co., Ltd. All rights reserved. The code/linux/ subdirectorie is licensed under the GPL V2 License. The code/ommon/ subdirectorie is licensed under 3-Clause BSD License. The examples/ subdirectorie is licensed under 3-Clause BSD License. +The tools/ subdirectorie is licensed under the GPL V2 License. a) GNU General Public License version 2, (https://opensource.org/licenses/GPL-2.0) This library is free software; you can redistribute it and/or diff --git a/examples/check_nip_enable.c b/examples/check_nip_enable.c index 3f96b30..88bf421 100644 --- a/examples/check_nip_enable.c +++ b/examples/check_nip_enable.c @@ -62,8 +62,10 @@ void _check_nip_enable(void) int check_nip_enable(void) { - if (g_nip_enable == NIP_ENABLE_INVALID) + if (g_nip_enable == NIP_ENABLE_INVALID) { _check_nip_enable(); + g_nip_enable = (g_nip_enable == 1 ? 1 : 0); + } return g_nip_enable; } @@ -72,7 +74,10 @@ int main(int argc, char **argv) { int af_ninet = check_nip_enable(); - printf("nip_enable=%d\n\n", g_nip_enable); + if (g_nip_enable) + printf("Support NewIP.\n\n"); + else + printf("Not support NewIP.\n\n"); return 0; }