miniupnp/miniupnpd/ipfw/ipfwaux.h

30 lines
843 B
C
Raw Normal View History

2015-09-04 16:50:54 +00:00
/* $Id: ipfwaux.h,v 1.6 2015/09/04 14:20:58 nanard Exp $ */
2011-09-28 19:13:20 +00:00
/*
* MiniUPnP project
* http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
* (c) 2009-2012 Jardel Weyrich
2011-09-28 19:13:20 +00:00
* This software is subject to the conditions detailed
* in the LICENCE file provided within the distribution
*/
#ifndef IPFWAUX_H
#define IPFWAUX_H
2011-09-28 19:13:20 +00:00
#include <stdint.h>
2015-09-04 16:50:54 +00:00
#include <sys/types.h>
#include <sys/socket.h>
2011-09-28 19:13:20 +00:00
#include <netinet/in.h>
#include <netinet/ip_fw.h>
#define IP_FW_BASE (IP_FW_ADD - 5)
#define IP_FW_INIT (IP_FW_BASE + 1)
#define IP_FW_TERM (IP_FW_BASE + 2)
int ipfw_exec(int optname, void * optval, uintptr_t optlen);
void ipfw_free_ruleset(struct ip_fw ** rules);
int ipfw_fetch_ruleset(struct ip_fw ** rules, int * total_fetched, int count);
int ipfw_validate_protocol(int value);
int ipfw_validate_ifname(const char * const value);
2011-09-28 19:13:20 +00:00
#endif