Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
DISCONTINUED:openSUSE:11.2
iputils
iputils-ss021109-locallinksyntax.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File iputils-ss021109-locallinksyntax.diff of Package iputils
This patch for iputils allows to use the standard ping6 link-local-addr%interface syntax instead of ping6 -I interface link-local-addr. This matches BSD ping. Please apply. -Andi diff -u iputils/ping6.c-o iputils/ping6.c --- iputils/ping6.c-o 2005-07-08 02:21:34.000000000 +0200 +++ iputils/ping6.c 2005-07-08 02:51:47.000000000 +0200 @@ -268,6 +268,14 @@ target = *argv; + if (!device) { + char *s = strchr(target, '%'); + if (s) { + device = s+1; + *s = 0; + } + } + if (inet_pton(AF_INET6, target, &addr) <= 0) { struct hostent *hp; @@ -296,6 +304,14 @@ memset(&whereto, 0, sizeof(struct sockaddr_in6)); whereto.sin6_family = AF_INET6; whereto.sin6_port = htons(IPPROTO_ICMPV6); + + if (!device) { + char *s = strchr(target, '%'); + if (s) { + device = s+1; + *s = 0; + } + } if (inet_pton(AF_INET6, target, &whereto.sin6_addr) <= 0) { struct hostent *hp; --
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor