netatalk
4.6.0
Free and Open Source Apple Filing Protocol (AFP) Server
Toggle main menu visibility
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
extern
void
atp_bufs_release
(
void
);
42
43
/* in atp_packet.c */
44
extern
int
at_addr_eq
(
struct
sockaddr_at
*,
struct
sockaddr_at
*);
45
extern
void
atp_build_req_packet
(
struct
atpbuf
*, uint16_t,
46
uint8_t,
struct
atp_block
*);
47
extern
void
atp_build_resp_packet
(
struct
atpbuf
*, uint16_t, uint8_t,
48
struct
atp_block
*, uint8_t);
49
extern
int
atp_recv_atp
(
ATP
,
struct
sockaddr_at
*, uint8_t *, uint16_t,
50
char
*,
int
);
51
extern
void
atp_queue_push
(
ATP
,
struct
atpbuf
*);
52
#ifdef EBUG
53
extern
void
atp_print_addr
(
char
*,
struct
sockaddr_at
*);
54
#endif
/* EBUG */
55
56
#endif
/* ATP_INTERNALS_H */
at.h
atp.h
ATP packet format.
ATP
struct atp_handle * ATP
Definition
atp.h:124
atp_bufs_release
void atp_bufs_release(void)
Definition
atp_bufs.c:174
atp_free_buf
int atp_free_buf(struct atpbuf *bp)
Definition
atp_bufs.c:186
atp_alloc_buf
struct atpbuf * atp_alloc_buf(void)
Definition
atp_bufs.c:152
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:188
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
at_addr_eq
int at_addr_eq(struct sockaddr_at *, struct sockaddr_at *)
Definition
atp_packet.c:371
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_queue_push
void atp_queue_push(ATP, struct atpbuf *)
Definition
atp_packet.c:158
atp_block
Definition
atp.h:151
atpbuf
Definition
atp.h:96
sockaddr_at
Definition
at.h:88
libatalk
atp
atp_internals.h
Generated by
1.18.0