FreeBSD Bugzilla – Attachment 112331 Details for
Bug 153731
[patch] ifconfig(8): ifconfig prints trailing whitespace for interfaces that do not have IFF_BROADCAST (like point to point)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 657 bytes, created by
Nikolay Denev
on 2011-01-06 15:40:05 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Nikolay Denev
Created:
2011-01-06 15:40:05 UTC
Size:
657 bytes
patch
obsolete
>--- sbin/ifconfig/af_inet.c.orig 2011-01-06 16:14:36.682832713 +0100 >+++ sbin/ifconfig/af_inet.c 2011-01-06 16:15:24.041648987 +0100 >@@ -79,12 +79,12 @@ > sin = (struct sockaddr_in *)ifa->ifa_netmask; > if (sin == NULL) > sin = &null_sin; >- printf("netmask 0x%lx ", (unsigned long)ntohl(sin->sin_addr.s_addr)); >+ printf("netmask 0x%lx", (unsigned long)ntohl(sin->sin_addr.s_addr)); > > if (ifa->ifa_flags & IFF_BROADCAST) { > sin = (struct sockaddr_in *)ifa->ifa_broadaddr; > if (sin != NULL && sin->sin_addr.s_addr != 0) >- printf("broadcast %s", inet_ntoa(sin->sin_addr)); >+ printf(" broadcast %s", inet_ntoa(sin->sin_addr)); > } > putchar('\n'); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 153731
: 112331