|
Monero
|
#include <stdlib.h>#include <string.h>#include <syslog.h>#include <sys/types.h>#include <sys/socket.h>#include <netinet/in.h>#include <net/if.h>#include <arpa/inet.h>#include <stdio.h>#include <ctype.h>#include <unistd.h>#include "macros.h"#include "config.h"#include "upnpredirect.h"#include "upnpglobalvars.h"#include "upnpevents.h"#include "portinuse.h"#include "upnputils.h"
Macros | |
| #define | PRIu64 "llu" |
Functions | |
| static int | proto_atoi (const char *protocol) |
| static const char * | proto_itoa (int proto) |
| int | upnp_redirect (const char *rhost, unsigned short eport, const char *iaddr, unsigned short iport, const char *protocol, const char *desc, unsigned int leaseduration) |
| int | upnp_redirect_internal (const char *rhost, unsigned short eport, const char *iaddr, unsigned short iport, int proto, const char *desc, unsigned int timestamp) |
| int | upnp_get_redirection_infos (unsigned short eport, const char *protocol, unsigned short *iport, char *iaddr, int iaddrlen, char *desc, int desclen, char *rhost, int rhostlen, unsigned int *leaseduration) |
| int | upnp_get_redirection_infos_by_index (int index, unsigned short *eport, char *protocol, unsigned short *iport, char *iaddr, int iaddrlen, char *desc, int desclen, char *rhost, int rhostlen, unsigned int *leaseduration) |
| int | _upnp_delete_redir (unsigned short eport, int proto) |
| int | upnp_delete_redirection (unsigned short eport, const char *protocol) |
| int | upnp_get_portmapping_number_of_entries () |
| struct rule_state * | get_upnp_rules_state_list (int max_rules_number_target) |
| void | remove_unused_rules (struct rule_state *list) |
| unsigned short * | upnp_get_portmappings_in_range (unsigned short startport, unsigned short endport, const char *protocol, unsigned int *number) |
| #define PRIu64 "llu" |
| int _upnp_delete_redir | ( | unsigned short | eport, |
| int | proto ) |
| struct rule_state * get_upnp_rules_state_list | ( | int | max_rules_number_target | ) |
|
static |
|
static |
| void remove_unused_rules | ( | struct rule_state * | list | ) |
| int upnp_delete_redirection | ( | unsigned short | eport, |
| const char * | protocol ) |
| int upnp_get_portmapping_number_of_entries | ( | void | ) |
| unsigned short * upnp_get_portmappings_in_range | ( | unsigned short | startport, |
| unsigned short | endport, | ||
| const char * | protocol, | ||
| unsigned int * | number ) |
| int upnp_get_redirection_infos | ( | unsigned short | eport, |
| const char * | protocol, | ||
| unsigned short * | iport, | ||
| char * | iaddr, | ||
| int | iaddrlen, | ||
| char * | desc, | ||
| int | desclen, | ||
| char * | rhost, | ||
| int | rhostlen, | ||
| unsigned int * | leaseduration ) |
| int upnp_get_redirection_infos_by_index | ( | int | index, |
| unsigned short * | eport, | ||
| char * | protocol, | ||
| unsigned short * | iport, | ||
| char * | iaddr, | ||
| int | iaddrlen, | ||
| char * | desc, | ||
| int | desclen, | ||
| char * | rhost, | ||
| int | rhostlen, | ||
| unsigned int * | leaseduration ) |
| int upnp_redirect | ( | const char * | rhost, |
| unsigned short | eport, | ||
| const char * | iaddr, | ||
| unsigned short | iport, | ||
| const char * | protocol, | ||
| const char * | desc, | ||
| unsigned int | leaseduration ) |