X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=hostport.h;h=01237e248100c9f3e4e50f6454ecf11046016624;hb=a21be6733bfe23998f3aaec00d87d35fe0f1aefa;hp=04add64dafc30862eec6aa9b029bc02a306a6c39;hpb=c70699706ed9e28d621676737ee5b83a2b90f528;p=radsecproxy.git diff --git a/hostport.h b/hostport.h index 04add64..01237e2 100644 --- a/hostport.h +++ b/hostport.h @@ -6,12 +6,7 @@ * copyright notice and this permission notice appear in all copies. */ -struct hostportres { - char *host; - char *port; - uint8_t prefixlen; - struct addrinfo *addrinfo; -}; +#include "hostport_types.h" struct hostportres *newhostport(char *hostport, char *default_port, uint8_t prefixok); int addhostport(struct list **hostports, char **hostport, char *portdefault, uint8_t prefixok); @@ -22,3 +17,7 @@ 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, uint8_t checkport); int connecttcphostlist(struct list *hostports, struct addrinfo *src); + +/* Local Variables: */ +/* c-file-style: "stroustrup" */ +/* End: */