miniupnpd 1.9 (20160113)
[tomato.git] / release / src / router / miniupnpd / portinuse.h
blobb91198ba55e7c5c400bb2676e000511caed21f38
1 /* $Id: portinuse.h,v 1.2 2014/03/28 12:03:28 nanard Exp $ */
2 /* MiniUPnP project
3 * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
4 * (c) 2006-2014 Thomas Bernard
5 * This software is subject to the conditions detailed
6 * in the LICENCE file provided within the distribution */
8 #ifndef __PORTINUSE_H__
9 #define __PORTINUSE_H__
11 #ifdef CHECK_PORTINUSE
12 /* portinuse()
13 * determine wether a port is already in use
14 * on a given interface.
15 * returns: 0 not in use, > 0 in use
16 * -1 in case of error */
17 int
18 port_in_use(const char *if_name,
19 unsigned port, int proto,
20 const char *iaddr, unsigned iport);
21 #endif /* CHECK_PORTINUSE */
23 #endif