<div dir="ltr"><div><div><div>Hi everybody!</div><div><br></div><div>I would like to know which is the proper method to get the string representation of the ipv4 address of an interface. </div><div>I would appreciate very much something working like this:</div><div><br></div><div>struct interface *ifp=...assume that it really points to some interface...</div><div>char addr[16];</div><div>get_ifaddress(ifp, addr);</div><div>printf(%s\n, addr);</div><div><br></div><div>I tried to take advantage from ifp->ipv4 but I am in trouble...</div><div>please, can somebody help me? :)</div><div><br></div><div>Thank you, </div><div><br></div><div>Lorenzo</div></div></div></div>