2 * $Id: atp_internals.h,v 1.4 2009-10-13 22:55:37 didg 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/types.h>
30 #include <sys/cdefs.h>
31 #include <netatalk/at.h>
32 #include <netatalk/endian.h>
33 #include <atalk/atp.h>
36 * masks for matching incoming packets
38 #define ATP_FUNCANY ATP_TREQ | ATP_TRESP | ATP_TREL
39 #define ATP_TIDANY 0xffff
42 extern struct atpbuf *atp_alloc_buf (void);
43 extern void atp_print_bufuse (ATP, char *);
44 extern int atp_free_buf (struct atpbuf *);
47 extern int at_addr_eq (struct sockaddr_at *,
48 struct sockaddr_at *);
49 extern void atp_build_req_packet (struct atpbuf *, u_int16_t,
50 u_int8_t, struct atp_block *);
51 extern void atp_build_resp_packet (struct atpbuf *, u_int16_t,
52 u_int8_t, struct atp_block *,
54 extern int atp_recv_atp (ATP, struct sockaddr_at *,
55 u_int8_t *, u_int16_t, char *,
58 extern void atp_print_addr (char *, struct sockaddr_at *);
61 #endif /* ATP_INTERNALS_H */