msg.type = MEMIF_MSG_TYPE_HELLO;
h->min_version = MEMIF_VERSION;
h->max_version = MEMIF_VERSION;
msg.type = MEMIF_MSG_TYPE_HELLO;
h->min_version = MEMIF_VERSION;
h->max_version = MEMIF_VERSION;
h->max_m2s_ring = MEMIF_MAX_M2S_RING;
h->max_region = MEMIF_MAX_REGION;
h->max_log2_ring_size = MEMIF_MAX_LOG2_RING_SIZE;
h->max_m2s_ring = MEMIF_MAX_M2S_RING;
h->max_region = MEMIF_MAX_REGION;
h->max_log2_ring_size = MEMIF_MAX_LOG2_RING_SIZE;
/* msg hello is not enqueued but sent directly,
because it is the first msg to be sent */
/* msg hello is not enqueued but sent directly,
because it is the first msg to be sent */
strncpy ((char *) i->name, (char *) lm->app_name,
strlen ((char *) lm->app_name));
strncpy ((char *) i->name, (char *) lm->app_name,
strlen ((char *) lm->app_name));
strncpy ((char *) c->remote_name, (char *) i->name,
strlen ((char *) i->name));
strncpy ((char *) c->remote_name, (char *) i->name,
strlen ((char *) i->name));
mq =
(memif_queue_t *) realloc (c->rx_queues,
sizeof (memif_queue_t) * (ar->index + 1));
mq =
(memif_queue_t *) realloc (c->rx_queues,
sizeof (memif_queue_t) * (ar->index + 1));
mq =
(memif_queue_t *) realloc (c->tx_queues,
sizeof (memif_queue_t) * (ar->index + 1));
mq =
(memif_queue_t *) realloc (c->tx_queues,
sizeof (memif_queue_t) * (ar->index + 1));