Added check to ensure interface type is set.

Added check to ensure interface type is set.
Merge pull request #96 from caskdata/feature/rts_strncmp_rangecheck

Added check to ensure interface type is set.