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