Abtin Keshavarzian
14ef4e4082
[dns-header] add common TXT record entry parsing API ( #6157 )
...
This commit adds a new public `ot` API for parsing an encoded DNS TXT
record data into `TxtEntry` key/value pairs. It also updates the TXT
data iterator model used for going through all TXT entries. The new
iterator definition provides a small buffer to store the key string.
This helps simplify the definition of `otDnsTxtEntry` to use
null-terminated C string for the key. The new parsing APIs are used in
CLI module.
This commit also fixes an issue with `TxtEntry::AppendEntries()` using
incorrect value for the key length.
Finally, this commit adds a test covering the behavior of all
`TxtEntry` related methods (encoding and parsing TXT data) in the unit
test `test_dns`.
2021-02-19 16:17:35 -08:00
..
2021-02-09 12:18:16 -08:00
2021-02-09 12:18:16 -08:00
2021-02-09 20:25:26 -08:00
2020-12-21 07:12:25 -08:00
2019-10-04 11:03:58 -07:00
2020-10-26 08:16:51 -07:00
2020-10-27 22:58:20 -07:00
2020-10-28 08:41:05 -07:00
2020-11-04 20:47:02 -08:00
2020-11-02 07:04:27 -08:00
2020-11-02 23:34:19 -08:00
2020-11-04 10:42:22 -08:00
2020-11-04 20:45:01 -08:00
2020-11-04 19:24:51 -08:00
2020-11-02 23:26:41 -08:00
2020-11-02 22:59:37 -08:00
2020-12-19 08:20:53 -08:00
2020-12-21 07:12:25 -08:00
2020-11-04 10:46:48 -08:00
2020-11-05 21:11:05 -08:00
2020-11-16 22:28:59 -08:00
2020-11-16 22:28:21 -08:00
2020-11-16 22:29:25 -08:00
2020-11-17 23:01:28 -08:00
2020-11-16 08:53:26 -08:00
2020-11-16 17:17:48 -08:00
2020-12-02 21:26:31 -08:00
2020-11-16 17:18:23 -08:00
2020-11-16 08:57:36 -08:00
2020-12-07 10:06:05 -08:00
2020-11-26 08:32:51 -08:00
2020-11-26 08:33:49 -08:00
2020-12-02 12:01:58 -08:00
2020-11-26 08:37:49 -08:00
2020-12-02 12:02:09 -08:00
2020-12-02 12:02:22 -08:00
2020-09-29 15:30:37 -07:00
2020-11-30 21:15:18 -08:00
2020-09-29 15:30:37 -07:00
2020-09-29 15:30:37 -07:00
2020-09-29 15:30:37 -07:00
2020-09-29 15:30:37 -07:00
2020-09-29 15:30:37 -07:00
2020-09-29 15:30:37 -07:00
2020-09-29 15:30:37 -07:00
2020-09-29 15:30:37 -07:00
2020-12-11 07:35:44 -08:00
2020-10-13 22:40:57 -07:00
2020-12-11 07:35:44 -08:00
2020-12-02 12:03:35 -08:00
2020-12-14 11:48:31 -08:00
2020-12-14 08:33:43 -08:00
2020-09-29 15:30:37 -07:00
2020-09-29 15:30:37 -07:00
2020-12-18 08:05:08 -08:00
2020-11-29 20:12:55 -08:00
2020-11-27 09:03:49 -08:00
2020-09-29 15:30:37 -07:00
2020-12-02 08:30:23 -08:00
2020-09-29 15:30:37 -07:00
2020-11-27 09:05:07 -08:00
2020-09-29 15:30:37 -07:00
2020-11-24 08:23:04 -08:00
2020-09-29 15:30:37 -07:00
2020-09-29 15:30:37 -07:00
2020-09-29 15:30:37 -07:00
2020-11-27 10:39:34 -08:00
2020-11-27 09:02:44 -08:00
2020-09-29 15:30:37 -07:00
2020-12-09 23:32:16 -08:00
2020-09-29 15:30:37 -07:00
2020-09-29 15:30:37 -07:00
2020-09-29 15:30:37 -07:00
2020-12-02 08:31:12 -08:00
2020-09-29 15:30:37 -07:00
2020-12-07 10:09:31 -08:00
2020-09-29 15:30:37 -07:00
2020-12-23 15:45:01 -08:00
2020-12-19 08:22:20 -08:00
2020-12-19 19:00:41 -08:00
2020-12-08 10:39:17 -08:00
2020-12-09 07:34:07 -08:00
2020-09-29 15:30:37 -07:00
2020-12-14 23:24:43 -08:00
2020-10-11 11:09:40 -07:00
2020-10-11 11:09:40 -07:00
2020-12-16 08:07:44 -08:00
2020-12-24 11:00:03 -08:00
2020-12-24 11:00:03 -08:00
2020-12-24 11:00:03 -08:00
2020-12-24 11:00:03 -08:00
2020-12-17 07:10:26 -08:00
2020-12-17 07:10:26 -08:00
2020-12-18 20:24:49 -08:00
2020-12-17 07:10:26 -08:00
2020-12-17 07:10:26 -08:00
2020-12-17 07:10:26 -08:00
2020-09-29 19:47:41 -07:00
2020-12-14 08:37:15 -08:00
2020-10-14 12:23:55 -07:00
2020-10-14 12:23:55 -07:00
2020-09-29 15:30:37 -07:00
2020-09-29 15:30:37 -07:00
2020-09-29 15:30:37 -07:00
2020-12-17 07:10:26 -08:00
2020-12-17 07:10:26 -08:00
2020-12-24 11:00:03 -08:00
2020-08-06 21:40:24 -07:00
2020-12-14 23:24:43 -08:00
2020-08-06 21:40:24 -07:00
2020-12-23 15:19:12 -08:00
2020-02-04 10:27:50 -08:00
2020-08-06 21:40:24 -07:00
2020-08-06 21:40:24 -07:00
2020-08-06 21:40:24 -07:00
2020-08-17 22:34:38 -07:00
2021-02-19 10:00:19 -08:00
2020-12-09 08:49:07 -08:00
2020-12-14 23:24:43 -08:00
2020-08-06 21:40:24 -07:00
2020-10-29 20:04:39 -07:00
2020-08-06 21:40:24 -07:00
2020-08-06 21:40:24 -07:00
2020-08-06 21:40:24 -07:00
2020-08-06 21:40:24 -07:00
2021-02-19 16:17:35 -08:00
2020-09-29 22:37:33 -07:00
2020-04-24 16:22:00 -07:00
2021-02-09 12:18:16 -08:00
2020-11-05 09:04:58 -08:00
2021-02-18 09:05:29 -08:00
2021-01-05 10:27:42 -08:00
2020-08-03 09:25:14 -07:00
2020-06-10 18:14:59 -07:00
2021-01-26 13:27:32 -08:00
2020-09-29 15:30:37 -07:00
2020-08-06 21:40:24 -07:00
2020-09-29 15:30:37 -07:00
2020-08-06 21:40:24 -07:00
2020-08-06 21:40:24 -07:00
2020-08-06 21:40:24 -07:00
2021-02-19 16:17:35 -08:00
2020-09-29 15:30:37 -07:00
2020-09-29 15:30:37 -07:00
2020-08-06 21:40:24 -07:00
2020-08-06 21:40:24 -07:00
2020-08-06 21:40:24 -07:00
2020-09-29 15:30:37 -07:00
2020-08-06 21:40:24 -07:00
2020-08-06 21:40:24 -07:00
2020-08-06 21:40:24 -07:00
2020-09-29 15:30:37 -07:00
2020-09-29 15:30:37 -07:00
2020-09-29 15:30:37 -07:00
2020-09-29 15:30:37 -07:00
2020-09-29 15:30:37 -07:00
2020-09-29 15:30:37 -07:00
2021-02-19 10:00:19 -08:00
2021-01-22 13:19:21 -08:00
2021-02-05 10:11:07 -08:00
2021-01-28 21:12:56 -08:00
2020-12-30 11:25:48 -08:00
2020-08-06 21:40:24 -07:00
2021-02-18 09:05:29 -08:00
2020-09-29 15:30:37 -07:00
2020-12-10 23:31:41 -08:00
2020-10-29 20:04:39 -07:00
2020-10-29 20:04:39 -07:00
2020-08-06 21:40:24 -07:00
2020-10-23 08:48:54 -07:00
2021-02-18 09:05:29 -08:00
2020-10-23 08:48:54 -07:00
2020-10-23 08:48:54 -07:00
2020-10-23 08:48:54 -07:00
2020-09-29 15:30:37 -07:00
2020-09-29 15:30:37 -07:00
2020-09-29 15:30:37 -07:00
2020-09-29 15:30:37 -07:00
2020-09-29 15:30:37 -07:00
2020-09-29 15:30:37 -07:00
2020-10-30 12:28:39 -07:00