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