title: How to get linux interface alias(IFLA_IFALIAS) programatically for an interface?
body: <p>We can set alias to an interface using the command </p>
  
  <pre><code>ip link set eth0 alias somename
  </code></pre>
  
  <p>To see that;</p>
  
  <pre><code>ip link show eth0
  </code></pre>
  
  <p>It is set as an alias. Now I want to read this in a C program, and I am not having an idea. I did make a google search, and even tried to look into the iproute2 (provider of this cli), but to no avail. Can any of you help me on this?</p>
  
  <p>Please refrain from giving cli output to file and regex solution.</p>