Tomato 1.24
[tomato.git] / release / src / router / miniupnpd / getifaddr.h
blobc32809480629a017215551fc496e088dd33d03d5
1 /* $Id: getifaddr.h,v 1.4 2007/02/07 22:21:49 nanard Exp $ */
2 /* MiniUPnP project
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__
11 /* getifaddr()
12 * take a network interface name and write the
13 * ip v4 address as text in the buffer
14 * returns: 0 success, -1 failure */
15 int
16 getifaddr(const char * ifname, char * buf, int len);
18 #endif