|
Monero
|
#include <ctype.h>#include <string.h>#include <stdlib.h>#include <stdio.h>#include <syslog.h>#include <netinet/in.h>#include <arpa/inet.h>#include <unistd.h>#include "config.h"#include "upnppermissions.h"
Functions | |
| int | read_permission_line (struct upnpperm *perm, char *p) |
| static int | match_permission (const struct upnpperm *perm, u_short eport, struct in_addr address, u_short iport) |
| int | check_upnp_rule_against_permissions (const struct upnpperm *permary, int n_perms, u_short eport, struct in_addr address, u_short iport) |
| void | get_permitted_ext_ports (uint32_t *allowed, const struct upnpperm *permary, int n_perms, in_addr_t addr, u_short iport) |
| int check_upnp_rule_against_permissions | ( | const struct upnpperm * | permary, |
| int | n_perms, | ||
| u_short | eport, | ||
| struct in_addr | address, | ||
| u_short | iport ) |
| void get_permitted_ext_ports | ( | uint32_t * | allowed, |
| const struct upnpperm * | permary, | ||
| int | n_perms, | ||
| in_addr_t | addr, | ||
| u_short | iport ) |
Build an array of all allowed external ports (for the address and internal port)
|
static |
| int read_permission_line | ( | struct upnpperm * | perm, |
| char * | p ) |