Swift will send gateway instead of interface name for addsocket. Address and api get gateway for upcoming interface.