[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH hurd 13/30] console-client: make the demuxer payload-aware
From: |
Justus Winter |
Subject: |
[PATCH hurd 13/30] console-client: make the demuxer payload-aware |
Date: |
Thu, 27 Nov 2014 14:18:53 +0100 |
* console-client/trans.c (console_demuxer): make the demuxer payload-aware.
---
console-client/trans.c | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/console-client/trans.c b/console-client/trans.c
index 67cd149..224229e 100644
--- a/console-client/trans.c
+++ b/console-client/trans.c
@@ -63,8 +63,16 @@ console_demuxer (mach_msg_header_t *inp,
ret = netfs_demuxer (inp, outp);
if (ret)
return ret;
-
- user = ports_lookup_port (netfs_port_bucket, inop->msgh_local_port,
netfs_protid_class);
+
+ if (MACH_MSGH_BITS_LOCAL (inp->msgh_bits) ==
+ MACH_MSG_TYPE_PROTECTED_PAYLOAD)
+ user = ports_lookup_payload (netfs_port_bucket,
+ inop->msgh_protected_payload,
+ netfs_protid_class);
+ else
+ user = ports_lookup_port (netfs_port_bucket,
+ inop->msgh_local_port,
+ netfs_protid_class);
if (!user)
return ret;
--
2.1.3
- Re: [PATCH hurd 02/30] include: force all refcount functions to be inlined, (continued)
[PATCH hurd 04/30] libports: add `ports_lookup_payload' and `ports_payload_get_name', Justus Winter, 2014/11/27
[PATCH hurd 05/30] libports: add a payload-aware intrans function, Justus Winter, 2014/11/27
[PATCH hurd 06/30] libdiskfs: add payload-aware intrans functions, Justus Winter, 2014/11/27
[PATCH hurd 09/30] libpager: add a payload-aware intrans function, Justus Winter, 2014/11/27
[PATCH hurd 08/30] libtrivfs: add payload-aware intrans functions, Justus Winter, 2014/11/27
[PATCH hurd 11/30] auth: add a payload-aware intrans function, Justus Winter, 2014/11/27
[PATCH hurd 10/30] libcons: add a payload-aware intrans function, Justus Winter, 2014/11/27
[PATCH hurd 12/30] console: add a payload-aware intrans function, Justus Winter, 2014/11/27
[PATCH hurd 13/30] console-client: make the demuxer payload-aware,
Justus Winter <=
[PATCH hurd 15/30] pfinet: add payload-aware intrans functions, Justus Winter, 2014/11/27
[PATCH hurd 14/30] exec: add payload-aware intrans functions, Justus Winter, 2014/11/27
[PATCH hurd 16/30] pfinet: make the demuxers payload-aware, Justus Winter, 2014/11/27
[PATCH hurd 17/30] pflocal: add payload-aware intrans functions, Justus Winter, 2014/11/27
[PATCH hurd 19/30] startup: disable default payload to port mapping, Justus Winter, 2014/11/27
[PATCH hurd 18/30] proc: add payload-aware intrans functions, Justus Winter, 2014/11/27
[PATCH hurd 23/30] trans/password: add a payload-aware intrans function, Justus Winter, 2014/11/27
[PATCH hurd 21/30] trans/fakeroot: make the demuxer payload-aware, Justus Winter, 2014/11/27
[PATCH hurd 22/30] trans/ifsock: add a payload-aware intrans function, Justus Winter, 2014/11/27
[PATCH hurd 20/30] term: add a payload-aware intrans function, Justus Winter, 2014/11/27