On Fri, Apr 06, 2018 at 08:09:25AM -0700, Richard Cochran wrote: > On Fri, Apr 06, 2018 at 12:30:08PM +0200, Miroslav Lichvar wrote: > > + char buf[sizeof(*paddr) + 16]; > > Sure, 16 is large enough for a 128 bit ipv6 address, but I'd like this > to be explicit. > > char buf[sizeof(*paddr) + sizeof(struct sockaddr_storage)]; > > How about this?
That's definitely better. Will you fix the patch, or would you like me to send v2? -- Miroslav Lichvar ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Linuxptp-devel mailing list Linuxptp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-devel