minor change

This commit is contained in:
hyung-hwan 2019-02-22 10:13:35 +00:00
parent a76dc94e0a
commit c82aae920a
2 changed files with 4 additions and 3 deletions

View File

@ -304,6 +304,8 @@ static mio_dns_msg_t* build_req_msg (mio_dnsc_t* dnsc, mio_dns_bqr_t* qr, mio_oo
((mio_dns_msg_alt_t*)msg)->rrcount[rr_sect] = mio_hton16(match_count); ((mio_dns_msg_alt_t*)msg)->rrcount[rr_sect] = mio_hton16(match_count);
} }
/* TODO: add EDNS0 to request if requested ...
* add EDNS0 to response if request contains it */
/* add EDNS0 OPT RR */ /* add EDNS0 OPT RR */
*dn = 0; /* root domain. as if to_dn("") is called */ *dn = 0; /* root domain. as if to_dn("") is called */
rrtr = (mio_dns_rrtr_t*)(dn + 1); rrtr = (mio_dns_rrtr_t*)(dn + 1);

View File

@ -758,14 +758,14 @@ int main (int argc, char* argv[])
if (mio_dev_sck_bind(tcp[2], &tcp_bind) <= -1) if (mio_dev_sck_bind(tcp[2], &tcp_bind) <= -1)
{ {
MIO_INFO0 (mio, "tcp[2] mio_dev_sck_bind() failed....\n"); MIO_INFO1 (mio, "tcp[2] mio_dev_sck_bind() failed - %js\n", mio_geterrmsg(mio));
goto oops; goto oops;
} }
tcp_lstn.backlogs = 100; tcp_lstn.backlogs = 100;
if (mio_dev_sck_listen(tcp[2], &tcp_lstn) <= -1) if (mio_dev_sck_listen(tcp[2], &tcp_lstn) <= -1)
{ {
MIO_INFO0 (mio, "tcp[2] mio_dev_sck_listen() failed....\n"); MIO_INFO1 (mio, "tcp[2] mio_dev_sck_listen() failed - %js\n", mio_geterrmsg(mio));
goto oops; goto oops;
} }
@ -806,7 +806,6 @@ for (i = 0; i < 5; i++)
} }
#endif #endif
{ {
mio_dnsc_t* dnsc; mio_dnsc_t* dnsc;
dnsc = mio_dnsc_start (mio/*, "8.8.8.8:53,1.1.1.1:53"*/); /* option - send to all, send one by one */ dnsc = mio_dnsc_start (mio/*, "8.8.8.8:53,1.1.1.1:53"*/); /* option - send to all, send one by one */