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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user