title: Access link local address using c
body: <p>I am working on a IPv6 network application, built using C.</p>
  
  <p>Now as per my requirements, I need to fill default address of my packet with link local address of system.</p>
  
  <p>Is there any function/library avaliable in <code>glibc</code> for the purpose.</p>
  
  <p>I know I can do this using <code>system</code> command and running a script that can access <code>ifcfg-eth0</code> from system but I guess that would not be advisible.</p>
  
  <p>I am new to all this socket stuff so please excuse if missing something trivial.</p>
  
  <p><strong>Edit :</strong></p>
  
  <p>OS : linux</p>
  
  <p>and this is actually an open source implementation <code>sendip</code> built using raw C socket programming. Now, I am modifying it acc. to my requirements.</p>
  
  <p><a href="http://snad.ncsl.nist.gov/ipv6/sendip.html" rel="nofollow">http://snad.ncsl.nist.gov/ipv6/sendip.html</a></p>