proxy_entry
struct proxy_entry *proxyList;
struct proxy_entry;
struct proxy_entry *next;
struct proxy_entry *last;
static void RuleAdd(struct libalias *la, struct proxy_entry *);
static void RuleDelete(struct proxy_entry *);
RuleAdd(struct libalias *la, struct proxy_entry *entry)
struct proxy_entry *ptr;
struct proxy_entry *ptr_last;
RuleDelete(struct proxy_entry *entry)
struct proxy_entry *ptr;
struct proxy_entry *ptr_next;
struct proxy_entry *ptr;
struct proxy_entry *proxy_entry;
proxy_entry = malloc(sizeof(struct proxy_entry));
if (proxy_entry == NULL) {
proxy_entry->proxy_type = proxy_type;
proxy_entry->rule_index = rule_index;
proxy_entry->proto = proto;
proxy_entry->proxy_port = htons(proxy_port);
proxy_entry->server_port = htons(server_port);
proxy_entry->server_addr = server_addr;
proxy_entry->src_addr.s_addr = src_addr.s_addr & src_mask.s_addr;
proxy_entry->dst_addr.s_addr = dst_addr.s_addr & dst_mask.s_addr;
proxy_entry->src_mask = src_mask;
proxy_entry->dst_mask = dst_mask;
RuleAdd(la, proxy_entry);