summaryrefslogtreecommitdiff
path: root/hostport.h
diff options
context:
space:
mode:
authorvenaas <venaas>2009-01-27 10:37:43 +0000
committervenaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf>2009-01-27 10:37:43 +0000
commit67902f98c988aba120a3abb4250fb483f7d3139a (patch)
tree060523373e0f67aa9a5dd355a357775926d0fbf0 /hostport.h
parentc8f995349df5cd82feb9158d51f224838b186835 (diff)
rewriting code for hosts,ports,resolving,currently does not build
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@461 e88ac4ed-0b26-0410-9574-a7f39faa03bf
Diffstat (limited to 'hostport.h')
-rw-r--r--hostport.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/hostport.h b/hostport.h
index 6c37284..30337d7 100644
--- a/hostport.h
+++ b/hostport.h
@@ -13,6 +13,8 @@ struct hostportres {
struct addrinfo *addrinfo;
};
-void resolve_freehostport(struct hostportres *hp);
-struct hostportres *resolve_newhostport(char *hostport, char *default_port, uint8_t prefixok);
-int resolve_resolve(struct hostportres *hp, int socktype, uint8_t passive);
+int addhostport(struct list **hostports, char *hostport, char *portdefault, uint8_t prefixok);
+void freehostports(struct list *hostports);
+int resolvehostports(struct list *hostports, int socktype);
+struct addrinfo *resolvepassiveaddrinfo(char *hostport, char *default_port, int socktype);
+int addressmatches(struct list *hostports, struct sockaddr *addr);