Hi Tommaso,
Thank you very much for your reply. Yes the assert was failing because some headers are missing in some of the packets.
Now, I am using alternate approach using packet tag at the MAC layer. But I am facing some problem. I added a uint32_t field in the lte-radio-bearer-tag, I added/modified get, set, serialize, Deserialize methods; also changed the GetSerialized Size() to accommodate 4 more bytes (for 32 bit field). Till this point it is fine and I can add the field in the tag in function call. However, when I do a RemovePacketTag and read the field, it round offs the field as 8 bit size and I am getting back (field_value%255). I checked my GetField method and member variables, everything is set as uint32_t. Could you please advise if I am missing anything.
Thanks in advance.