FreeBSD Bugzilla – Attachment 10402 Details for
Bug 20877
ICMP error msg on UDP port unreachable is incorrect
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
p
p (text/plain; charset=us-ascii), 1.07 KB, created by
ru
on 2000-08-28 17:46:47 UTC
(
hide
)
Description:
p
Filename:
MIME Type:
Creator:
ru
Created:
2000-08-28 17:46:47 UTC
Size:
1.07 KB
patch
obsolete
>Index: ip_icmp.c >=================================================================== >RCS file: /home/ncvs/src/sys/netinet/ip_icmp.c,v >retrieving revision 1.43 >diff -u -p -r1.43 ip_icmp.c >--- ip_icmp.c 2000/06/02 20:18:38 1.43 >+++ ip_icmp.c 2000/08/28 16:28:41 >@@ -191,7 +191,14 @@ icmp_error(n, type, code, dest, destifp) > icp->icmp_code = code; > bcopy((caddr_t)oip, (caddr_t)&icp->icmp_ip, icmplen); > nip = &icp->icmp_ip; >- nip->ip_len = htons((u_short)(nip->ip_len + oiplen)); >+ nip->ip_len += oiplen; >+ >+ /* >+ * Convert fields to network representation. >+ */ >+ HTONS(nip->ip_len); >+ HTONS(nip->ip_id); >+ HTONS(nip->ip_off); > > /* > * Now, copy old ip header (without options) >Index: ip_input.c >=================================================================== >RCS file: /home/ncvs/src/sys/netinet/ip_input.c,v >retrieving revision 1.138 >diff -u -p -r1.138 ip_input.c >--- ip_input.c 2000/07/31 23:41:47 1.138 >+++ ip_input.c 2000/08/28 16:28:41 >@@ -1496,7 +1496,6 @@ ip_forward(m, srcrt) > m_freem(m); > return; > } >- HTONS(ip->ip_id); > #ifdef IPSTEALTH > if (!ipstealth) { > #endif
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 Raw
Actions:
View
Attachments on
bug 20877
: 10402