2 * Copyright (c) 1990,1991 Regents of The University of Michigan.
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.
15 * Research Systems Unix Group
16 * The University of Michigan
18 * 535 W. William Street
21 * netatalk@itd.umich.edu
24 #ifndef ATP_INTERNALS_H
25 #define ATP_INTERNALS_H 1
27 #include <sys/cdefs.h>
28 #include <netatalk/at.h>
29 #include <netatalk/endian.h>
30 #include <atalk/atp.h>
33 * masks for matching incoming packets
35 #define ATP_FUNCANY ATP_TREQ | ATP_TRESP | ATP_TREL
36 #define ATP_TIDANY 0xffff
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 *));
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 *,
51 extern int atp_recv_atp __P((ATP, struct sockaddr_at *,
52 u_int8_t *, u_int16_t, char *,
55 extern void atp_print_addr __P((char *, struct sockaddr_at *));