netatalk 4.5.0
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
21 * netatalk@itd.umich.edu
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
34#define ATP_FUNCANY ATP_TREQ | ATP_TRESP | ATP_TREL
35#define ATP_TIDANY 0xffff
36
37/* in atp_bufs.c */
38 extern struct atpbuf *atp_alloc_buf(void);
39 extern void atp_print_bufuse(ATP, char *);
40 extern int atp_free_buf(struct atpbuf *);
41
42/* in atp_packet.c */
43 extern int at_addr_eq(struct sockaddr_at *, struct sockaddr_at *);
44 extern void atp_build_req_packet(struct atpbuf *, uint16_t,
45 uint8_t, struct atp_block *);
46 extern void atp_build_resp_packet(struct atpbuf *, uint16_t, uint8_t,
47 struct atp_block *, uint8_t);
48 extern int atp_recv_atp(ATP, struct sockaddr_at *, uint8_t *, uint16_t,
49 char *, int);
50#ifdef EBUG
51 extern void atp_print_addr(char *, struct sockaddr_at *);
52#endif /* EBUG */
53
54#endif /* ATP_INTERNALS_H */
at.h
atp.h
ATP packet format.
ATP
struct atp_handle * ATP
Definition atp.h:121
atp_print_addr
void atp_print_addr(char *s, struct sockaddr_at *saddr)
Definition atp_input.c:64
atp_recv_atp
int atp_recv_atp(ATP, struct sockaddr_at *, uint8_t *, uint16_t, char *, int)
Definition atp_packet.c:147
atp_print_bufuse
void atp_print_bufuse(ATP, char *)
atp_build_req_packet
void atp_build_req_packet(struct atpbuf *, uint16_t, uint8_t, struct atp_block *)
Definition atp_packet.c:102
atp_free_buf
int atp_free_buf(struct atpbuf *)
Definition atp_bufs.c:148
at_addr_eq
int at_addr_eq(struct sockaddr_at *, struct sockaddr_at *)
Definition atp_packet.c:322
atp_build_resp_packet
void atp_build_resp_packet(struct atpbuf *, uint16_t, uint8_t, struct atp_block *, uint8_t)
Definition atp_packet.c:122
atp_alloc_buf
struct atpbuf * atp_alloc_buf(void)
Definition atp_bufs.c:131
atp_block
Definition atp.h:148
atpbuf
Definition atp.h:93
sockaddr_at
Definition at.h:88