1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-29 13:04:28 +01:00

Fixed endiannes buf in ARP.

This commit is contained in:
Matias Fontanini
2011-09-15 11:41:34 -03:00
parent 28f064b1c7
commit 7bc143e290
2 changed files with 44 additions and 28 deletions

View File

@@ -122,7 +122,7 @@ namespace Tins {
*
* \return Returns the ARP opcode in an uint16_t.
*/
inline uint16_t opcode() { return this->_arp.ar_op; }
inline uint16_t opcode() { return Utils::net_to_host_s(this->_arp.ar_op); }
/** \brief Getter for the header size.
* \return Returns the ARP header size.