diff options
author | Ido Barnea <ibarnea@cisco.com> | 2016-09-25 16:58:02 +0300 |
---|---|---|
committer | Ido Barnea <ibarnea@cisco.com> | 2016-10-05 10:45:28 +0300 |
commit | a42bf7bc43e78e63c266c22cccf15ce3f4cab297 (patch) | |
tree | bf8c61d079f7aa8e94ae6f82262923da92019ced /src/platform_cfg.cpp | |
parent | af781231f369dfcf735b499ed65b800e7d6b5537 (diff) |
pre test: Periodically send gratuitous ARP in stateful
Diffstat (limited to 'src/platform_cfg.cpp')
-rwxr-xr-x | src/platform_cfg.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/platform_cfg.cpp b/src/platform_cfg.cpp index a090a0cd..a8f7997c 100755 --- a/src/platform_cfg.cpp +++ b/src/platform_cfg.cpp @@ -174,6 +174,14 @@ uint32_t CMacYamlInfo::get_ip() { return m_ip; } +uint32_t CMacYamlInfo::get_mask() { + return m_mask; +} + +uint32_t CMacYamlInfo::get_vlan() { + return m_vlan; +} + void CMacYamlInfo::Dump(FILE *fd){ if (m_dest_base.size() != 6) { fprintf(fd,"ERROR in dest mac addr \n"); @@ -244,6 +252,12 @@ void operator >> (const YAML::Node& node, CMacYamlInfo & mac_info) { if (! utl_yaml_read_ip_addr(node, "ip", mac_info.m_ip)) { mac_info.m_ip = 0; } + if (! utl_yaml_read_ip_addr(node, "mask", mac_info.m_mask)) { + mac_info.m_mask = 0; + } + if (! utl_yaml_read_uint16(node, "vlan", mac_info.m_vlan)) { + mac_info.m_vlan = 0; + } } void operator >> (const YAML::Node& node, CPlatformMemoryYamlInfo & plat_info) { |