summaryrefslogtreecommitdiff
path: root/usr.sbin/ospfd/imsg.h
diff options
context:
space:
mode:
authorEric Faurot <eric@cvs.openbsd.org>2009-06-06 22:11:26 +0000
committerEric Faurot <eric@cvs.openbsd.org>2009-06-06 22:11:26 +0000
commit50f68aa760ea3f85fa66135f8d541d1a594cc2af (patch)
tree92deba0335c56f93d8ed63b4d1e6dbb1d622af31 /usr.sbin/ospfd/imsg.h
parent4ddd038fdb0bea91650549632c8552ab08f40ad2 (diff)
change the imsg header fields a bit to prepare for upcoming changes.
add a flag field, use u_int32_t for pid_t and extend type to 32 bits for padding. ok pyr@
Diffstat (limited to 'usr.sbin/ospfd/imsg.h')
-rw-r--r--usr.sbin/ospfd/imsg.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/usr.sbin/ospfd/imsg.h b/usr.sbin/ospfd/imsg.h
index af43f628ee1..494e0cf4971 100644
--- a/usr.sbin/ospfd/imsg.h
+++ b/usr.sbin/ospfd/imsg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: imsg.h,v 1.5 2009/06/06 07:31:26 eric Exp $ */
+/* $OpenBSD: imsg.h,v 1.6 2009/06/06 22:11:25 eric Exp $ */
/*
* Copyright (c) 2006, 2007 Pierre-Yves Ritschard <pyr@openbsd.org>
@@ -60,10 +60,11 @@ struct imsgbuf {
};
struct imsg_hdr {
- u_int16_t type;
+ u_int32_t type;
u_int16_t len;
+ u_int16_t flags;
u_int32_t peerid;
- pid_t pid;
+ u_int32_t pid;
};
struct imsg {
@@ -91,11 +92,11 @@ int msgbuf_write(struct msgbuf *);
void imsg_init(struct imsgbuf *, int);
ssize_t imsg_read(struct imsgbuf *);
ssize_t imsg_get(struct imsgbuf *, struct imsg *);
-int imsg_compose(struct imsgbuf *, u_int16_t, u_int32_t, pid_t,
+int imsg_compose(struct imsgbuf *, u_int32_t, u_int32_t, pid_t,
int, void *, u_int16_t);
-int imsg_composev(struct imsgbuf *, u_int16_t, u_int32_t, pid_t,
+int imsg_composev(struct imsgbuf *, u_int32_t, u_int32_t, pid_t,
int, const struct iovec *, int);
-struct buf *imsg_create(struct imsgbuf *, u_int16_t, u_int32_t, pid_t,
+struct buf *imsg_create(struct imsgbuf *, u_int32_t, u_int32_t, pid_t,
u_int16_t);
int imsg_add(struct buf *, void *, u_int16_t);
void imsg_close(struct imsgbuf *, struct buf *);