]> git.gsnw.org Git - fping.git/commit
use kernel-assigned ping ident value
authorSteven Noonan <steven@uplinklabs.net>
Thu, 27 Feb 2020 18:53:25 +0000 (10:53 -0800)
committerSteven Noonan <steven@uplinklabs.net>
Thu, 27 Feb 2020 21:46:38 +0000 (13:46 -0800)
commit1486bf209baa49724c7f776463d2ba5858fa0ff4
tree1a5ff0013c5323ebcc89e99cd69b2e0388d466cc
parentbc5017b329ac03ddc1334304dcd2f59ff910eb97
use kernel-assigned ping ident value

On Linux, when running with an unprivileged process, the kernel does not
respect the assigned "id" field. So in that scenario we need to ask the
kernel what assignment it has given us instead.

Signed-off-by: Steven Noonan <steven@uplinklabs.net>
src/fping.c
src/fping.h
src/socket4.c
src/socket6.c