2 * $Id: atp_internals.h,v 1.2 2001-06-29 14:14:46 rufustfirefly Exp $
4 * Copyright (c) 1990,1991 Regents of The University of Michigan.
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.
17 * Research Systems Unix Group
18 * The University of Michigan
20 * 535 W. William Street
23 * netatalk@itd.umich.edu
26 #ifndef ATP_INTERNALS_H
27 #define ATP_INTERNALS_H 1
29 #include <sys/cdefs.h>
30 #include <netatalk/at.h>
31 #include <netatalk/endian.h>
32 #include <atalk/atp.h>
35 * masks for matching incoming packets
37 #define ATP_FUNCANY ATP_TREQ | ATP_TRESP | ATP_TREL
38 #define ATP_TIDANY 0xffff
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 *));
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 *,
53 extern int atp_recv_atp __P((ATP, struct sockaddr_at *,
54 u_int8_t *, u_int16_t, char *,
57 extern void atp_print_addr __P((char *, struct sockaddr_at *));
60 #endif /* ATP_INTERNALS_H */