Bugzilla – Attachment 414117 Details for
Bug 637490
netstat -anT truncates ipv6 Adresses
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Forgot Password
[patch]
Patch fixing the issue
net-tools-1.60-dont-trim-foreign-addr6.diff (text/plain), 484 bytes, created by
Marius Tomaschewski
on 2011-02-15 11:45:05 UTC
(
hide
)
Description:
Patch fixing the issue
Filename:
MIME Type:
Creator:
Marius Tomaschewski
Created:
2011-02-15 11:45:05 UTC
Size:
484 bytes
patch
obsolete
>--- netstat.c >+++ netstat.c 2011/02/15 11:22:47 >@@ -899,8 +899,10 @@ static void tcp_do_one(int lnr, const ch > snprintf(buffer, sizeof(buffer), "%s", > get_sname(htons(rem_port), "tcp", flag_not & FLAG_NUM_PORT)); > >- if ((strlen(rem_addr) + strlen(buffer)) > 22) >- rem_addr[22 - strlen(buffer)] = '\0'; >+ if (!flag_trim) { >+ if ((strlen(rem_addr) + strlen(buffer)) > 22) >+ rem_addr[22 - strlen(buffer)] = '\0'; >+ } > > strcat(rem_addr, ":"); > strcat(rem_addr, buffer);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
Attachments on
bug 637490
: 414117