perfsonar / bwctl

A scheduling and policy framework for measurement tools
Apache License 2.0
16 stars 6 forks source link

OSX: bwctld ping6 fails with RECVPATHMTU error #29

Closed candlerb closed 3 years ago

candlerb commented 8 years ago

From a Linux host, pointing to a Mac OSX (10.10.5) host which is on IPv6:

$ bwping -t 255 -s <osx-host>
bwping: Using tool: ping
bwping: 20 seconds until test results available

SENDER START
ping6: setsockopt(IPV6_RECVPATHMTU): Operation not permitted
bwctl: local tool exited before expected with status=1

SENDER END

Running with -v also shows:

bwctl: exec_line: ping6 -c 10 -i 1.000000 -m 255 -S 2001:db8:1:64::252 2001:db8:0:2::254

You get the same error if you run this command at the OSX command line as a non-privileged user:

osx$ ping6 -c 10 -i 1.000000 -m 255 -S 2001:db8:1:64::252 2001:db8:0:2::254
ping6: setsockopt(IPV6_RECVPATHMTU): Operation not permitted

The problem doesn't occur if you omit -t 255 (from bwping) or -m 255 (from ping6)

Not sure if there is any workaround other than running bwctld as root, or making ping6 setuid, neither of which is desirable.