1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-25 11:41:35 +01:00

No code uses net_to_host_* now.

This commit is contained in:
Matias Fontanini
2012-08-16 23:45:50 -03:00
parent 27f6eeccd4
commit e83acc92cc
7 changed files with 15 additions and 20 deletions

View File

@@ -86,7 +86,7 @@ void EthernetII::iface(const NetworkInterface& new_iface) {
}
void EthernetII::payload_type(uint16_t new_payload_type) {
this->_eth.payload_type = Utils::net_to_host_s(new_payload_type);
this->_eth.payload_type = Utils::host_to_be(new_payload_type);
}
uint32_t EthernetII::header_size() const {
@@ -137,7 +137,7 @@ void EthernetII::write_serialization(uint8_t *buffer, uint32_t total_sz, const P
default:
type = 0;
}
_eth.payload_type = Utils::net_to_host_s(type);
_eth.payload_type = Utils::host_to_be(type);
}
memcpy(buffer, &_eth, sizeof(ethhdr));
}