FreeBSD Bugzilla – Attachment 9634 Details for
Bug 19663
gifconfig does not display physical IPv4 addresses
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 693 bytes, created by
Dominik Brettnacher
on 2000-07-03 11:00:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Dominik Brettnacher
Created:
2000-07-03 11:00:01 UTC
Size:
693 bytes
patch
obsolete
>diff -urN /usr/src/usr.sbin/gifconfig/gifconfig.c gifconfig/gifconfig.c >--- /usr/src/usr.sbin/gifconfig/gifconfig.c Sun Apr 16 14:47:12 2000 >+++ gifconfig/gifconfig.c Mon Jul 3 11:34:38 2000 >@@ -542,11 +542,18 @@ > psrcaddr[0] = pdstaddr[0] = '\0'; > > #ifdef INET6 >- srccmd = SIOCGIFPSRCADDR_IN6; >- dstcmd = SIOCGIFPDSTADDR_IN6; > ifrp = (struct ifreq *)&in6_ifr; >+ if (ifrp->ifr_addr.sa_family == AF_INET6) { >+ srccmd = SIOCGIFPSRCADDR_IN6; >+ dstcmd = SIOCGIFPDSTADDR_IN6; >+ } >+ else { >+ srccmd = SIOCGIFPSRCADDR; >+ dstcmd = SIOCGIFPDSTADDR; >+ } >+ > #else /* INET6 */ >- ifrp = ifr; >+ ifrp = (struct ifreq *)𝔦 > srccmd = SIOCGIFPSRCADDR; > dstcmd = SIOCGIFPDSTADDR; > #endif /* INET6 */
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 19663
: 9634