summaryrefslogtreecommitdiff
path: root/pfinet/mig-decls.h
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2013-11-28 11:10:20 +0100
committerJustus Winter <4winter@informatik.uni-hamburg.de>2014-12-07 15:38:18 +0100
commitdf8605b39f109362e86b0ebf6b8cf79fd1b2f3fd (patch)
treea2d1382dafbd3d39e353afddfcd3d2746fd57b57 /pfinet/mig-decls.h
parentb6079b096eef4b7b347c85184592584c7ec4a022 (diff)
pfinet: add payload-aware intrans functions
* pfinet/mig-mutate.h: Add mutators. * pfinet/mig-decls.h (begin_using_socket_payload): New function. (begin_using_sockaddr_payload): Likewise.
Diffstat (limited to 'pfinet/mig-decls.h')
-rw-r--r--pfinet/mig-decls.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/pfinet/mig-decls.h b/pfinet/mig-decls.h
index ec8fb232..67bcbfc3 100644
--- a/pfinet/mig-decls.h
+++ b/pfinet/mig-decls.h
@@ -32,6 +32,12 @@ begin_using_socket_port (mach_port_t port)
return ports_lookup_port (pfinet_bucket, port, socketport_class);
}
+static inline struct sock_user * __attribute__ ((unused))
+begin_using_socket_payload (unsigned long payload)
+{
+ return ports_lookup_payload (pfinet_bucket, payload, socketport_class);
+}
+
static inline void __attribute__ ((unused))
end_using_socket_port (struct sock_user *user)
{
@@ -45,6 +51,12 @@ begin_using_sockaddr_port (mach_port_t port)
return ports_lookup_port (pfinet_bucket, port, addrport_class);
}
+static inline struct sock_addr * __attribute__ ((unused))
+begin_using_sockaddr_payload (unsigned long payload)
+{
+ return ports_lookup_payload (pfinet_bucket, payload, addrport_class);
+}
+
static inline void __attribute__ ((unused))
end_using_sockaddr_port (struct sock_addr *addr)
{