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,
137 .
name =
"UDP/IP Multicast",
157 .name =
"UDP/IP Unicast",
180 .name =
"Infiniband/IP",
211 const char *
function,
220 #define log_printf(level, format, args...) \
222 instance->totemnet_log_printf ( \
224 instance->totemnet_subsys_id, \
225 __FUNCTION__, __FILE__, __LINE__, \
226 (const char *)format, ##args); \
229 static void totemnet_instance_initialize (
242 "Initializing transport (%s).", transport_entries[transport].
name);
244 instance->
transport = &transport_entries[transport];
249 const char *cipher_type,
250 const char *hash_type)
256 cipher_type, hash_type);
283 unsigned int msg_len),
285 void (*iface_change_fn) (
289 void (*target_set_completed) (
296 if (instance == NULL) {
299 totemnet_instance_initialize (instance, totem_config);
303 interface_no, context, deliver_fn, iface_change_fn, target_set_completed);
309 *net_context = instance;
320 assert (instance != NULL);
328 assert (instance != NULL);
367 unsigned int msg_len)
379 unsigned int msg_len)
392 unsigned int msg_len)
423 const char *ret_char;
469 unsigned int res = 0;
485 unsigned int res = 0;