Commit f72a06e2 authored by Evelyn's avatar Evelyn Committed by GitHub

Update mg_dns_uncompress_name.md

parent 8b975533
...@@ -7,15 +7,15 @@ signature: | ...@@ -7,15 +7,15 @@ signature: |
char *dst, int dst_len); char *dst, int dst_len);
--- ---
Uncompress a DNS compressed name. Uncompresses a DNS compressed name.
The containing dns message is required because the compressed encoding The containing DNS message is required because of the compressed encoding
and reference suffixes present elsewhere in the packet. and reference suffixes present elsewhere in the packet.
If name is less than `dst_len` characters long, the remainder If the name is less than `dst_len` characters long, the remainder
of `dst` is terminated with `\0' characters. Otherwise, `dst` is not of `dst` is terminated with `\0` characters. Otherwise, `dst` is not
*terminated. *terminated.
If `dst_len` is 0 `dst` can be NULL. If `dst_len` is 0 `dst` can be NULL.
Return the uncompressed name length. Returns the uncompressed name length.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment