|
| int | set_rdr_name (rdr_name_type param, const char *string) |
| static int | addnatrule (int proto, unsigned short eport, const char *iaddr, unsigned short iport, const char *rhost) |
| static int | add_filter_rule (int proto, const char *rhost, const char *iaddr, unsigned short iport) |
| static int | addpeernatrule (int proto, const char *eaddr, unsigned short eport, const char *iaddr, unsigned short iport, const char *rhost, unsigned short rport) |
| static int | addpeerdscprule (int proto, unsigned char dscp, const char *iaddr, unsigned short iport, const char *rhost, unsigned short rport) |
| int | init_redirect (void) |
| void | shutdown_redirect (void) |
| static int | snprintip (char *dst, size_t size, uint32_t ip) |
| static void | add_redirect_desc (unsigned short eport, int proto, const char *desc, unsigned int timestamp) |
| static void | del_redirect_desc (unsigned short eport, int proto) |
| static void | get_redirect_desc (unsigned short eport, int proto, char *desc, int desclen, unsigned int *timestamp) |
| int | add_redirect_rule2 (const char *ifname, const char *rhost, unsigned short eport, const char *iaddr, unsigned short iport, int proto, const char *desc, unsigned int timestamp) |
| int | add_peer_redirect_rule2 (const char *ifname, const char *rhost, unsigned short rport, const char *eaddr, unsigned short eport, const char *iaddr, unsigned short iport, int proto, const char *desc, unsigned int timestamp) |
| int | add_peer_dscp_rule2 (const char *ifname, const char *rhost, unsigned short rport, unsigned char dscp, const char *iaddr, unsigned short iport, int proto, const char *desc, unsigned int timestamp) |
| int | add_filter_rule2 (const char *ifname, const char *rhost, const char *iaddr, unsigned short eport, unsigned short iport, int proto, const char *desc) |
| int | get_redirect_rule (const char *ifname, unsigned short eport, int proto, char *iaddr, int iaddrlen, unsigned short *iport, char *desc, int desclen, char *rhost, int rhostlen, unsigned int *timestamp, u_int64_t *packets, u_int64_t *bytes) |
| int | get_nat_redirect_rule (const char *nat_chain_name, const char *ifname, unsigned short eport, int proto, char *iaddr, int iaddrlen, unsigned short *iport, char *desc, int desclen, char *rhost, int rhostlen, unsigned int *timestamp, u_int64_t *packets, u_int64_t *bytes) |
| int | get_redirect_rule_by_index (int index, char *ifname, unsigned short *eport, char *iaddr, int iaddrlen, unsigned short *iport, int *proto, char *desc, int desclen, char *rhost, int rhostlen, unsigned int *timestamp, u_int64_t *packets, u_int64_t *bytes) |
| int | get_peer_rule_by_index (int index, char *ifname, unsigned short *eport, char *iaddr, int iaddrlen, unsigned short *iport, int *proto, char *desc, int desclen, char *rhost, int rhostlen, unsigned short *rport, unsigned int *timestamp, u_int64_t *packets, u_int64_t *bytes) |
| static int | delete_rule_and_commit (unsigned int index, IPTC_HANDLE h, const char *miniupnpd_chain, const char *logcaller) |
| int | delete_filter_rule (const char *ifname, unsigned short port, int proto) |
| int | delete_redirect_and_filter_rules (unsigned short eport, int proto) |
| static struct ipt_entry_match * | get_tcp_match (unsigned short dport, unsigned short sport) |
| static struct ipt_entry_match * | get_udp_match (unsigned short dport, unsigned short sport) |
| static struct ipt_entry_target * | get_dnat_target (const char *daddr, unsigned short dport) |
| static struct ipt_entry_target * | get_snat_target (const char *saddr, unsigned short sport) |
| static struct ipt_entry_target * | get_dscp_target (unsigned char dscp) |
| static int | iptc_init_verify_and_append (const char *table, const char *miniupnpd_chain, struct ipt_entry *e, const char *logcaller) |
| static struct ipt_entry_target * | get_accept_target (void) |
| unsigned short * | get_portmappings_in_range (unsigned short startport, unsigned short endport, int proto, unsigned int *number) |
| int | update_portmapping_desc_timestamp (const char *ifname, unsigned short eport, int proto, const char *desc, unsigned int timestamp) |
| static int | update_rule_and_commit (const char *table, const char *chain, unsigned index, const struct ipt_entry *e) |
| int | update_portmapping (const char *ifname, unsigned short eport, int proto, unsigned short iport, const char *desc, unsigned int timestamp) |