Hello Mohammad,
the libc_lwip plugin handles the multiple definition problem by renaming the lwip functions at the top of 'plugin.cc'. For your new types you might need to add lines like
#define msghdr lwip_msghdr
and
#undef msghdr
at the locations where this is already done for other types like 'sockaddr'.
Regards, Christian