1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-25 19:51:34 +01:00

Fixed some bugs in Dot11 and DNS. Most of the code uses host_to_be and be_to_host.

This commit is contained in:
Matias Fontanini
2012-08-16 00:34:18 -03:00
parent 892bc0ecd3
commit 27f6eeccd4
23 changed files with 185 additions and 181 deletions

View File

@@ -81,15 +81,15 @@ void BootP::hops(uint8_t new_hops) {
}
void BootP::xid(uint32_t new_xid) {
_bootp.xid = Utils::to_be(new_xid);
_bootp.xid = Utils::host_to_be(new_xid);
}
void BootP::secs(uint16_t new_secs) {
_bootp.secs = Utils::to_be(new_secs);
_bootp.secs = Utils::host_to_be(new_secs);
}
void BootP::padding(uint16_t new_padding) {
_bootp.padding = Utils::to_be(new_padding);
_bootp.padding = Utils::host_to_be(new_padding);
}
void BootP::ciaddr(IPv4Address new_ciaddr) {