FreeBSD Bugzilla – Attachment 105308 Details for
Bug 145737
[netinet] [patch] Wrong UDP checksum not ignored as expected in UDP encapsuladed ESP packet
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 758 bytes, created by
Peter Molnar
on 2010-04-16 00:50:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Peter Molnar
Created:
2010-04-16 00:50:01 UTC
Size:
758 bytes
patch
obsolete
>diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c >index cbb13b6..bbe80f6 100644 >--- a/sys/netinet/udp_usrreq.c >+++ b/sys/netinet/udp_usrreq.c >@@ -372,6 +372,25 @@ udp_input(struct mbuf *m, int off) > else > memset(&save_ip, 0, sizeof(save_ip)); > >+#ifdef IPSEC_NAT_T >+ /* >+ * RFC 3948 >+ * >+ * 3.1.2. Transport Mode Decapsulation NAT Procedure >+ * >+ * Depending on local policy, one of the following MUST be done: >+ * >+ * [...] >+ * >+ * 3. If the protocol header after the ESP header is a UDP header, set >+ * the checksum field to zero in the UDP header. [...] >+ */ >+ >+ if (m_tag_find(m, PACKET_TAG_IPSEC_NAT_T_PORTS, NULL) != NULL) { >+ uh->uh_sum = 0; >+ } >+#endif >+ > /* > * Checksum extended UDP header and data. > */
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 145737
: 105308