netatalk  4.4.0dev
Free and Open Source Apple Filing Protocol (AFP) Server
Loading...
Searching...
No Matches
atp_internals.h
Go to the documentation of this file.
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
22 */
23
24#ifndef ATP_INTERNALS_H
25#define ATP_INTERNALS_H 1
26
27#include <sys/types.h>
28#include <netatalk/at.h>
29#include <atalk/atp.h>
30
31/*
32 * masks for matching incoming packets
33 */
34#define ATP_FUNCANY ATP_TREQ | ATP_TRESP | ATP_TREL
35#define ATP_TIDANY 0xffff
36
37/* in atp_bufs.c */
38extern struct atpbuf *atp_alloc_buf(void);
39extern void atp_print_bufuse(ATP, char *);
40extern int atp_free_buf(struct atpbuf *);
41
42/* in atp_packet.c */
43extern int at_addr_eq(struct sockaddr_at *, struct sockaddr_at *);
44extern void atp_build_req_packet(struct atpbuf *, uint16_t,
45 uint8_t, struct atp_block *);
46extern void atp_build_resp_packet(struct atpbuf *, uint16_t, uint8_t,
47 struct atp_block *, uint8_t);
48extern int atp_recv_atp(ATP, struct sockaddr_at *, uint8_t *, uint16_t,
49 char *, int);
50#ifdef EBUG
51extern void atp_print_addr(char *, struct sockaddr_at *);
52#endif /* EBUG */
53
54#endif /* ATP_INTERNALS_H */
struct atp_handle * ATP
Definition atp.h:116
void atp_print_addr(char *s, struct sockaddr_at *saddr)
Definition atp_input.c:64
int atp_recv_atp(ATP, struct sockaddr_at *, uint8_t *, uint16_t, char *, int)
Definition atp_packet.c:147
void atp_print_bufuse(ATP, char *)
void atp_build_req_packet(struct atpbuf *, uint16_t, uint8_t, struct atp_block *)
Definition atp_packet.c:102
int atp_free_buf(struct atpbuf *)
Definition atp_bufs.c:147
int at_addr_eq(struct sockaddr_at *, struct sockaddr_at *)
Definition atp_packet.c:322
void atp_build_resp_packet(struct atpbuf *, uint16_t, uint8_t, struct atp_block *, uint8_t)
Definition atp_packet.c:122
struct atpbuf * atp_alloc_buf(void)
Definition atp_bufs.c:130
Definition atp.h:143
Definition atp.h:88
Definition at.h:88