- DNS Flag Day 2020: change edns-buffer-size default to 1232.

This commit is contained in:
Ralph Dolmans
2020-09-29 14:07:38 +02:00
parent 83200a3431
commit b6d04f500b
7 changed files with 14 additions and 20 deletions
+1 -1
View File
@@ -501,7 +501,7 @@ add_edns(uint8_t* pktbuf, size_t pktsize, int do_flag, uint8_t *ednsdata,
{
uint8_t edns[] = {0x00, /* root label */
0x00, LDNS_RR_TYPE_OPT, /* type */
0x10, 0x00, /* class is UDPSIZE 4096 */
0x04, 0xD0, /* class is UDPSIZE 1232 */
0x00, /* TTL[0] is ext rcode */
0x00, /* TTL[1] is edns version */
(uint8_t)(do_flag?0x80:0x00), 0x00, /* TTL[2-3] is edns flags, DO */