C code to get the interface name for the IP address in Linux -


how can interface name ip address in linux c code ?

e.g. i'd interface name ( etho , eth1 , l0 ) assigned ip address 192.168.0.1

you can use getifaddrs. see man 3 getifaddrs usage information. work on unix-like systems.


Comments

Popular posts from this blog

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -