1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-28 12:44:25 +01:00

libtins compiles and runs under windows. Packets apparently can't be sent yet.

This commit is contained in:
Matias Fontanini
2012-12-02 20:25:05 -03:00
parent 6d1e96866e
commit 742276c251
43 changed files with 851 additions and 815 deletions

View File

@@ -207,7 +207,8 @@ uint32_t NamedDNSRRImpl::size() const {
}
uint32_t NamedDNSRRImpl::do_write(uint8_t *buffer) const {
std::copy(name.begin(), name.end() + 1, buffer);
buffer = std::copy(name.begin(), name.end(), buffer);
*buffer = 0;
return name.size() + 1;
}