[MacPorts] #15450: mtr unable to resolve hostname arguements on Mac OS X 10.5.3
#15450: mtr unable to resolve hostname arguements on Mac OS X 10.5.3 ------------------------------------+--------------------------------------- Reporter: bahamat@digitalelf.net | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.6.0 Keywords: 10.5.3 | ------------------------------------+--------------------------------------- When using mtr from the command line, hostnames I pass to it apparently lost. If I pass an IP address mtr operates normally. {{{ $ ping -c 1 mina PING mina.local (10.10.10.30): 56 data bytes 64 bytes from 10.10.10.30: icmp_seq=0 ttl=64 time=0.191 ms --- mina.local ping statistics --- 1 packets transmitted, 1 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.191/0.191/0.191/0.000 ms $ mtr mina nodename nor servname provided, or not known: Undefined error: 0 $ mtr -rc 1 mina nodename nor servname provided, or not known: Undefined error: 0 $ mtr -rc 1 10.10.10.30 HOST: aeris.local Loss% Snt Last Avg Best Wrst StDev 1. mina.local 0.0% 1 0.4 0.4 0.4 0.4 0.0 $ }}} -- Ticket URL: <http://trac.macports.org/ticket/15450> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15450: mtr unable to resolve hostname arguements on Mac OS X 10.5.3 -------------------------------------+-------------------------------------- Reporter: bahamat@digitalelf.net | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.6.0 Resolution: | Keywords: 10.5.3 -------------------------------------+-------------------------------------- Comment (by krb0@irridia.com): Not sure what the thought was behind "0". --- mtr.c.orig 2008-05-29 17:21:17.000000000 -0700 +++ mtr.c 2008-05-29 17:21:30.000000000 -0700 @@ -384,7 +384,7 @@ bzero( &hints, sizeof hints ); hints.ai_family = af; hints.ai_socktype = SOCK_DGRAM; - error = getaddrinfo( Hostname, "0", &hints, &res ); + error = getaddrinfo( Hostname, "", &hints, &res ); if ( error ) { perror( gai_strerror(error) ); exit( EXIT_FAILURE ); -- Ticket URL: <http://trac.macports.org/ticket/15450#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15450: mtr unable to resolve hostname arguements on Mac OS X 10.5.3 -------------------------------------+-------------------------------------- Reporter: bahamat@digitalelf.net | Owner: mr_bond@macports.org Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.6.0 Resolution: | Keywords: 10.5.3 -------------------------------------+-------------------------------------- Changes (by mr_bond@macports.org): * owner: macports-tickets@lists.macosforge.org => mr_bond@macports.org Comment: Will fix when I get home from work in a couple of hours if it's not commited yet. -- Ticket URL: <http://trac.macports.org/ticket/15450#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15450: mtr unable to resolve hostname arguements on Mac OS X 10.5.3 -------------------------------------+-------------------------------------- Reporter: bahamat@digitalelf.net | Owner: mr_bond@macports.org Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.6.0 Resolution: fixed | Keywords: 10.5.3 -------------------------------------+-------------------------------------- Changes (by mr_bond@macports.org): * status: new => closed * resolution: => fixed Comment: Thanks, fixed in r37346 -- Ticket URL: <http://trac.macports.org/ticket/15450#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts