[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[hurd] 03/09: eth-multiplexer: add payload-aware intrans functions
From: |
Samuel Thibault |
Subject: |
[hurd] 03/09: eth-multiplexer: add payload-aware intrans functions |
Date: |
Mon, 09 Feb 2015 09:59:05 +0000 |
This is an automated email from the git hooks/post-receive script.
sthibault pushed a commit to annotated tag upstream/dde/0.5.git20150208
in repository hurd.
commit a7565c0a2af347e2fe61ac0dc2ccd1b1a154990a
Author: Justus Winter <address@hidden>
Date: Sun Jun 8 19:08:03 2014 +0200
eth-multiplexer: add payload-aware intrans functions
* eth-multiplexer/mig-mutate.h: Add mutators.
* eth-multiplexer/mig-decls.h (begin_using_device_payload): New function.
* eth-multiplexer/Makefile (device-MIGSFLAGS): Define MACH_PAYLOAD_TO_PORT.
---
eth-multiplexer/Makefile | 1 +
eth-multiplexer/mig-decls.h | 6 ++++++
eth-multiplexer/mig-mutate.h | 4 ++++
3 files changed, 11 insertions(+)
diff --git a/eth-multiplexer/Makefile b/eth-multiplexer/Makefile
index fbee1ca..bfd065a 100644
--- a/eth-multiplexer/Makefile
+++ b/eth-multiplexer/Makefile
@@ -23,6 +23,7 @@ target = eth-multiplexer
SRCS = ethernet.c vdev.c multiplexer.c dev_stat.c netfs_impl.c notify_impl.c
device_impl.c demuxer.c
MIGSTUBS = deviceServer.o notifyServer.o
MIGSFLAGS = -imacros $(srcdir)/mig-mutate.h
+device-MIGSFLAGS="-DMACH_PAYLOAD_TO_PORT=ports_payload_get_name"
OBJS = $(SRCS:.c=.o) $(MIGSTUBS)
LCLHDRS = ethernet.h util.h vdev.h netfs_impl.h
HURDLIBS=ports fshelp shouldbeinlibc netfs bpf
diff --git a/eth-multiplexer/mig-decls.h b/eth-multiplexer/mig-decls.h
index a68e2ec..6ad9ebf 100644
--- a/eth-multiplexer/mig-decls.h
+++ b/eth-multiplexer/mig-decls.h
@@ -35,6 +35,12 @@ begin_using_device_port (mach_port_t port)
return ports_lookup_port (port_bucket, port, vdev_portclass);
}
+static inline struct vether_device * __attribute__ ((unused))
+begin_using_device_payload (unsigned long payload)
+{
+ return ports_lookup_payload (port_bucket, payload, vdev_portclass);
+}
+
static inline void __attribute__ ((unused))
end_using_device (struct vether_device *p)
{
diff --git a/eth-multiplexer/mig-mutate.h b/eth-multiplexer/mig-mutate.h
index 2403c29..55eca31 100644
--- a/eth-multiplexer/mig-mutate.h
+++ b/eth-multiplexer/mig-mutate.h
@@ -19,6 +19,8 @@
#define NOTIFY_INTRAN \
port_info_t begin_using_port_info_port (mach_port_t)
+#define NOTIFY_INTRAN_PAYLOAD \
+ port_info_t begin_using_port_info_payload
#define NOTIFY_DESTRUCTOR \
end_using_port_info (port_info_t)
#define NOTIFY_IMPORTS \
@@ -26,6 +28,8 @@
#define DEVICE_INTRAN \
vether_device_t begin_using_device_port (mach_port_t)
+#define DEVICE_INTRAN_PAYLOAD \
+ vether_device_t begin_using_device_payload
#define DEVICE_DESTRUCTOR \
end_using_device (vether_device_t)
#define DEVICE_IMPORTS \
--
Alioth's /usr/local/bin/git-commit-notice on
/srv/git.debian.org/git/pkg-hurd/hurd.git
- [hurd] annotated tag upstream/dde/0.5.git20150208 created (now f419bd9), Samuel Thibault, 2015/02/09
- [hurd] 01/09: devnode: add a payload-aware intrans function, Samuel Thibault, 2015/02/09
- [hurd] 05/09: Make linux_block_emulation_ops static, Samuel Thibault, 2015/02/09
- [hurd] 08/09: Merge remote-tracking branch 'incubator/dde' into dde-upstream, Samuel Thibault, 2015/02/09
- [hurd] 09/09: Merge branch 'dde-upstream' into dde, Samuel Thibault, 2015/02/09
- [hurd] 06/09: Merge branch 'dde' of git://git.sv.gnu.org/hurd/incubator into dde, Samuel Thibault, 2015/02/09
- [hurd] 03/09: eth-multiplexer: add payload-aware intrans functions,
Samuel Thibault <=
- [hurd] 04/09: libmachdev: add payload-aware intrans functions, Samuel Thibault, 2015/02/09
- [hurd] 02/09: eth-filter: add payload-aware intrans functions, Samuel Thibault, 2015/02/09
- [hurd] 07/09: Fix libmachdev link, Samuel Thibault, 2015/02/09