]> arthur.barton.de Git - netatalk.git/blob - libatalk/atp/atp_internals.h
Removed duplicate bprint() function (see util/bprint.c).
[netatalk.git] / libatalk / atp / atp_internals.h
1 /*
2  * $Id: atp_internals.h,v 1.2 2001-06-29 14:14:46 rufustfirefly Exp $
3  *
4  * Copyright (c) 1990,1991 Regents of The University of Michigan.
5  * All Rights Reserved.
6  *
7  * Permission to use, copy, modify, and distribute this software and
8  * its documentation for any purpose and without fee is hereby granted,
9  * provided that the above copyright notice appears in all copies and
10  * that both that copyright notice and this permission notice appear
11  * in supporting documentation, and that the name of The University
12  * of Michigan not be used in advertising or publicity pertaining to
13  * distribution of the software without specific, written prior
14  * permission. This software is supplied as is without expressed or
15  * implied warranties of any kind.
16  *
17  *      Research Systems Unix Group
18  *      The University of Michigan
19  *      c/o Mike Clark
20  *      535 W. William Street
21  *      Ann Arbor, Michigan
22  *      +1-313-763-0525
23  *      netatalk@itd.umich.edu
24  */
25
26 #ifndef ATP_INTERNALS_H
27 #define ATP_INTERNALS_H 1
28
29 #include <sys/cdefs.h>
30 #include <netatalk/at.h>
31 #include <netatalk/endian.h>
32 #include <atalk/atp.h>
33
34 /*
35  * masks for matching incoming packets
36  */
37 #define ATP_FUNCANY     ATP_TREQ | ATP_TRESP | ATP_TREL
38 #define ATP_TIDANY      0xffff
39
40 /* in atp_bufs.c */
41 extern struct atpbuf *atp_alloc_buf __P((void));
42 extern void atp_print_bufuse        __P((ATP, char *));
43 extern int atp_free_buf             __P((struct atpbuf *));
44
45 /* in atp_packet.c */
46 extern int at_addr_eq               __P((struct sockaddr_at *, 
47                                          struct sockaddr_at *));
48 extern void atp_build_req_packet    __P((struct atpbuf *, u_int16_t, 
49                                          u_int8_t, struct atp_block *));
50 extern void atp_build_resp_packet   __P((struct atpbuf *, u_int16_t,
51                                          u_int8_t, struct atp_block *,
52                                          u_int8_t));
53 extern int atp_recv_atp             __P((ATP, struct sockaddr_at *, 
54                                          u_int8_t *, u_int16_t, char *,
55                                          int));
56 #ifdef EBUG
57 extern void atp_print_addr          __P((char *, struct sockaddr_at *));
58 #endif /* EBUG */
59
60 #endif /* ATP_INTERNALS_H */