We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ff_netstat -r
1 parent 2156ba5 commit bf68b4fCopy full SHA for bf68b4f
tools/netstat/route.c
@@ -559,17 +559,18 @@ routename(struct sockaddr *sa, int flags)
559
#ifdef INET
560
case AF_INET:
561
src = &satosin(sa)->sin_addr;
562
+ inet_ntop(sa->sa_family, src, line, sizeof(line) - 1);
563
break;
564
#endif /* INET */
565
#ifdef INET6
566
case AF_INET6:
567
src = &satosin6(sa)->sin6_addr;
568
+ inet_ntop(AF_INET6_LINUX, src, line, sizeof(line) - 1);
569
570
#endif /* INET6 */
571
default:
572
return(line);
573
}
- inet_ntop(sa->sa_family, src, line, sizeof(line) - 1);
574
return (line);
575
576
trimdomain(line, strlen(line));
0 commit comments