title: libnl on macOS and iOS
body: <p>I'm trying to migrate a Linux/Android C app to macOS/iOS.</p>
  
  <p>I have this problem, this app uses libnl library some times, in the source code you can see includes like:</p>
  
  <pre><code>#include &lt;linux/netlink.h&gt;
  #include &lt;linux/rtnetlink.h&gt;
  #include &lt;linux/if_tun.h&gt;
  </code></pre>
  
  <p>These files are from libnl library, you can find information about this library here:</p>
  
  <p><a href="https://www.infradead.org/~tgr/libnl/doc/core.html#_introduction" rel="nofollow">https://www.infradead.org/~tgr/libnl/doc/core.html#_introduction</a></p>
  
  <p>I don't know what it's the equivalent in macOS and iOS. Maybe is the same but in another path? </p>
  
  <p>Also I tried to download libnl library and add it to /usr/local/include but it have other dependencies, this is why that I think that I'm in the wrong way...</p>
  
  <p>I found this guide <a href="https://developer.apple.com/library/content/documentation/Darwin/Conceptual/NKEConceptual/intro/intro.html#//apple_ref/doc/uid/TP40001858-CH225-SW1" rel="nofollow">https://developer.apple.com/library/content/documentation/Darwin/Conceptual/NKEConceptual/intro/intro.html#//apple_ref/doc/uid/TP40001858-CH225-SW1</a></p>
  
  <p>But this means that I need to rewrite all parts of the code that uses libnl?</p>
  
  <p>Any ideas?</p>
  
  <p>Thanks in advance!</p>