Monero
Loading...
Searching...
No Matches
upnppermissions.h File Reference
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include "config.h"
Include dependency graph for upnppermissions.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  upnpperm

Functions

int read_permission_line (struct upnpperm *perm, char *p)
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)

Function Documentation

◆ check_upnp_rule_against_permissions()

int check_upnp_rule_against_permissions ( const struct upnpperm * permary,
int n_perms,
u_short eport,
struct in_addr address,
u_short iport )

◆ get_permitted_ext_ports()

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)

◆ read_permission_line()

int read_permission_line ( struct upnpperm * perm,
char * p )