esp_netif_loopback_mock.c
1 // Copyright 2020 Espressif Systems (Shanghai) CO LTD 2 // 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 15 #include "esp_netif_lwip_internal.h" 16 17 esp_err_t esp_netif_get_ip_info(esp_netif_t *esp_netif, esp_netif_ip_info_t *ip_info) 18 { 19 return ESP_ERR_NOT_SUPPORTED; 20 } 21 22 esp_err_t esp_netif_dhcpc_get_status(esp_netif_t *esp_netif, esp_netif_dhcp_status_t *status) 23 { 24 return ESP_ERR_NOT_SUPPORTED; 25 } 26 27 const char *esp_netif_get_ifkey(esp_netif_t *esp_netif) 28 { 29 return esp_netif->if_key; 30 } 31 32 esp_err_t esp_netif_get_ip6_linklocal(esp_netif_t *esp_netif, esp_ip6_addr_t *if_ip6) 33 { 34 return ESP_ERR_NOT_SUPPORTED; 35 }