Module: xenomai-rpm Branch: queue/rtipc Commit: f71c781db4dab6cb3477953c0b8f436dbd25b61c URL: http://git.xenomai.org/?p=xenomai-rpm.git;a=commit;h=f71c781db4dab6cb3477953c0b8f436dbd25b61c
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 5e8c042..8dfcf4d 100644 --- a/include/rtdm/rtipc.h +++ b/include/rtdm/rtipc.h @@ -260,10 +260,11 @@ int getsockopt__AF_RTIPC(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 f406450..1300584 100644 --- a/ksrc/drivers/ipc/bufp.c +++ b/ksrc/drivers/ipc/bufp.c @@ -622,7 +622,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
