Re: [Linuxptp-devel] [PATCH] msg: Append multiple TLVs correctly.

2018-04-03 Thread Keller, Jacob E
> -Original Message- > From: Richard Cochran [mailto:richardcoch...@gmail.com] > Sent: Monday, April 02, 2018 10:08 PM > To: linuxptp-devel@lists.sourceforge.net > Subject: [Linuxptp-devel] [PATCH] msg: Append multiple TLVs correctly. > > The logic that adds TLVs to

[Linuxptp-devel] [PATCH] msg: Append multiple TLVs correctly.

2018-04-02 Thread Richard Cochran
The logic that adds TLVs to the end of a message mixes up the 'L' length in "TLV" with the total TLV length. As a result, the second and subsequent TLVs will corrupt the previous TLV in the buffer. This patch corrects the code to find the correct offset for the second and following appended