ping doc: Fix typo.

Signed-off-by: Jan Synacek <jsynacek@redhat.com>
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
rdisc: Fix memory leakage in initifs() in error path.

Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
ninfod: Clean up signal/logfile handling

- Do real work outside the signal handler.
- Setup logfile early.
- Do not try unlinking pid file if filename is NULL (this is not a
  bug, because filename is alway set non-NULL by default.)

Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
ninfod: Open pidfile exclusively for write.

Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
tracepath, tracepath6: re-use printf return in print_host

Since the printf funcs already return the length of chars displayed,
use that value instead of re-calculating the length with strlen.

This also fixes the handling of the strlen return -- it's a size_t,
not an int.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
ping, ping6: fix building with older linux headers that don't define SO_MARK

Gentoo-Bugs: https://bugs.gentoo.org/335347
Patch: http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/net-misc/iputils/files/iputils-20100418-so_mark.patch?revision=1.1

Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
tracepath, tracepath6: Support -m (maximum hops) option.

This also changes the default of maximum hops to 30, instead of
31.  30 is the default of traceroute.

Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
ping: Add <linux/types.h> to fix compilation error.

<linux/types.h> is required for successful build on
latest Asianux Server 3, 4, etc.

Signed-off-by: YOSHIFUJI Hideaki <hideaki.yoshifuji@miraclelinux.com>
ping6: Use GNUTLS API directly for MD5.

Signed-off-by: YOSHIFUJI Hideaki <hideaki.yoshifuji@miraclelinux.com>
ping6: Use libgcrypt instead of gnutls for MD5.

Signed-off-by: YOSHIFUJI Hideaki <hideaki.yoshifuji@miraclelinux.com>
ninfod: Regenerate configure by autoconf-2.69.

Signed-off-by: YOSHIFUJI Hideaki <hideaki.yoshifuji@miraclelinux.com>
ping6: Use libgcrypt for MD5, instead of gnutls.

We failed to compile ping6/ninfod on Asianux Server 3/4 without openssl.
This is because gnutls packages provided by AS3/4 do not have
openssl-compatible API.

Use libgcrypt.

Signed-off-by: YOSHIFUJI Hideaki <hideaki.yoshifuji@miraclelinux.com>
ninfod: libgcrypt support.

Signed-off-by: YOSHIFUJI Hideaki <hideaki.yoshifuji@miraclelinux.com>
Merge branch 'md5-201406-ping6' into md5-201406-ping6_2
Merge branches 'md5-201406-ping6_2' and 'md5-201406-ninfod'
tracepath: Fix missing end tag for OPTION.

Fix doc/man compilation error: end tag for "OPTION" omitted, but its declaration does not permit this

Signed-off-by: YOSHIFUJI Hideaki <hideaki.yoshifuji@miraclelinux.com>
spec: Configure before building ninfod.

Signed-off-by: YOSHIFUJI Hideaki <hideaki.yoshifuji@miraclelinux.com>
spec: Update changelog.

Signed-off-by: YOSHIFUJI Hideaki <hideaki.yoshifuji@miraclelinux.com>
spec: Fix date in %changelog.

Signed-off-by: YOSHIFUJI Hideaki <hideaki.yoshifuji@miraclelinux.com>
tftpd: Exit if setuid()/setgid() failed.

Signed-off-by: YOSHIFUJI Hideaki <hideaki.yoshifuji@miraclelinux.com>