fix compilation on FreeBSD. (use strlen(hostname) instead of hostnamelen)
fix compilation on FreeBSD. (use strlen(hostname) instead of hostnamelen)

MarginC/kame,MarginC/kame,MarginC/kame,MarginC/kame,MarginC/kame,MarginC/kame,MarginC/kame