[Backport v4.0-branch] DNS parsing issues #163595
Annotations
1 error, 1 warning, and 2 notices
Run Compliance Tests
Process completed with exit code 1.
|
check-warns:
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:
- setup_dns_context(&dns_ctx, 0, dns_id, query, sizeof(query),
- DNS_QUERY_TYPE_A);
+ setup_dns_context(&dns_ctx, 0, dns_id, query, sizeof(query), DNS_QUERY_TYPE_A);
File:tests/net/lib/dns_packet/src/main.c
Line:1120
You may want to run clang-format on this change:
- 0x01, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x01, 0x00, 0x01,
+ 0x01, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x01,
};
ZTEST(dns_packet, test_dns_invalid_answer)
{
- struct dns_msg_t dns_msg = { 0 };
+ struct dns_msg_t dns_msg = {0};
File:tests/net/lib/dns_packet/src/main.c
Line:1278
|
Run Compliance Tests:
tests/net/lib/dns_packet/src/main.c#L1120
tests/net/lib/dns_packet/src/main.c:1120
- setup_dns_context(&dns_ctx, 0, dns_id, query, sizeof(query),
- DNS_QUERY_TYPE_A);
+ setup_dns_context(&dns_ctx, 0, dns_id, query, sizeof(query), DNS_QUERY_TYPE_A);
|
Run Compliance Tests:
tests/net/lib/dns_packet/src/main.c#L1278
tests/net/lib/dns_packet/src/main.c:1278
- 0x01, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x01, 0x00, 0x01,
+ 0x01, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x01,
};
ZTEST(dns_packet, test_dns_invalid_answer)
{
- struct dns_msg_t dns_msg = { 0 };
+ struct dns_msg_t dns_msg = {0};
|
Loading