From 650d48956903637edc5565882454ce1d0c179375 Mon Sep 17 00:00:00 2001 From: Sean Hefty Date: Wed, 9 Jan 2013 14:54:47 -0800 Subject: [PATCH] rsockets: Add support for existing UDP apps Support for existing UDP applications is done via the rspreload library. However, when the preload library is loaded, socket calls used by rsockets get intercepted and converted into rsocket calls. The preload library was able to handle this Signed-off-by: Sean Hefty --- src/rsocket.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/rsocket.c b/src/rsocket.c index 7be42cab..9b6c6673 100644 --- a/src/rsocket.c +++ b/src/rsocket.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008-2012 Intel Corporation. All rights reserved. + * Copyright (c) 2008-2013 Intel Corporation. All rights reserved. * * This software is available to you under a choice of one of two * licenses. You may choose to be licensed under the terms of the GNU @@ -452,6 +452,10 @@ void rs_configure(void) if (init) goto out; + if (ucma_init()) + goto out; + ucma_ib_init(); + if ((f = fopen(RS_CONF_DIR "/polling_time", "r"))) { (void) fscanf(f, "%u", &polling_time); fclose(f); -- 2.41.0