
an unknown msg_type is received. * Check the received packet size. * Use strncpy() instead of strlcpy() so that we don't send gibberish from the stack. * No need to bind(). * htons()/htonl() use uint16_t/uint32_t not u_short/u_long.
an unknown msg_type is received. * Check the received packet size. * Use strncpy() instead of strlcpy() so that we don't send gibberish from the stack. * No need to bind(). * htons()/htonl() use uint16_t/uint32_t not u_short/u_long.