Page MenuHomeFreeBSD

D22153.diff
No OneTemporary

D22153.diff

Index: head/sys/netinet/ip_reass.c
===================================================================
--- head/sys/netinet/ip_reass.c
+++ head/sys/netinet/ip_reass.c
@@ -632,14 +632,17 @@
KASSERT(ifp != NULL, ("%s: ifp is NULL", __func__));
+ CURVNET_SET_QUIET(ifp->if_vnet);
+
/*
* Skip processing if IPv4 reassembly is not initialised or
* torn down by ipreass_destroy().
*/
- if (V_ipq_zone == NULL)
+ if (V_ipq_zone == NULL) {
+ CURVNET_RESTORE();
return;
+ }
- CURVNET_SET_QUIET(ifp->if_vnet);
for (i = 0; i < IPREASS_NHASH; i++) {
IPQ_LOCK(i);
/* Scan fragment list. */
Index: head/sys/netinet6/frag6.c
===================================================================
--- head/sys/netinet6/frag6.c
+++ head/sys/netinet6/frag6.c
@@ -307,16 +307,18 @@
KASSERT(ifp != NULL, ("%s: ifp is NULL", __func__));
+ CURVNET_SET_QUIET(ifp->if_vnet);
#ifdef VIMAGE
/*
* Skip processing if IPv6 reassembly is not initialised or
* torn down by frag6_destroy().
*/
- if (!V_frag6_on)
+ if (!V_frag6_on) {
+ CURVNET_RESTORE();
return;
+ }
#endif
- CURVNET_SET_QUIET(ifp->if_vnet);
for (bucket = 0; bucket < IP6REASS_NHASH; bucket++) {
IP6QB_LOCK(bucket);
head = IP6QB_HEAD(bucket);

File Metadata

Mime Type
text/plain
Expires
Mon, Mar 10, 3:43 PM (16 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17086123
Default Alt Text
D22153.diff (1 KB)

Event Timeline