… | |
… | |
42 | #include <unistd.h> |
42 | #include <unistd.h> |
43 | #include <fcntl.h> |
43 | #include <fcntl.h> |
44 | |
44 | |
45 | #include <map> |
45 | #include <map> |
46 | |
46 | |
|
|
47 | #include <cstdio> /* bug in libgmp: gmp.h relies on cstdio being included */ |
47 | #include <gmp.h> |
48 | #include <gmp.h> |
48 | |
49 | |
49 | #include "netcompat.h" |
50 | #include "netcompat.h" |
50 | |
51 | |
51 | #include "vpn.h" |
52 | #include "vpn.h" |
… | |
… | |
724 | |
725 | |
725 | dns_connection::dns_connection (connection *c) |
726 | dns_connection::dns_connection (connection *c) |
726 | : c (c) |
727 | : c (c) |
727 | , rcvdq (MAX_BACKLOG * 2) |
728 | , rcvdq (MAX_BACKLOG * 2) |
728 | , snddq (MAX_BACKLOG) |
729 | , snddq (MAX_BACKLOG) |
729 | , tw (this, &dns_connection::time_cb) |
|
|
730 | { |
730 | { |
|
|
731 | tw.set<dns_connection, &dns_connection::time_cb> (this); |
|
|
732 | |
731 | vpn = c->vpn; |
733 | vpn = c->vpn; |
732 | |
734 | |
733 | established = false; |
735 | established = false; |
734 | |
736 | |
735 | rcvseq = repseq = sndseq = 0; |
737 | rcvseq = repseq = sndseq = 0; |