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

Added some getters and setter to ARP and refactored some methods

This commit is contained in:
Santiago Alessandri
2011-08-18 10:58:20 -03:00
parent 4532d8d236
commit 305a0a6b14
2 changed files with 44 additions and 22 deletions

View File

@@ -128,7 +128,7 @@ namespace Tins {
*
* \param new_snd_hw_addr uint8_t array containing the new sender's hardware address.
*/
void sender_hw_addr(uint8_t* new_snd_hw_addr);
void sender_hw_addr(const uint8_t* new_snd_hw_addr);
/**
* \brief Setter for the sender's IP address.
@@ -137,12 +137,19 @@ namespace Tins {
*/
void sender_ip_addr(uint32_t new_snd_ip_addr);
/**
* \brief Setter for the sender's IP address.
*
* \param new_snd_ip_addr string containing the new sender's IP address or hostname.
*/
void sender_ip_addr(const std::string& new_snd_ip_addr);
/**
* \brief Setter for the target's hardware address.
*
* \param new_tgt_hw_addr uint8_t array containing the new target's hardware address.
*/
void target_hw_addr(uint8_t* new_tgt_hw_addr);
void target_hw_addr(const uint8_t* new_tgt_hw_addr);
/**
* \brief Setter for the target's IP address.
@@ -151,6 +158,13 @@ namespace Tins {
*/
void target_ip_addr(uint32_t new_tgt_ip_addr);
/**
* \brief Setter for the target's IP address.
*
* \param new_tgt_ip_addr string containing the new target's IP address or hostname.
*/
void target_ip_addr(const std::string& new_tgt_ip_addr);
/**
* \brief Setter for the hardware address format.
*