Electroneum
Toggle main menu visibility
Loading...
Searching...
No Matches
ipfwaux.h
Go to the documentation of this file.
1
/* $Id: ipfwaux.h,v 1.6 2015/09/04 14:20:58 nanard Exp $ */
2
/*
3
* MiniUPnP project
4
* http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
5
* (c) 2009-2012 Jardel Weyrich
6
* This software is subject to the conditions detailed
7
* in the LICENCE file provided within the distribution
8
*/
9
#ifndef IPFWAUX_H
10
#define IPFWAUX_H
11
12
#include <
stdint.h
>
13
#include <sys/types.h>
14
#include <sys/socket.h>
15
#include <netinet/in.h>
16
#include <netinet/ip_fw.h>
17
18
#define IP_FW_BASE (IP_FW_ADD - 5)
19
#define IP_FW_INIT (IP_FW_BASE + 1)
20
#define IP_FW_TERM (IP_FW_BASE + 2)
21
22
int
ipfw_exec
(
int
optname,
void
* optval,
uintptr_t
optlen);
23
void
ipfw_free_ruleset
(
struct
ip_fw ** rules);
24
int
ipfw_fetch_ruleset
(
struct
ip_fw ** rules,
int
* total_fetched,
int
count);
25
int
ipfw_validate_protocol
(
int
value
);
26
int
ipfw_validate_ifname
(
const
char
*
const
value
);
27
28
#endif
29
ipfw_validate_ifname
int ipfw_validate_ifname(const char *const value)
ipfw_exec
int ipfw_exec(int optname, void *optval, uintptr_t optlen)
ipfw_validate_protocol
int ipfw_validate_protocol(int value)
ipfw_fetch_ruleset
int ipfw_fetch_ruleset(struct ip_fw **rules, int *total_fetched, int count)
ipfw_free_ruleset
void ipfw_free_ruleset(struct ip_fw **rules)
value
const GenericPointer< typename T::ValueType > T2 value
Definition
pointer.h:1225
stdint.h
uintptr_t
_W64 unsigned int uintptr_t
Definition
stdint.h:165
external
miniupnp
miniupnpd
ipfw
ipfwaux.h
Generated on
for Electroneum by
1.17.0