Project

General

Profile

Actions

Bug #16585

open

ping ignores ipv6 scope id in target address

Added by Bill Sommerfeld 19 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
networking
Start date:
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
External Bug:

Description

You can tag an ipv6 address fed to getaddrinfo with a %ifname to scope it to that interface; this is most useful with link-local addresses which are inherently scoped. Ping accepts that syntax, but ignores the scope and sends the packet out the default interface.

Reproducer:

ping ff02::1%$interface

where $interface is not the destination of the default route. Annoyingly, ping does print the scope id you supplied as if it is sending it there but the scope is ignored. It does not print the scope id in the received addresses (and probably should - I see ping on FreeBSD and MacOS adding scopes to link-local reply addresses).

Workaround:

ping -i $interface ff02::1

No data to display

Actions

Also available in: Atom PDF