2 * Copyright 1998 The OpenLDAP Foundation, All Rights Reserved.
3 * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
6 * Copyright (c) 1990 Regents of the University of Michigan.
9 * Redistribution and use in source and binary forms are permitted
10 * provided that this notice is preserved and that due credit is given
11 * to the University of Michigan at Ann Arbor. The name of the University
12 * may not be used to endorse or promote products derived from this
13 * software without specific prior written permission. This software
14 * is provided ``as is'' without express or implied warranty.
26 #define LBER_ITEM_BERELEMENT 1
27 #define LBER_ITEM_SOCKBUF 2
29 extern int lber_int_debug;
30 #define lber_log_printf lber_pvt_log_printf
33 short ber_item_type; /* always LBER_ITEM_BERELEMENT */
39 unsigned long ber_tag;
40 unsigned long ber_len;
46 struct seqorset *ber_sos;
48 BERTranslateProc ber_encode_translate_proc;
49 BERTranslateProc ber_decode_translate_proc;
51 #define NULLBER ((BerElement *) 0)
54 short sb_item_type; /* always LBER_ITEM_SOCKBUF */
55 short sb_options; /* to support copying ber elements */
69 int sb_naddr; /* > 0 implies using CLDAP (UDP) */
70 void *sb_useaddr; /* pointer to sockaddr to use next */
71 void *sb_fromaddr; /* pointer to message source sockaddr */
72 void **sb_addrs; /* actually an array of pointers to
75 #define READBUFSIZ 8192
79 unsigned long sos_clen;
80 unsigned long sos_tag;
83 struct seqorset *sos_next;
85 #define NULLSEQORSET ((Seqorset *) 0)
90 LDAP_F int lber_log_bprint LDAP_P((
96 LDAP_F int lber_log_dump LDAP_P((
102 LDAP_F int lber_log_sos_dump LDAP_P((
107 #endif /* _LBER_INT_H */