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

Modified classes to use the IPv4Address class.

This commit is contained in:
Matias Fontanini
2012-05-15 11:19:25 -03:00
parent 08f8521ae7
commit 811e194148
10 changed files with 139 additions and 116 deletions

View File

@@ -67,7 +67,7 @@ void Tins::ARP::sender_hw_addr(const uint8_t* new_snd_hw_addr) {
}
void Tins::ARP::sender_ip_addr(IPv4Address new_snd_ip_addr) {
this->_arp.ar_sip = Utils::net_to_host_l(new_snd_ip_addr);
this->_arp.ar_sip = new_snd_ip_addr;
}
void Tins::ARP::target_hw_addr(const uint8_t* new_tgt_hw_addr) {
@@ -75,7 +75,7 @@ void Tins::ARP::target_hw_addr(const uint8_t* new_tgt_hw_addr) {
}
void Tins::ARP::target_ip_addr(IPv4Address new_tgt_ip_addr) {
this->_arp.ar_tip = Utils::net_to_host_l(new_tgt_ip_addr);
this->_arp.ar_tip = new_tgt_ip_addr;
}
void Tins::ARP::hw_addr_format(uint16_t new_hw_addr_fmt) {