• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2020 HiSilicon (Shanghai) Technologies CO., LIMITED.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  * Description: shell cmds APIs implementation about dhcps dhcp dns and so on.
15  * Author: none
16  * Create: 2020
17  */
18 
19 #ifndef LWIP_OTHERS_H
20 #define LWIP_OTHERS_H
21 #include "lwip/opt.h"
22 #include "lwip/netif.h"
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
28 #if LWIP_SNTP
29 u32_t os_shell_ntpdate(int argc, const char **argv);
30 #endif
31 
32 u32_t os_shell_tftp(int argc, const char **argv);
33 
34 #if LWIP_DNS
35 u32_t os_shell_dns(int argc, const char **argv);
36 #ifdef CUSTOM_AT_COMMAND
37 u32_t os_shell_show_dns(void);
38 #endif
39 #endif /* LWIP_DNS */
40 
41 #if LWIP_DHCP
42 u32_t os_shell_dhcp(int argc, const char **argv);
43 void dhcp_clients_info_show(struct netif *netif_p);
44 #endif /* LWIP_DHCP */
45 
46 #if (LWIP_IPV6 && (LWIP_IPV6_MLD || LWIP_IPV6_MLD_QUERIER))
47 u32_t os_shell_mld6(int argc, const char **argv);
48 #endif /* (LWIP_IPV6 && (LWIP_IPV6_MLD || LWIP_IPV6_MLD_QUERIER)) */
49 
50 #if LWIP_IPV4 && LWIP_IGMP
51 u32_t os_shell_igmp(int argc, const char **argv);
52 u32_t at_os_shell_igmp(int argc, const char **argv);
53 #endif /* LWIP_IPV4 && LWIP_IGMP */
54 
55 u32_t os_tcpserver(int argc, const char **argv);
56 u32_t udpserver(int argc, const char **argv);
57 #if LWIP_DHCPS
58 u32_t os_shell_dhcps(int argc, const char **argv);
59 #endif
60 
61 void os_shell_reboot(int argc, const char **argv);
62 
63 #ifdef __cplusplus
64 }
65 #endif
66 
67 #endif /* LWIP_OTHERS_H */
68