]> git.proxmox.com Git - mirror_edk2.git/blame - ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.h
ShellPkg/Dp: Add null pointer check
[mirror_edk2.git] / ShellPkg / Library / UefiShellNetwork2CommandsLib / UefiShellNetwork2CommandsLib.h
CommitLineData
43ca1753
ZL
1/** @file\r
2 Main file for NULL named library for network2 shell command functions.\r
3\r
4 Copyright (c) 2016, Intel Corporation. All rights reserved. <BR>\r
5 This program and the accompanying materials are licensed and made available under\r
6 the terms and conditions of the BSD License which accompanies this distribution.\r
7 The full text of the license may be found at http://opensource.org/licenses/bsd-license.php\r
8\r
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
11\r
12**/\r
13\r
14#ifndef _UEFI_SHELL_NETWORK2_COMMANDS_LIB_H_\r
15#define _UEFI_SHELL_NETWORK2_COMMANDS_LIB_H_\r
16\r
17#include <Protocol/Cpu.h>\r
18#include <Protocol/ServiceBinding.h>\r
19#include <Protocol/Ip6.h>\r
20#include <Protocol/Ip6Config.h>\r
21\r
22#include <Guid/ShellLibHiiGuid.h>\r
23\r
24#include <Library/ShellLib.h>\r
25#include <Library/ShellCommandLib.h>\r
26#include <Library/BaseMemoryLib.h>\r
27#include <Library/BaseLib.h>\r
28#include <Library/PcdLib.h>\r
29#include <Library/MemoryAllocationLib.h>\r
30#include <Library/DebugLib.h>\r
31#include <Library/UefiBootServicesTableLib.h>\r
32#include <Library/HiiLib.h>\r
33#include <Library/NetLib.h>\r
34\r
35extern EFI_HANDLE gShellNetwork2HiiHandle;\r
36\r
37/**\r
38 Function for 'ping6' command.\r
39\r
40 @param[in] ImageHandle Handle to the Image (NULL if Internal).\r
41 @param[in] SystemTable Pointer to the System Table (NULL if Internal).\r
42\r
43 @retval SHELL_SUCCESS The ping6 processed successfullly.\r
44 @retval others The ping6 processed unsuccessfully.\r
45\r
46**/\r
47SHELL_STATUS\r
48EFIAPI\r
49ShellCommandRunPing6 (\r
50 IN EFI_HANDLE ImageHandle,\r
51 IN EFI_SYSTEM_TABLE *SystemTable\r
52 );\r
53\r
54/**\r
55 Function for 'ifconfig6' command.\r
56\r
57 @param[in] ImageHandle Handle to the Image (NULL if Internal).\r
58 @param[in] SystemTable Pointer to the System Table (NULL if Internal).\r
59\r
60 @retval SHELL_SUCCESS The ifconfig6 command processed successfully.\r
61 @retval others The ifconfig6 command process failed.\r
62\r
63**/\r
64SHELL_STATUS\r
65EFIAPI\r
66ShellCommandRunIfconfig6 (\r
67 IN EFI_HANDLE ImageHandle,\r
68 IN EFI_SYSTEM_TABLE *SystemTable\r
69 );\r
70\r
71#endif\r
72\r