[Backport v4.0-branch] net: dns: Close socket service properly from dispatcher #166045
compliance.yml
on: pull_request
Run compliance checks on patch series (PR)
2m 33s
Annotations
1 error, 1 warning, and 5 notices
Run compliance checks on patch series (PR)
Process completed with exit code 1.
|
Run compliance checks on patch series (PR):
ClangFormat.txt#L1
See https://docs.zephyrproject.org/latest/contribute/guidelines.html#clang-format for more details.
You may want to run clang-format on this change:
-#define NAME4 "4.zephyr.test"
-#define NAME6 "6.zephyr.test"
+#define NAME4 "4.zephyr.test"
+#define NAME6 "6.zephyr.test"
#define NAME_IPV4 "192.0.2.1"
#define NAME_IPV6 "2001:db8::1"
-#define DNS_NAME_IPV4 "192.0.2.4"
+#define DNS_NAME_IPV4 "192.0.2.4"
#define DNS2_NAME_IPV4 "192.0.2.5"
-#define DNS_NAME_IPV6 "2001:db8::4"
+#define DNS_NAME_IPV6 "2001:db8::4"
#define DNS_TIMEOUT 500 /* ms */
#if defined(CONFIG_NET_IPV6)
/* Interface 1 addresses */
-static struct in6_addr my_addr1 = { { { 0x20, 0x01, 0x0d, 0xb8, 1, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0x1 } } };
+static struct in6_addr my_addr1 = {
+ {{0x20, 0x01, 0x0d, 0xb8, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x1}}};
#endif
#if defined(CONFIG_NET_IPV4)
/* Interface 1 addresses */
-static struct in_addr my_addr2 = { { { 192, 0, 2, 1 } } };
+static struct in_addr my_addr2 = {{{192, 0, 2, 1}}};
File:tests/net/lib/dns_dispatcher/src/main.c
Line:59
You may want to run clang-format on this change:
- net_if_set_link_addr(iface, mac, sizeof(struct net_eth_addr),
- NET_LINK_ETHERNET);
+ net_if_set_link_addr(iface, mac, sizeof(struct net_eth_addr), NET_LINK_ETHERNET);
File:tests/net/lib/dns_dispatcher/src/main.c
Line:94
You may want to run clang-format on this change:
-#define _ETH_L2_LAYER DUMMY_L2
+#define _ETH_L2_LAYER DUMMY_L2
#define _ETH_L2_CTX_TYPE NET_L2_GET_CTX_TYPE(DUMMY_L2)
-NET_DEVICE_INIT_INSTANCE(net_iface1_test,
- "iface1",
- iface1,
- NULL,
- NULL,
- &net_iface1_data,
- NULL,
- CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
- &net_iface_api,
- _ETH_L2_LAYER,
- _ETH_L2_CTX_TYPE,
- 127);
+NET_DEVICE_INIT_INSTANCE(net_iface1_test, "iface1", iface1, NULL, NULL, &net_iface1_data, NULL,
+ CONFIG_KERNEL_INIT_PRIORITY_DEFAULT, &net_iface_api, _ETH_L2_LAYER,
+ _ETH_L2_CTX_TYPE, 127);
File:tests/net/lib/dns_dispatcher/src/main.c
Line:128
You may want to run clang-format on this change:
- ((struct net_if_test *) net_if_get_device(iface1)->data)->idx =
- net_if_get_by_iface(iface1);
+ ((struct net_if_test *)net_if_get_device(iface1)->data)->idx = net_if_get_by_iface(iface1);
#if defined(CONFIG_NET_IPV6)
- ifaddr = net_if_ipv6_addr_add(iface1, &my_addr1,
- NET_ADDR_MANUAL, 0);
+ ifaddr = net_if_ipv6_addr_add(iface1, &my_addr1, NET_ADDR_MANUAL, 0);
if (!ifaddr) {
- DBG("Cannot add IPv6 address %s\n",
- net_sprint_ipv6_addr(&my_addr1));
+ DBG("Cannot add IPv6 address %s\n", net_sprint_ipv6_addr(&my_addr1));
File:tests/net/lib/dns_dispatcher/src/main.c
Line:147
You may want to run clang-format on this change:
- ifaddr = net_if_ipv4_addr_add(iface1, &my_addr2,
- NET_ADDR_MANUAL, 0);
+ ifaddr = net_if_ipv4_addr_add(iface1, &my_addr2, NET_ADDR_MANUAL, 0);
if (!ifaddr) {
- DBG("Cannot add IPv4 address %s\n",
- net_sprint_ipv4_addr(&my_addr2));
+ DBG("Cannot add IPv4 address %s\n", net_sprint_ipv4_addr(&my_addr2));
File:tests/net/lib/dns_dispatcher/src/main.c
Line:162
|
You may want to run clang-format on this change:
tests/net/lib/dns_dispatcher/src/main.c#L59
tests/net/lib/dns_dispatcher/src/main.c:59
-#define NAME4 "4.zephyr.test"
-#define NAME6 "6.zephyr.test"
+#define NAME4 "4.zephyr.test"
+#define NAME6 "6.zephyr.test"
#define NAME_IPV4 "192.0.2.1"
#define NAME_IPV6 "2001:db8::1"
-#define DNS_NAME_IPV4 "192.0.2.4"
+#define DNS_NAME_IPV4 "192.0.2.4"
#define DNS2_NAME_IPV4 "192.0.2.5"
-#define DNS_NAME_IPV6 "2001:db8::4"
+#define DNS_NAME_IPV6 "2001:db8::4"
#define DNS_TIMEOUT 500 /* ms */
#if defined(CONFIG_NET_IPV6)
/* Interface 1 addresses */
-static struct in6_addr my_addr1 = { { { 0x20, 0x01, 0x0d, 0xb8, 1, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0x1 } } };
+static struct in6_addr my_addr1 = {
+ {{0x20, 0x01, 0x0d, 0xb8, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x1}}};
#endif
#if defined(CONFIG_NET_IPV4)
/* Interface 1 addresses */
-static struct in_addr my_addr2 = { { { 192, 0, 2, 1 } } };
+static struct in_addr my_addr2 = {{{192, 0, 2, 1}}};
|
You may want to run clang-format on this change:
tests/net/lib/dns_dispatcher/src/main.c#L94
tests/net/lib/dns_dispatcher/src/main.c:94
- net_if_set_link_addr(iface, mac, sizeof(struct net_eth_addr),
- NET_LINK_ETHERNET);
+ net_if_set_link_addr(iface, mac, sizeof(struct net_eth_addr), NET_LINK_ETHERNET);
|
You may want to run clang-format on this change:
tests/net/lib/dns_dispatcher/src/main.c#L128
tests/net/lib/dns_dispatcher/src/main.c:128
-#define _ETH_L2_LAYER DUMMY_L2
+#define _ETH_L2_LAYER DUMMY_L2
#define _ETH_L2_CTX_TYPE NET_L2_GET_CTX_TYPE(DUMMY_L2)
-NET_DEVICE_INIT_INSTANCE(net_iface1_test,
- "iface1",
- iface1,
- NULL,
- NULL,
- &net_iface1_data,
- NULL,
- CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
- &net_iface_api,
- _ETH_L2_LAYER,
- _ETH_L2_CTX_TYPE,
- 127);
+NET_DEVICE_INIT_INSTANCE(net_iface1_test, "iface1", iface1, NULL, NULL, &net_iface1_data, NULL,
+ CONFIG_KERNEL_INIT_PRIORITY_DEFAULT, &net_iface_api, _ETH_L2_LAYER,
+ _ETH_L2_CTX_TYPE, 127);
|
You may want to run clang-format on this change:
tests/net/lib/dns_dispatcher/src/main.c#L147
tests/net/lib/dns_dispatcher/src/main.c:147
- ((struct net_if_test *) net_if_get_device(iface1)->data)->idx =
- net_if_get_by_iface(iface1);
+ ((struct net_if_test *)net_if_get_device(iface1)->data)->idx = net_if_get_by_iface(iface1);
#if defined(CONFIG_NET_IPV6)
- ifaddr = net_if_ipv6_addr_add(iface1, &my_addr1,
- NET_ADDR_MANUAL, 0);
+ ifaddr = net_if_ipv6_addr_add(iface1, &my_addr1, NET_ADDR_MANUAL, 0);
if (!ifaddr) {
- DBG("Cannot add IPv6 address %s\n",
- net_sprint_ipv6_addr(&my_addr1));
+ DBG("Cannot add IPv6 address %s\n", net_sprint_ipv6_addr(&my_addr1));
|
You may want to run clang-format on this change:
tests/net/lib/dns_dispatcher/src/main.c#L162
tests/net/lib/dns_dispatcher/src/main.c:162
- ifaddr = net_if_ipv4_addr_add(iface1, &my_addr2,
- NET_ADDR_MANUAL, 0);
+ ifaddr = net_if_ipv4_addr_add(iface1, &my_addr2, NET_ADDR_MANUAL, 0);
if (!ifaddr) {
- DBG("Cannot add IPv4 address %s\n",
- net_sprint_ipv4_addr(&my_addr2));
+ DBG("Cannot add IPv4 address %s\n", net_sprint_ipv4_addr(&my_addr2));
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
compliance.xml
|
1.4 KB |
|