mirror of
https://github.com/espressif/esp-protocols.git
synced 2025-07-18 04:52:18 +02:00
Whitespace: Automated whitespace fixes (large commit)
Apply the pre-commit hook whitespace fixes to all files in the repo. (Line endings, blank lines at end of file, trailing whitespace) * Original commit: espressif/esp-idf@66fb5a29bb
This commit is contained in:
committed by
suren-gabrielyan-espressif
parent
ccd48bc9a9
commit
2cb3a6e35e
@ -5,4 +5,3 @@ idf_component_register(SRCS "mdns.c"
|
|||||||
PRIV_INCLUDE_DIRS "private_include"
|
PRIV_INCLUDE_DIRS "private_include"
|
||||||
REQUIRES lwip console esp_netif
|
REQUIRES lwip console esp_netif
|
||||||
PRIV_REQUIRES esp_timer)
|
PRIV_REQUIRES esp_timer)
|
||||||
|
|
||||||
|
@ -1057,4 +1057,3 @@ void mdns_console_register(void)
|
|||||||
register_mdns_query_ip();
|
register_mdns_query_ip();
|
||||||
register_mdns_query_svc();
|
register_mdns_query_svc();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* MDNS Server Networking
|
* MDNS Server Networking
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "mdns_networking.h"
|
#include "mdns_networking.h"
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
idf_component_register(SRC_DIRS "."
|
idf_component_register(SRC_DIRS "."
|
||||||
PRIV_REQUIRES cmock test_utils mdns)
|
PRIV_REQUIRES cmock test_utils mdns)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#
|
#
|
||||||
#Component Makefile
|
#Component Makefile
|
||||||
#
|
#
|
||||||
COMPONENT_ADD_LDFLAGS = -Wl,--whole-archive -l$(COMPONENT_NAME) -Wl,--no-whole-archive
|
COMPONENT_ADD_LDFLAGS = -Wl,--whole-archive -l$(COMPONENT_NAME) -Wl,--no-whole-archive
|
||||||
|
@ -96,4 +96,4 @@ TEST_CASE("mdns query api return expected err-code and do not leak memory", "[le
|
|||||||
|
|
||||||
mdns_free();
|
mdns_free();
|
||||||
esp_event_loop_delete_default();
|
esp_event_loop_delete_default();
|
||||||
}
|
}
|
||||||
|
@ -5,4 +5,3 @@ cmake_minimum_required(VERSION 3.5)
|
|||||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||||
|
|
||||||
project(fuzz_test_update)
|
project(fuzz_test_update)
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ CFLAGS=-g -Wno-unused-value -Wno-missing-declarations -Wno-pointer-bool-conversi
|
|||||||
-I$(COMPONENTS_DIR)/tcpip_adapter/include \
|
-I$(COMPONENTS_DIR)/tcpip_adapter/include \
|
||||||
-I$(COMPONENTS_DIR)/xtensa/include \
|
-I$(COMPONENTS_DIR)/xtensa/include \
|
||||||
-I$(COMPONENTS_DIR)/xtensa/esp32/include \
|
-I$(COMPONENTS_DIR)/xtensa/esp32/include \
|
||||||
-I$(COMPILER_ICLUDE_DIR)/include
|
-I$(COMPILER_ICLUDE_DIR)/include
|
||||||
|
|
||||||
|
|
||||||
MDNS_C_DEPENDENCY_INJECTION=-include mdns_di.h
|
MDNS_C_DEPENDENCY_INJECTION=-include mdns_di.h
|
||||||
|
@ -30,6 +30,6 @@ const char *esp_netif_get_ifkey(esp_netif_t *esp_netif)
|
|||||||
}
|
}
|
||||||
|
|
||||||
esp_err_t esp_netif_get_ip6_linklocal(esp_netif_t *esp_netif, esp_ip6_addr_t *if_ip6)
|
esp_err_t esp_netif_get_ip6_linklocal(esp_netif_t *esp_netif, esp_ip6_addr_t *if_ip6)
|
||||||
{
|
{
|
||||||
return ESP_ERR_NOT_SUPPORTED;
|
return ESP_ERR_NOT_SUPPORTED;
|
||||||
}
|
}
|
||||||
|
@ -76,7 +76,7 @@ Packet Length: 262
|
|||||||
Answers: 2 + 6
|
Answers: 2 + 6
|
||||||
A: Hristo’s Mac mini._device-info._tcp.local. TXT IN 4500 [28] model=Macmini6,2; osxvers=16
|
A: Hristo’s Mac mini._device-info._tcp.local. TXT IN 4500 [28] model=Macmini6,2; osxvers=16
|
||||||
A: _smb._tcp.local. PTR IN 4500 [22] Hristo’s Mac mini._smb._tcp.local.
|
A: _smb._tcp.local. PTR IN 4500 [22] Hristo’s Mac mini._smb._tcp.local.
|
||||||
A: Hristo’s Mac mini._smb._tcp.local. TXT IN FLUSH 4500 [1]
|
A: Hristo’s Mac mini._smb._tcp.local. TXT IN FLUSH 4500 [1]
|
||||||
A: Hristo’s Mac mini._smb._tcp.local. SRV IN FLUSH 120 [18] 445 minifritz.local.
|
A: Hristo’s Mac mini._smb._tcp.local. SRV IN FLUSH 120 [18] 445 minifritz.local.
|
||||||
A: minifritz.local. AAAA IN FLUSH 120 [16] fe80:0000:0000:0000:142e:54ff:b8c4:fd09
|
A: minifritz.local. AAAA IN FLUSH 120 [16] fe80:0000:0000:0000:142e:54ff:b8c4:fd09
|
||||||
A: minifritz.local. A IN FLUSH 120 [4] 192.168.254.16
|
A: minifritz.local. A IN FLUSH 120 [4] 192.168.254.16
|
||||||
@ -97,7 +97,7 @@ Packet Length: 269
|
|||||||
Answers: 2 + 6
|
Answers: 2 + 6
|
||||||
A: Hristo’s Mac mini._device-info._tcp.local. TXT IN 4500 [28] model=Macmini6,2; osxvers=16
|
A: Hristo’s Mac mini._device-info._tcp.local. TXT IN 4500 [28] model=Macmini6,2; osxvers=16
|
||||||
A: _afpovertcp._tcp.local. PTR IN 4500 [22] Hristo’s Mac mini._afpovertcp._tcp.local.
|
A: _afpovertcp._tcp.local. PTR IN 4500 [22] Hristo’s Mac mini._afpovertcp._tcp.local.
|
||||||
A: Hristo’s Mac mini._afpovertcp._tcp.local. TXT IN FLUSH 4500 [1]
|
A: Hristo’s Mac mini._afpovertcp._tcp.local. TXT IN FLUSH 4500 [1]
|
||||||
A: Hristo’s Mac mini._afpovertcp._tcp.local. SRV IN FLUSH 120 [18] 548 minifritz.local.
|
A: Hristo’s Mac mini._afpovertcp._tcp.local. SRV IN FLUSH 120 [18] 548 minifritz.local.
|
||||||
A: minifritz.local. AAAA IN FLUSH 120 [16] fe80:0000:0000:0000:142e:54ff:b8c4:fd09
|
A: minifritz.local. AAAA IN FLUSH 120 [16] fe80:0000:0000:0000:142e:54ff:b8c4:fd09
|
||||||
A: minifritz.local. A IN FLUSH 120 [4] 192.168.254.16
|
A: minifritz.local. A IN FLUSH 120 [4] 192.168.254.16
|
||||||
@ -135,7 +135,7 @@ Packet Length: 279
|
|||||||
Answers: 2 + 6
|
Answers: 2 + 6
|
||||||
A: Sofiya Ivanova’s MacBook._device-info._tcp.local. TXT IN 4500 [17] model=Macmini2,1
|
A: Sofiya Ivanova’s MacBook._device-info._tcp.local. TXT IN 4500 [17] model=Macmini2,1
|
||||||
A: _rfb._tcp.local. PTR IN 4500 [29] Sofiya Ivanova’s MacBook._rfb._tcp.local.
|
A: _rfb._tcp.local. PTR IN 4500 [29] Sofiya Ivanova’s MacBook._rfb._tcp.local.
|
||||||
A: Sofiya Ivanova’s MacBook._rfb._tcp.local. TXT IN FLUSH 4500 [1]
|
A: Sofiya Ivanova’s MacBook._rfb._tcp.local. TXT IN FLUSH 4500 [1]
|
||||||
A: Sofiya Ivanova’s MacBook._rfb._tcp.local. SRV IN FLUSH 120 [32] 5900 Sofiya-Ivanovas-MacBook.local.
|
A: Sofiya Ivanova’s MacBook._rfb._tcp.local. SRV IN FLUSH 120 [32] 5900 Sofiya-Ivanovas-MacBook.local.
|
||||||
A: Sofiya-Ivanovas-MacBook.local. AAAA IN FLUSH 120 [16] fe80:0000:0000:0000:021c:b3ff:feb2:72a3
|
A: Sofiya-Ivanovas-MacBook.local. AAAA IN FLUSH 120 [16] fe80:0000:0000:0000:021c:b3ff:feb2:72a3
|
||||||
A: Sofiya-Ivanovas-MacBook.local. A IN FLUSH 120 [4] 192.168.254.20
|
A: Sofiya-Ivanovas-MacBook.local. A IN FLUSH 120 [4] 192.168.254.20
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* MDNS Dependecy injection -- preincluded to inject interface test functions into static variables
|
* MDNS Dependecy injection -- preincluded to inject interface test functions into static variables
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "mdns.h"
|
#include "mdns.h"
|
||||||
@ -50,4 +50,4 @@ mdns_search_once_t * mdns_test_search_init(const char * name, const char * servi
|
|||||||
mdns_srv_item_t * mdns_test_mdns_get_service_item(const char * service, const char * proto)
|
mdns_srv_item_t * mdns_test_mdns_get_service_item(const char * service, const char * proto)
|
||||||
{
|
{
|
||||||
return mdns_test_static_mdns_get_service_item(service, proto);
|
return mdns_test_static_mdns_get_service_item(service, proto);
|
||||||
}
|
}
|
||||||
|
@ -124,7 +124,7 @@ int main(int argc, char** argv)
|
|||||||
};
|
};
|
||||||
|
|
||||||
const uint8_t mac[6] = {0xDE, 0xAD, 0xBE, 0xEF, 0x00, 0x32};
|
const uint8_t mac[6] = {0xDE, 0xAD, 0xBE, 0xEF, 0x00, 0x32};
|
||||||
|
|
||||||
uint8_t buf[1460];
|
uint8_t buf[1460];
|
||||||
char winstance[21+strlen(mdns_hostname)];
|
char winstance[21+strlen(mdns_hostname)];
|
||||||
|
|
||||||
@ -183,9 +183,9 @@ int main(int argc, char** argv)
|
|||||||
|| mdns_test_service_add("_ptp", "_tcp", 885)
|
|| mdns_test_service_add("_ptp", "_tcp", 885)
|
||||||
|| mdns_test_service_add("_sleep-proxy", "_udp", 885))
|
|| mdns_test_service_add("_sleep-proxy", "_udp", 885))
|
||||||
{
|
{
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
|
|
||||||
mdns_result_t * results = NULL;
|
mdns_result_t * results = NULL;
|
||||||
FILE *file;
|
FILE *file;
|
||||||
size_t nread;
|
size_t nread;
|
||||||
|
@ -62,4 +62,4 @@ esp_err_t get_addr_from_stdin(int port, int sock_type, int *ip_protocol, int *ad
|
|||||||
// no match found
|
// no match found
|
||||||
freeaddrinfo( addr_list );
|
freeaddrinfo( addr_list );
|
||||||
return ESP_FAIL;
|
return ESP_FAIL;
|
||||||
}
|
}
|
||||||
|
@ -41,4 +41,4 @@ esp_err_t get_addr_from_stdin(int port, int sock_type,
|
|||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -8,4 +8,3 @@ PROJECT_NAME := mdns-test
|
|||||||
EXTRA_COMPONENT_DIRS = $(IDF_PATH)/examples/common_components/protocol_examples_common
|
EXTRA_COMPONENT_DIRS = $(IDF_PATH)/examples/common_components/protocol_examples_common
|
||||||
|
|
||||||
include $(IDF_PATH)/make/project.mk
|
include $(IDF_PATH)/make/project.mk
|
||||||
|
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
idf_component_register(SRCS "mdns_example_main.c"
|
idf_component_register(SRCS "mdns_example_main.c"
|
||||||
INCLUDE_DIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
@ -256,4 +256,4 @@ static void query_mdns_host_with_getaddrinfo(char * host)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
CONFIG_MDNS_RESOLVE_TEST_SERVICES=y
|
CONFIG_MDNS_RESOLVE_TEST_SERVICES=y
|
||||||
CONFIG_MDNS_ADD_MAC_TO_HOSTNAME=y
|
CONFIG_MDNS_ADD_MAC_TO_HOSTNAME=y
|
||||||
CONFIG_LWIP_DNS_SUPPORT_MDNS_QUERIES=y
|
CONFIG_LWIP_DNS_SUPPORT_MDNS_QUERIES=y
|
||||||
|
Reference in New Issue
Block a user