1 /* $Id: getifaddr.h,v 1.4 2007/02/07 22:21:49 nanard Exp $ */
3 * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
4 * (c) 2006 Thomas Bernard
5 * This software is subject to the conditions detailed
6 * in the LICENCE file provided within the distribution */
8 #ifndef __GETIFADDR_H__
9 #define __GETIFADDR_H__
12 * take a network interface name and write the
13 * ip v4 address as text in the buffer
14 * returns: 0 success, -1 failure */
16 getifaddr(const char * ifname
, char * buf
, int len
);