Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gentoo Guys, Are Your ping and ping6 the Same?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
wswartzendruber
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1261
Location: Idaho, USA

PostPosted: Tue Dec 20, 2016 4:32 pm    Post subject: Gentoo Guys, Are Your ping and ping6 the Same? Reply with quote

I've been irritated for years that ping and ping6 were two separate utilities. Well, I'm back with Linux now (Ubuntu) and I randomly decided to ping www.google.com. It returned a v6 address. Further investigation has revealed:

Code:
wswartzendruber@wswartzendruber-System-Product-Name:/bin$ ls -l /bin/ping*
-rwsr-xr-x 1 root root 60288 Jun 15  2016 /bin/ping
lrwxrwxrwx 1 root root     4 Dec 19 21:17 /bin/ping4 -> ping
lrwxrwxrwx 1 root root     4 Dec 19 21:17 /bin/ping6 -> ping
wswartzendruber@wswartzendruber-System-Product-Name:/bin$

...and...

Code:
wswartzendruber@wswartzendruber-System-Product-Name:/bin$ ping -h
Usage: ping [-aAbBdDfhLnOqrRUvV64] [-c count] [-i interval] [-I interface]
            [-m mark] [-M pmtudisc_option] [-l preload] [-p pattern] [-Q tos]
            [-s packetsize] [-S sndbuf] [-t ttl] [-T timestamp_option]
            [-w deadline] [-W timeout] [hop1 ...] destination
Usage: ping -6 [-aAbBdDfhLnOqrRUvV] [-c count] [-i interval] [-I interface]
             [-l preload] [-m mark] [-M pmtudisc_option]
             [-N nodeinfo_option] [-p pattern] [-Q tclass] [-s packetsize]
             [-S sndbuf] [-t ttl] [-T timestamp_option] [-w deadline]
             [-W timeout] destination
wswartzendruber@wswartzendruber-System-Product-Name:/bin$

Is it the same for you guys?
_________________
Git has obsoleted SVN.
10mm Auto has obsoleted 45 ACP.
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Tue Dec 20, 2016 4:50 pm    Post subject: Reply with quote

wswartzendruber ... this would depend on useflags:

Code:
# equery belongs -e /bin/ping
 * Searching for /bin/ping ...
net-misc/iputils-20151218 (/bin/ping)
# equery -NC u net-misc/iputils | grep ipv6
 - - ipv6  : Add support for IP version 6
# ls -l /bin/ping*
-rwx--x--x 1 root root 42996 2016-05-27 14:10 /bin/ping

best ... khay
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 6968

PostPosted: Tue Dec 20, 2016 4:54 pm    Post subject: Reply with quote

it will answer you :)
http://www.portagefilelist.de/site/query/listPackageFiles/?category=net-misc&package=iputils&version=20160308&do#result
Back to top
View user's profile Send private message
wswartzendruber
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1261
Location: Idaho, USA

PostPosted: Tue Dec 20, 2016 5:19 pm    Post subject: Reply with quote

It looks like this happened last March. Good. I was wondering when iputils would join the modern world.
_________________
Git has obsoleted SVN.
10mm Auto has obsoleted 45 ACP.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 42587
Location: 56N 3W

PostPosted: Tue Dec 20, 2016 9:22 pm    Post subject: Reply with quote

Team,

Code:
$ ls -l /bin/ping*
-rws--x--x 1 root root 39800 May  7  2016 /bin/ping
-rws--x--x 1 root root 44344 May  7  2016 /bin/ping6


It looks like another learning opportunity for me.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5592

PostPosted: Thu Dec 22, 2016 2:33 am    Post subject: Reply with quote

Code:
 ~ $ ls /bin/ping*
-rwx--x--x 1 root root   45728 Apr 27  2016 ping
-rwx--x--x 1 root root   46112 Apr 27  2016 ping6
 ~ $ /sbin/getcap /bin/ping*
/bin/ping = cap_net_raw+ep
/bin/ping6 = cap_net_raw+ep
 ~ $ emerge --info iputils | sed -n '/iputils/,$ p'
net-misc/iputils-20151218::gentoo was built with the following:
USE="caps filecaps ipv6 -SECURITY_HAZARD -arping -clockdiff -doc -gcrypt -idn -libressl -rarpd -rdisc -ssl -static -tftpd -tracepath -traceroute" ABI_X86="64"

I prefer them being separate binaries myself, but then I'm also one of those weirdos that does `sysctl net.ipv6.bindv6only=1` for security.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum