[Babel-users] Get interface address string

Lorenzo Ghiro lorenzo.ghiro at studenti.unitn.it
Wed Jun 7 16:51:53 UTC 2017


Hi everybody!

I would like to know which is the proper method to get the string
representation of the ipv4 address of an interface.
I would appreciate very much something working like this:

struct interface *ifp=...assume that it really points to some interface...
char addr[16];
get_ifaddress(ifp, addr);
printf(%s\n, addr);

I tried to take advantage from ifp->ipv4 but I am in trouble...
please, can somebody help me? :)

Thank you,

Lorenzo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/babel-users/attachments/20170607/e67d09fd/attachment.html>


More information about the Babel-users mailing list