Page MenuHomeFreeBSD

D22089.id63485.diff
No OneTemporary

D22089.id63485.diff

Index: sys/net/debugnet.c
===================================================================
--- sys/net/debugnet.c
+++ sys/net/debugnet.c
@@ -38,6 +38,7 @@
#include <sys/systm.h>
#include <sys/endian.h>
#include <sys/errno.h>
+#include <sys/eventhandler.h>
#include <sys/socket.h>
#include <sys/sysctl.h>
Index: sys/netinet/netdump/netdump_client.c
===================================================================
--- sys/netinet/netdump/netdump_client.c
+++ sys/netinet/netdump/netdump_client.c
@@ -409,20 +409,13 @@
netdump_configure(struct diocskerneldump_arg *conf, struct thread *td)
{
struct ifnet *ifp;
- struct vnet *vnet;
NETDUMP_ASSERT_WLOCKED();
if (conf->kda_iface[0] != 0) {
- if (td != NULL)
- vnet = TD_TO_VNET(td);
- else
- vnet = vnet0;
- CURVNET_SET(vnet);
- if (td != NULL && !IS_DEFAULT_VNET(curvnet)) {
- CURVNET_RESTORE();
+ if (td != NULL && !IS_DEFAULT_VNET(TD_TO_VNET(td)))
return (EINVAL);
- }
+ CURVNET_SET(vnet0);
ifp = ifunit_ref(conf->kda_iface);
CURVNET_RESTORE();
} else

File Metadata

Mime Type
text/plain
Expires
Fri, Jan 16, 7:41 PM (21 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27667246
Default Alt Text
D22089.id63485.diff (1 KB)

Event Timeline