History log of /external/iputils/ping.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
3d667ccb6c8aa805006cfbe2bc793a4ee1ae0047 30-May-2014 Lorenzo Colitti <lorenzo@google.com> Make ping use socket marks properly.

ping and ping6 have an option to set the socket mark on the
sockets they use, but unfortunately they do not use that option
on the sockets they use to determine their local address. Thus,
those checks are incorrect, and can result in ping failing to
run if unmarked sockets have no connectivity.

Change-Id: I2b8c30d314d6723a89d26d636f4f3fd0b9b8c3ac
/external/iputils/ping.c
924a10d5d9645d4e82fa4b9781f2d85b41ec74f1 09-Jul-2013 Lorenzo Colitti <lorenzo@google.com> Put the Android security check in its own function

Bug: 9469682
Change-Id: I60253008333edd7c8f2efe63f31059dc22adda63
/external/iputils/ping.c
7618e8104cac3bcc0ba509f4ba40644b665a3ac1 09-Jul-2013 Lorenzo Colitti <lorenzo@google.com> Rely on the kernel to check the ident for us.

The code path that uses the ping socket still keeps track of the
ident value in the packet. This is unnecessary because the ident
value is overwritten by the kernel when sending packets and is
checked by the kernel when receiving packets.

Instead just rely on the fact that the kernel checks the ident
value on received packets filters out non-matching replies. This
allows us to remove the code that calls bind() and getsockname()
just to get the ident value from the socket.

Bug: 9469682
Change-Id: I5041316c6e5262a4de2b547c40bd77cfac29a5b9
/external/iputils/ping.c
ce2d2d04ca21aedab67bd41dd9f89063454ed463 09-Jul-2013 Lorenzo Colitti <lorenzo@google.com> Add a function to check if a packet is ours

This allows the ping socket codepaths to be simpler.

Bug: 9469682
Change-Id: I05174cafd74ad5de5e867af8a3a3ac19439034b4
/external/iputils/ping.c
eadaaeadfa3d5fcf49f433896e9244f0a10a5f63 09-Jul-2013 Lorenzo Colitti <lorenzo@google.com> Reduce spurious diffs with upstream.

Bug: 9469682
Change-Id: I69260ab36fa5eb02c979cea38d0ed2e100e1acbb
/external/iputils/ping.c
5df1daf326001b8d7d91a8b726ded17e09309952 09-Jul-2013 Lorenzo Colitti <lorenzo@google.com> Apply local Android modifications to ping.

This just copies files from external/ping to external/iputils.

Bug: 9469682
Change-Id: Id55cdd44e7908f1ac1faffb65eea372969de15fc
/external/iputils/ping.c
313379eb6b9da55f7371adef39a92153a0707d4a 10-Jul-2013 Lorenzo Colitti <lorenzo@google.com> Initial import from ToT git.

Bug: 9469682
Change-Id: I6fc32550557dc5e94e9ecbbb57b0ec30a844adb4
Upstream: git://git.linux-ipv6.org/gitroot/iputils.git
Commit: 608419a7804caf36a359875d2fdae0b3eb181387
/external/iputils/ping.c