diff options
author | venaas <venaas> | 2009-01-27 10:37:43 +0000 |
---|---|---|
committer | venaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf> | 2009-01-27 10:37:43 +0000 |
commit | 67902f98c988aba120a3abb4250fb483f7d3139a (patch) | |
tree | 060523373e0f67aa9a5dd355a357775926d0fbf0 /hostport.h | |
parent | c8f995349df5cd82feb9158d51f224838b186835 (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.h | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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); |