You have several errors
send(servemsg, "out");
It sends a packet that you haven’t created.
send(servemsg, "out");
struct entry *new1 = (entry *)malloc(sizeof(entry *));
with this you reserve the memory to a pointer not to a struct
struct entry *new1 = (entry *)malloc(sizeof(entry ));
or
entry *new1 = new entry;
--
You received this message because you are subscribed to the Google Groups "OMNeT++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+u...@googlegroups.com.
Visit this group at https://groups.google.com/group/omnetpp.
For more options, visit https://groups.google.com/d/optout.