~ubuntu-branches/ubuntu/precise/netatalk/precise

« back to all changes in this revision

Viewing changes to libatalk/atp/atp_internals.h

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Rittau
  • Date: 2004-01-19 12:43:49 UTC
  • Revision ID: james.westby@ubuntu.com-20040119124349-es563jbp0hk0ae51
Tags: upstream-1.6.4
ImportĀ upstreamĀ versionĀ 1.6.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * $Id: atp_internals.h,v 1.3 2001/08/15 02:17:57 srittau 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/types.h>
 
30
#include <sys/cdefs.h>
 
31
#include <netatalk/at.h>
 
32
#include <netatalk/endian.h>
 
33
#include <atalk/atp.h>
 
34
 
 
35
/*
 
36
 * masks for matching incoming packets
 
37
 */
 
38
#define ATP_FUNCANY     ATP_TREQ | ATP_TRESP | ATP_TREL
 
39
#define ATP_TIDANY      0xffff
 
40
 
 
41
/* in atp_bufs.c */
 
42
extern struct atpbuf *atp_alloc_buf __P((void));
 
43
extern void atp_print_bufuse        __P((ATP, char *));
 
44
extern int atp_free_buf             __P((struct atpbuf *));
 
45
 
 
46
/* in atp_packet.c */
 
47
extern int at_addr_eq               __P((struct sockaddr_at *, 
 
48
                                         struct sockaddr_at *));
 
49
extern void atp_build_req_packet    __P((struct atpbuf *, u_int16_t, 
 
50
                                         u_int8_t, struct atp_block *));
 
51
extern void atp_build_resp_packet   __P((struct atpbuf *, u_int16_t,
 
52
                                         u_int8_t, struct atp_block *,
 
53
                                         u_int8_t));
 
54
extern int atp_recv_atp             __P((ATP, struct sockaddr_at *, 
 
55
                                         u_int8_t *, u_int16_t, char *,
 
56
                                         int));
 
57
#ifdef EBUG
 
58
extern void atp_print_addr          __P((char *, struct sockaddr_at *));
 
59
#endif /* EBUG */
 
60
 
 
61
#endif /* ATP_INTERNALS_H */