_(NO_REPLICAS, "no replicas were needed") \
_(NO_BUFFER_DROPS, "sr no buffer drops")
+/**
+ * @brief Struct for SR replicate errors
+ */
typedef enum
{
#define _(sym,str) SR_REPLICATE_ERROR_##sym,
SR_REPLICATE_N_ERROR,
} sr_replicate_error_t;
+/**
+ * @brief Error strings for SR replicate
+ */
static char *sr_replicate_error_strings[] = {
#define _(sym,string) string,
foreach_sr_replicate_error
(hdr_ip0->payload_length);
}
tr->next_index = next_index;
- memcpy (tr->sr, hdr_sr0, sizeof (tr->sr));
+ if (hdr_sr0)
+ memcpy (tr->sr, hdr_sr0, sizeof (tr->sr));
}
}