
Not use sizeof on packet memory structure for stream length check/estimating and use number directly. Most of the packet size could be obviously calculated/verified from code and comments in same function. Macro is defined for those were referenced multiple times.