Bugzilla – Bug 2596
EthernetTrailer::GetFcs should be const
Last modified: 2017-01-26 00:49:40 UTC
This function doesn't have to be non-const at all. Being non-const compormises usability of this function.
I agree, I will patch this if no other comments. --- a/src/network/utils/ethernet-trailer.h Thu Dec 22 23:20:55 2016 +0300 +++ b/src/network/utils/ethernet-trailer.h Sat Dec 24 07:28:17 2016 -0800 @@ -67,7 +67,7 @@ /** * \return the FCS contained in this trailer */ - uint32_t GetFcs (); + uint32_t GetFcs () const;
fixed in changeset bc8fbd146d50