summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpyr <pyr@openbsd.org>2009-06-05 19:42:33 +0000
committerpyr <pyr@openbsd.org>2009-06-05 19:42:33 +0000
commit05624ae5ea6a2a7b8623500007a887dc2eb6bdf2 (patch)
tree9033f8cde85a6f91f0ddd67338c97cb5cde49c36
parentbump MAX_IMSGSIZE here as well (diff)
downloadwireguard-openbsd-05624ae5ea6a2a7b8623500007a887dc2eb6bdf2.tar.xz
wireguard-openbsd-05624ae5ea6a2a7b8623500007a887dc2eb6bdf2.zip
Add an unused data field, to allow smtpd and ypldap to work, all lib
ready daemons have NULL diffs now for the imsg files. This field should eventually die a honorable death as it was a design screwup.
-rw-r--r--usr.sbin/ospfd/imsg.h3
-rw-r--r--usr.sbin/relayd/imsg.h3
2 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/ospfd/imsg.h b/usr.sbin/ospfd/imsg.h
index d74a45c7260..d700b98c01c 100644
--- a/usr.sbin/ospfd/imsg.h
+++ b/usr.sbin/ospfd/imsg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: imsg.h,v 1.2 2009/06/05 19:36:10 pyr Exp $ */
+/* $OpenBSD: imsg.h,v 1.3 2009/06/05 19:42:33 pyr Exp $ */
/*
* Copyright (c) 2006, 2007 Pierre-Yves Ritschard <pyr@openbsd.org>
@@ -60,6 +60,7 @@ struct imsgbuf {
void (*handler)(int, short, void *);
int fd;
pid_t pid;
+ void *data;
short events;
};
diff --git a/usr.sbin/relayd/imsg.h b/usr.sbin/relayd/imsg.h
index 3c1a3037bd5..e39fcaf928e 100644
--- a/usr.sbin/relayd/imsg.h
+++ b/usr.sbin/relayd/imsg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: imsg.h,v 1.6 2009/06/05 19:38:53 pyr Exp $ */
+/* $OpenBSD: imsg.h,v 1.7 2009/06/05 19:42:33 pyr Exp $ */
/*
* Copyright (c) 2006, 2007 Pierre-Yves Ritschard <pyr@openbsd.org>
@@ -60,6 +60,7 @@ struct imsgbuf {
void (*handler)(int, short, void *);
int fd;
pid_t pid;
+ void *data;
short events;
};