(A) the CL is trying to preserve the headers
iirc, would break the test, it does a ping to localhost
(B) we have somehow started using a system call that drops the headers
and the code is trying to avoid dropping the beginning of the data.
iirc, would break the test, it does a ping to localhost
(B) we have somehow started using a system call that drops the headers
and the code is trying to avoid dropping the beginning of the data.
is this for make things work on some kernel/platform that behaves
differently? i think when i did this i tested it on linux, bsd and
mcapple and they all behaved the same way
i suspect someone wants the headers (which is arguably fair) but not
what the API did on the past
i would prefer APIs that don't involve syscall be fairly uniform and not
protocol specific
if you need protocol/platform specific thins, importing syscall or
unsafe might be required
https://codereview.appspot.com/6445105/