Back to index

tor  0.2.3.18-rc
Classes | Defines | Typedefs
tor-fw-helper.h File Reference

The main header for our firewall helper. More...

#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <getopt.h>
#include <time.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  tor_fw_options_t
 This is where we store parsed commandline options. More...
struct  tor_fw_backend_t
 This is our main structure that defines our backend helper API; each helper must conform to these public methods if it expects to be handled in a non-special way. More...

Defines

#define tor_fw_version   "0.1"
 The current version of tor-fw-helper.
#define MAX_BACKENDS   23
 This is an arbitrary hard limit - We currently have two (NAT-PMP and UPnP).

Typedefs

typedef struct tor_fw_backend_t tor_fw_backend_t
 This is our main structure that defines our backend helper API; each helper must conform to these public methods if it expects to be handled in a non-special way.

Detailed Description

The main header for our firewall helper.

Definition in file tor-fw-helper.h.


Class Documentation

struct tor_fw_options_t

This is where we store parsed commandline options.

Definition at line 28 of file tor-fw-helper.h.

Class Members
uint16_t external_port
int fetch_public_ip
int help
uint16_t internal_port
int nat_pmp_status
uint16_t private_dir_port
uint16_t private_or_port
uint16_t public_dir_port
int public_ip_status
uint16_t public_or_port
int test_commandline
int upnp_status
int verbose

Define Documentation

#define MAX_BACKENDS   23

This is an arbitrary hard limit - We currently have two (NAT-PMP and UPnP).

We're likely going to add the Intel UPnP library but nothing else comes to mind at the moment.

Definition at line 25 of file tor-fw-helper.h.

#define tor_fw_version   "0.1"

The current version of tor-fw-helper.

Definition at line 20 of file tor-fw-helper.h.


Typedef Documentation

This is our main structure that defines our backend helper API; each helper must conform to these public methods if it expects to be handled in a non-special way.