Skip to content

Commit

Permalink
Move listen functions to listen.h
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Nov 11, 2015
1 parent bcddbbf commit d473afc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 6 additions & 0 deletions src/include/listen.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,4 +169,10 @@ typedef struct listen_socket_t {

RADCLIENT_LIST *clients;
} listen_socket_t;

void listen_free(rad_listen_t **head);
int listen_init(CONF_SECTION *cs, rad_listen_t **head, bool spawn_flag);
rad_listen_t *proxy_new_listener(TALLOC_CTX *ctx, home_server_t *home, uint16_t src_port);
RADCLIENT *client_listener_find(rad_listen_t *listener, fr_ipaddr_t const *ipaddr, uint16_t src_port);

#endif /* LISTEN_H */
6 changes: 0 additions & 6 deletions src/include/radiusd.h
Original file line number Diff line number Diff line change
Expand Up @@ -577,12 +577,6 @@ int main_config_free(void);
void main_config_hup(void);
void hup_logfile(void);

/* listen.c */
void listen_free(rad_listen_t **head);
int listen_init(CONF_SECTION *cs, rad_listen_t **head, bool spawn_flag);
rad_listen_t *proxy_new_listener(TALLOC_CTX *ctx, home_server_t *home, uint16_t src_port);
RADCLIENT *client_listener_find(rad_listen_t *listener, fr_ipaddr_t const *ipaddr, uint16_t src_port);

#ifdef WITH_STATS
RADCLIENT_LIST *listener_find_client_list(fr_ipaddr_t const *ipaddr, uint16_t port, int proto);
#endif
Expand Down

0 comments on commit d473afc

Please sign in to comment.