Remove extra error message

PUBLISHED_FROM=8b7fcfc1bc32ff9ff38e2904ddb730c83bf9fae4
This commit is contained in:
Alexander Alashkin authored and Cesanta Bot committed 2016-07-25 16:36:18 +00:00
1 parent 53ed8502c9
commit e406de7e00
48 files changed
+87 -87

No files matched your search

+2 -2
View File
@@ -6,10 +6,10 @@ signature: |
int mg_dns_copy_questions(struct mbuf *io, struct mg_dns_message *msg);
---
Appends already encoded questions from an existing message.
Append already encoded questions from an existing message.
This is useful when generating a DNS reply message which includes
all question records.
Returns the number of appened bytes.
Return number of appened bytes.
+3 -3
View File
@@ -8,11 +8,11 @@ signature: |
size_t rlen);
---
Encodes and appends a DNS resource record to an IO buffer.
Encode and append a DNS resource record to an IO buffer.
The record metadata is taken from the `rr` parameter, while the name and data
are taken from the parameters, encoded in the appropriate format depending on
record type and stored in the IO buffer. The encoded values might contain
record type, and stored in the IO buffer. The encoded values might contain
offsets within the IO buffer. It's thus important that the IO buffer doesn't
get trimmed while a sequence of records are encoded while preparing a DNS
*reply.
@@ -21,5 +21,5 @@ This function doesn't update the `name` and `rdata` pointers in the `rr`
*struct
because they might be invalidated as soon as the IO buffer grows again.
Returns the number of bytes appened or -1 in case of error.
Return the number of bytes appened or -1 in case of error.
+2 -2
View File
@@ -7,7 +7,7 @@ signature: |
struct mg_dns_message *msg);
---
Inserts a DNS header to an IO buffer.
Insert a DNS header to an IO buffer.
Returns the number of bytes inserted.
Return number of bytes inserted.
+1 -1
View File
@@ -8,7 +8,7 @@ signature: |
size_t data_len);
---
Parses the record data from a DNS resource record.
Parse the record data from a DNS resource record.
- A: struct in_addr *ina
- AAAA: struct in6_addr *ina
+5 -5
View File
@@ -7,15 +7,15 @@ signature: |
char *dst, int dst_len);
---
Uncompresses a DNS compressed name.
Uncompress a DNS compressed name.
The containing DNS message is required because of the compressed encoding
The containing dns message is required because the compressed encoding
and reference suffixes present elsewhere in the packet.
If the name is less than `dst_len` characters long, the remainder
of `dst` is terminated with `\0` characters. Otherwise, `dst` is not
If name is less than `dst_len` characters long, the remainder
of `dst` is terminated with `\0' characters. Otherwise, `dst` is not
*terminated.
If `dst_len` is 0 `dst` can be NULL.
Returns the uncompressed name length.
Return the uncompressed name length.
+1 -1
View File
@@ -7,5 +7,5 @@ signature: |
int query_type);
---
Sends a DNS query to the remote end.
Send a DNS query to the remote end.
+4 -4
View File
@@ -6,11 +6,11 @@ signature: |
void mg_set_protocol_dns(struct mg_connection *nc);
---
Attaches a built-in DNS event handler to the given listening connection.
Attach built-in DNS event handler to the given listening connection.
The DNS event handler parses the incoming UDP packets, treating them as DNS
requests. If an incoming packet gets successfully parsed by the DNS event
handler, a user event handler will receive an `MG_DNS_REQUEST` event, with
DNS event handler parses incoming UDP packets, treating them as DNS
requests. If incoming packet gets successfully parsed by the DNS event
handler, a user event handler will receive `MG_DNS_REQUEST` event, with
`ev_data` pointing to the parsed `struct mg_dns_message`.
See