1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
diff --git a/libmachdev/net.c b/libmachdev/net.c
index 606765f..766d9b4 100644
--- a/libmachdev/net.c
+++ b/libmachdev/net.c
@@ -212,7 +212,7 @@ deliver_msg(struct net_rcv_msg *msg, if_filter_list_t *ifp)
MACH_SEND_MSG|MACH_SEND_TIMEOUT,
msg->msg_hdr.msgh_size, 0, MACH_PORT_NULL,
0, MACH_PORT_NULL);
- if (err != MACH_MSG_SUCCESS)
+ if (0 && err != MACH_MSG_SUCCESS)
{
/* TODO: remove from filter */
}
@@ -377,7 +377,7 @@ device_open (mach_port_t reply_port, mach_msg_type_name_t reply_port_type,
}
*devp = ports_get_right (nd);
- *devicePoly = MACH_MSG_TYPE_COPY_SEND;
+ *devicePoly = MACH_MSG_TYPE_MAKE_SEND;
return D_SUCCESS;
}
diff --git a/libmachdev/ds_routines.c b/libmachdev/ds_routines.c
index 6b8d1d4..f0c034f 100644
--- a/libmachdev/ds_routines.c
+++ b/libmachdev/ds_routines.c
@@ -206,7 +206,7 @@ ds_device_close (device_t dev)
ret = (device->emul_ops->close
? (*device->emul_ops->close) (device->emul_data)
: D_SUCCESS);
- mach_device_deallocate (device_to_pi (device));
+ //mach_device_deallocate (device_to_pi (device));
ports_port_deref (device_to_pi (device));
return ret;
|