Data logging functions for debugging purpose (DNS) More...
Go to the source code of this file.
Functions | |
| void | dnsDumpMessage (const DnsHeader *message, size_t length) |
| Dump DNS message for debugging purpose. More... | |
| size_t | dnsDumpQuestion (const DnsHeader *message, size_t length, size_t pos) |
| Dump DNS question for debugging purpose. More... | |
| size_t | dnsDumpResourceRecord (const DnsHeader *message, size_t length, size_t pos) |
| Dump DNS resource record for debugging purpose. More... | |
| size_t | dnsDumpName (const DnsHeader *message, size_t length, size_t pos, uint_t level) |
| Dump a domain name that uses the DNS name encoding. More... | |
Detailed Description
Data logging functions for debugging purpose (DNS)
License
SPDX-License-Identifier: GPL-2.0-or-later
Copyright (C) 2010-2026 Oryx Embedded SARL. All rights reserved.
This file is part of CycloneTCP Open.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- Version
- 2.6.6
Definition in file dns_debug.h.
Function Documentation
◆ dnsDumpMessage()
| void dnsDumpMessage | ( | const DnsHeader * | message, |
| size_t | length | ||
| ) |
Dump DNS message for debugging purpose.
- Parameters
-
[in] message Pointer to the DNS message [in] length Length of the DNS message
Definition at line 52 of file dns_debug.c.
◆ dnsDumpName()
Dump a domain name that uses the DNS name encoding.
- Parameters
-
[in] message Pointer to the DNS message [in] length Length of the DNS message [in] pos Offset of the name to decode [in] level Current level of recursion
- Returns
- The position of the resource record that immediately follows the domain name
Definition at line 357 of file dns_debug.c.
◆ dnsDumpQuestion()
| size_t dnsDumpQuestion | ( | const DnsHeader * | message, |
| size_t | length, | ||
| size_t | pos | ||
| ) |
Dump DNS question for debugging purpose.
- Parameters
-
[in] message Pointer to the DNS message [in] length Length of the DNS message [in] pos Offset of the question to decode
- Returns
- Offset to the next question
Definition at line 141 of file dns_debug.c.
◆ dnsDumpResourceRecord()
| size_t dnsDumpResourceRecord | ( | const DnsHeader * | message, |
| size_t | length, | ||
| size_t | pos | ||
| ) |
Dump DNS resource record for debugging purpose.
- Parameters
-
[in] message Pointer to the DNS message [in] length Length of the DNS message [in] pos Offset of the question to decode
- Returns
- Offset to the next question
Definition at line 211 of file dns_debug.c.
