title: To my MAC both Ethernet and wifi are connected.How can i know from where i am acessing internet
body: <p>When i am connected to both Ehernet and wifi. I will get two ip addresses assigned to interfaces say en0 and en1. By using shell command i am achieving this by getting current route interface
  <code>route get default | grep interface | awk '{print $2}'</code>
  and then comparing with network service order
  <code>networksetup -listnetworkserviceorder</code></p>
  
  <p>Is there any framework in MAC, which helpa us to know current interface used.So that i can programatically do it in objective-c</p>