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