46 #include <qb/qbloop.h>
48 #define LOGSYS_UTILS_ONLY 1
56 void **transport_instance,
65 unsigned int msg_len),
67 void (*iface_change_fn) (
71 void (*target_set_completed) (
74 void *(*buffer_alloc) (void);
79 void *transport_context,
83 void *transport_context,
85 unsigned int msg_len);
88 void *transport_context,
90 unsigned int msg_len);
94 void *transport_context,
96 unsigned int msg_len);
108 const char *(*iface_print) (
void *transport_context);
111 void *transport_context,
115 void *transport_context,
119 void *transport_context,
120 const char *cipher_type,
121 const char *hash_type);
124 void *transport_context);
127 void *transport_context,
131 void *transport_context,
135 void *transport_context,
142 .
name =
"UDP/IP Multicast",
162 .name =
"UDP/IP Unicast",
186 .name =
"Infiniband/IP",
217 const char *
function,
226 #define log_printf(level, format, args...) \
228 instance->totemnet_log_printf ( \
230 instance->totemnet_subsys_id, \
231 __FUNCTION__, __FILE__, __LINE__, \
232 (const char *)format, ##args); \
235 static void totemnet_instance_initialize (
248 "Initializing transport (%s).", transport_entries[transport].
name);
250 instance->
transport = &transport_entries[transport];
255 const char *cipher_type,
256 const char *hash_type)
262 cipher_type, hash_type);
289 unsigned int msg_len),
291 void (*iface_change_fn) (
295 void (*target_set_completed) (
302 if (instance == NULL) {
305 totemnet_instance_initialize (instance, totem_config);
309 interface_no, context, deliver_fn, iface_change_fn, target_set_completed);
315 *net_context = instance;
326 assert (instance != NULL);
334 assert (instance != NULL);
373 unsigned int msg_len)
385 unsigned int msg_len)
398 unsigned int msg_len)
429 const char *ret_char;
475 unsigned int res = 0;
491 unsigned int res = 0;
508 unsigned int res = 0;