View | Details | Raw Unified | Return to bug 215874
Collapse All | Expand All

(-)sys/netinet/ip_icmp.c (+10 lines)
Lines 155-160 SYSCTL_INT(_net_inet_icmp, OID_AUTO, tst Link Here
155
	&VNET_NAME(icmptstamprepl), 0,
155
	&VNET_NAME(icmptstamprepl), 0,
156
	"Respond to ICMP Timestamp packets");
156
	"Respond to ICMP Timestamp packets");
157
157
158
static VNET_DEFINE(int, error_keeptags) = 0;
159
#define	V_error_keeptags		VNET(error_keeptags)
160
SYSCTL_INT(_net_inet_icmp, OID_AUTO, error_keeptags, CTLFLAG_VNET | CTLFLAG_RW,
161
	&VNET_NAME(error_keeptags), 0,
162
	"ICMP error response keeps copy of original packet's mbuf_tags");
163
158
#ifdef ICMPPRINTFS
164
#ifdef ICMPPRINTFS
159
int	icmpprintfs = 0;
165
int	icmpprintfs = 0;
160
#endif
166
#endif
Lines 349-354 stdreply: icmpelen = max(8, min(V_icmp_q Link Here
349
	nip->ip_p = IPPROTO_ICMP;
355
	nip->ip_p = IPPROTO_ICMP;
350
	nip->ip_tos = 0;
356
	nip->ip_tos = 0;
351
	nip->ip_off = 0;
357
	nip->ip_off = 0;
358
359
	if (V_error_keeptags)
360
		m_tag_copy_chain(m, n, M_NOWAIT);
361
352
	icmp_reflect(m);
362
	icmp_reflect(m);
353
363
354
freeit:
364
freeit:

Return to bug 215874