diff options
Diffstat (limited to 'transporthandler.hpp')
-rw-r--r-- | transporthandler.hpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/transporthandler.hpp b/transporthandler.hpp index 42bf717..f440403 100644 --- a/transporthandler.hpp +++ b/transporthandler.hpp @@ -47,6 +47,7 @@ struct ChannelConfig_t // vlan id is in 12 bits and the 16th bit is for enable mask. uint32_t vlanID = ipmi::network::VLAN_ID_MASK; uint8_t lan_set_in_progress = SET_COMPLETE; + bool flush = false; void clear() { @@ -57,6 +58,7 @@ struct ChannelConfig_t vlanID = ipmi::network::VLAN_ID_MASK; ipsrc = ipmi::network::IPOrigin::UNSPECIFIED; lan_set_in_progress = SET_COMPLETE; + flush = false; } }; @@ -66,3 +68,19 @@ struct ChannelConfig_t // @param[in] channel the channel // @return the ChannelConfig_t pointer. struct ChannelConfig_t* getChannelConfig(int channel); + +/** @brief Iterate over all the channelconfig and if + * user has given the data for a channel then + * apply the network changes for that channel. + */ +void commitNetworkChanges(); + +/* @brief Apply the network changes which is there in the + * network cache for a given channel which gets filled + * through setLan command. If some of the network + * parameter was not given by the setLan then this function + * gets the value of that parameter which is already + * configured on the system. + * @param[in] channel: channel number. + */ +void applyChanges(int channel); |