Thread (17 messages) flat view 17 messages, 4 authors, 2014-11-27

Re: [PATCH rfc 1/4] net-timestamp: pull headers for SOCK_STREAM

From: Richard Cochran <richardcochran@gmail.com>
Date: 2014-11-27 12:30:45

On Wed, Nov 26, 2014 at 04:36:39PM -0800, Andy Lutomirski wrote:
Is there any reason to believe that unconditionally dropping the
headers would break anything?  I find it a bit hard to believe that
anyone has actually implemented logic to figure out *what* L2 header
type should be decoded and decode it.
Documentation/networking/timestamping/timestamping.c

				else if (!memcmp(sync, data + res - sizeof(sync),
							sizeof(sync)))
					printf(" => GOT OUR DATA BACK (HURRAY!)");

The example program looks from the end of the buffer, ignoring the lower headers.

Thanks,
Richard
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help