Merge r227738, r228574:
  Fill in sin_family in ioctl() arguments.