Module: xenomai-rpm Branch: queue/rtipc Commit: 36419dcc7da3943e3f24f3185dae55e13298ccc0 URL: http://git.xenomai.org/?p=xenomai-rpm.git;a=commit;h=36419dcc7da3943e3f24f3185dae55e13298ccc0
Author: Philippe Gerum <[email protected]> Date: Mon May 31 18:17:15 2010 +0200 rtipc/bufp: disallow MSG_OOB --- include/rtdm/rtipc.h | 9 +++++---- ksrc/drivers/ipc/bufp.c | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/include/rtdm/rtipc.h b/include/rtdm/rtipc.h index 20007d4..f1911d9 100644 --- a/include/rtdm/rtipc.h +++ b/include/rtdm/rtipc.h @@ -261,10 +261,11 @@ int getsockopt(int sockfd, int level, int optname, * * @param [in] flags Operation flags: * - * - MSG_OOB Send out-of-band message. For all RTIPC protocols, - * sending out-of-band data actually means pushing them to the head - * of the receiving queue, so that the reader will always receive - * them before normal messages. + * - MSG_OOB Send out-of-band message. For all RTIPC protocols except + * @ref IPCPROTO_BUFP, sending out-of-band data actually means + * pushing them to the head of the receiving queue, so that the + * reader will always receive them before normal messages. @ref + * IPCPROTO_BUFP does not support out-of-band sending. * * - MSG_DONTWAIT Non-blocking I/O operation. The caller will not be * blocked whenever the message cannot be sent immediately at the diff --git a/ksrc/drivers/ipc/bufp.c b/ksrc/drivers/ipc/bufp.c index cd86c44..8c3b000 100644 --- a/ksrc/drivers/ipc/bufp.c +++ b/ksrc/drivers/ipc/bufp.c @@ -610,7 +610,7 @@ static ssize_t bufp_sendmsg(struct rtipc_private *priv, struct sockaddr_ipc daddr; ssize_t ret; - if (flags & ~(MSG_OOB | MSG_DONTWAIT)) + if (flags & ~MSG_DONTWAIT) return -EINVAL; if (msg->msg_name) { _______________________________________________ Xenomai-git mailing list [email protected] https://mail.gna.org/listinfo/xenomai-git
