Changed size of host_ifname to MAXNAMLEN to accomodate all valid
filenames when in file mode.
Fixed pointer indirection bug in thread_end_routine().