On Fri, Jul 15, 2022 at 06:16:21AM +0000, Magnus Armholt wrote:
> A packet capture shows that the SYNC message is actually only padded by 2 
> bytes (I forgot the FCS at end of frame)
> so that will leave the remaining size (of the padding) to be parsed on 
> msg.c:425 to be smaller than the TLV size (4)
> so no TLV will be parsed, but the code should still fail the check on 
> msg.c:429. 

It shouldn't fail with a 2-byte padding. No TLVs are found, so
suffix_len is zero and pdulen + suffix_len should be equal to
msg->header.messageLength.

-- 
Miroslav Lichvar



_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Reply via email to