From b7b7c46eb48cc531e9e96bae97bfa7c3533c74d8 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 4 Jun 2005 05:35:27 +0000 Subject: r7264: fix up the socket handling for abartlet. Still only udp, but it won't be hard to do tcp as well. (This used to be commit 7cbb95d3f55dbaf9ca606655377682841e4c534d) --- source4/kdc/kdc.h | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'source4/kdc/kdc.h') diff --git a/source4/kdc/kdc.h b/source4/kdc/kdc.h index 2289b504cc..2e81679e57 100644 --- a/source4/kdc/kdc.h +++ b/source4/kdc/kdc.h @@ -27,8 +27,16 @@ krb5_error_code hdb_ldb_create(krb5_context context, struct HDB **db, const char *arg); +/* hold all the info needed to send a reply */ +struct kdc_reply { + struct kdc_reply *next, *prev; + const char *dest_address; + int dest_port; + DATA_BLOB packet; +}; + /* - top level context structure for the cldap server + top level context structure for the kdc server */ struct kdc_server { struct task_server *task; @@ -36,16 +44,13 @@ struct kdc_server { krb5_context krb5_context; }; +/* hold information about one kdc socket */ struct kdc_socket { struct socket_context *sock; - struct event_context *event_ctx; - struct kdc_server *kdc; - - /* the fd event */ struct fd_event *fde; - /* a queue of outgoing replies */ + /* a queue of outgoing replies that have been deferred */ struct kdc_reply *send_queue; - }; + -- cgit