FreeBSD Bugzilla – Attachment 177740 Details for
Bug 215105
link_ntoa() hex formatting breakage in today's patch
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
proposed patch, not tested yet
linkaddr.c.diff (text/plain), 550 bytes, created by
Gleb Smirnoff
on 2016-12-07 07:17:34 UTC
(
hide
)
Description:
proposed patch, not tested yet
Filename:
MIME Type:
Creator:
Gleb Smirnoff
Created:
2016-12-07 07:17:34 UTC
Size:
550 bytes
patch
obsolete
>Index: net/linkaddr.c >=================================================================== >--- net/linkaddr.c (revision 309667) >+++ net/linkaddr.c (working copy) >@@ -151,18 +151,17 @@ link_ntoa(const struct sockaddr_dl *sdl) > rem--; > } > i = *in++; >- if (i > 0xf) { >+ if ((u_char )i > 0xf) { > if (rem < 3) > break; >+ *out++ = hexlist[i >> 4]; > *out++ = hexlist[i & 0xf]; >- i >>= 4; >- *out++ = hexlist[i]; > rem -= 2; > } else { > if (rem < 2) > break; > *out++ = hexlist[i]; >- rem++; >+ rem--; > } > } > *out = 0;
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 215105
:
177740
|
177744