diff options
author | oscar.medina@motorola.com <oscar.medina@motorola.com> | 2009-06-30 03:25:39 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-07-05 19:16:11 -0700 |
commit | 6650613d3387dcc30685e2781818ea7d0f840027 (patch) | |
tree | 395be1b4fe613f8016d306f5ba39b98630360740 /include/linux/tipc.h | |
parent | af794c74240d8d788058bdfee339512e7ac029b2 (diff) |
tipc: Add socket options to get number of queued messages
This patch allows a TIPC application to determine the number of messages
currently waiting in a socket's receive queue (TIPC_SOCK_RECVQ_DEPTH) or
in all TIPC socket receive queues (TIPC_NODE_RECVQ_DEPTH).
Signed-off-by: Oscar Medina <oscar.medina@motorola.com>
Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/tipc.h')
-rw-r--r-- | include/linux/tipc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/tipc.h b/include/linux/tipc.h index bea469455a0c..3d92396639de 100644 --- a/include/linux/tipc.h +++ b/include/linux/tipc.h @@ -209,5 +209,7 @@ struct sockaddr_tipc { #define TIPC_SRC_DROPPABLE 128 /* Default: 0 (resend congested msg) */ #define TIPC_DEST_DROPPABLE 129 /* Default: based on socket type */ #define TIPC_CONN_TIMEOUT 130 /* Default: 8000 (ms) */ +#define TIPC_NODE_RECVQ_DEPTH 131 /* Default: none (read only) */ +#define TIPC_SOCK_RECVQ_DEPTH 132 /* Default: none (read only) */ #endif |