FreeBSD Bugzilla – Attachment 178624 Details for
Bug 215874
[patch] [icmp] [mbuf_tags] teach icmp_error() optionally keep original packet's mbuf_tags
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
introduce new sysctl net.inet.icmp.error_keeptags
icmptag.diff (text/plain), 817 bytes, created by
Eugene Grosbein
on 2017-01-08 16:53:55 UTC
(
hide
)
Description:
introduce new sysctl net.inet.icmp.error_keeptags
Filename:
MIME Type:
Creator:
Eugene Grosbein
Created:
2017-01-08 16:53:55 UTC
Size:
817 bytes
patch
obsolete
>--- sys/netinet/ip_icmp.c.orig 2016-10-25 16:38:44.530040000 +0700 >+++ sys/netinet/ip_icmp.c 2017-01-08 23:08:52.642684000 +0700 >@@ -155,6 +155,12 @@ SYSCTL_INT(_net_inet_icmp, OID_AUTO, tst > &VNET_NAME(icmptstamprepl), 0, > "Respond to ICMP Timestamp packets"); > >+static VNET_DEFINE(int, error_keeptags) = 0; >+#define V_error_keeptags VNET(error_keeptags) >+SYSCTL_INT(_net_inet_icmp, OID_AUTO, error_keeptags, CTLFLAG_VNET | CTLFLAG_RW, >+ &VNET_NAME(error_keeptags), 0, >+ "ICMP error response keeps copy of original packet's mbuf_tags"); >+ > #ifdef ICMPPRINTFS > int icmpprintfs = 0; > #endif >@@ -349,6 +355,10 @@ stdreply: icmpelen = max(8, min(V_icmp_q > nip->ip_p = IPPROTO_ICMP; > nip->ip_tos = 0; > nip->ip_off = 0; >+ >+ if (V_error_keeptags) >+ m_tag_copy_chain(m, n, M_NOWAIT); >+ > icmp_reflect(m); > > freeit:
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 215874
: 178624