mirror of
https://github.com/openharmony/kernel_common_modules_newip.git
synced 2026-07-20 00:53:31 -04:00
check nip enable函数提示信息变更,tools目录增加license描述
Signed-off-by: yangyanjun <ic-include@163.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user