netatalk  4.4.0dev
Free and Open Source Apple Filing Protocol (AFP) Server
Loading...
Searching...
No Matches
status.h
Go to the documentation of this file.
1#ifndef AFPD_STATUS_H
2#define AFPD_STATUS_H 1
3
4#include <atalk/dsi.h>
5#include <atalk/asp.h>
6#include <atalk/globals.h>
7
8#include "afp_config.h"
9
10/* we use these to prevent whacky alignment problems */
11#define AFPSTATUS_MACHOFF 0
12#define AFPSTATUS_VERSOFF 2
13#define AFPSTATUS_UAMSOFF 4
14#define AFPSTATUS_ICONOFF 6
15#define AFPSTATUS_FLAGOFF 8
16
17/* AFPSTATUS_PRELEN is the number of bytes for status data prior to
18 * the ServerName field.
19 *
20 * This is two bytes of offset space for the MachineType, AFPVersionCount,
21 * UAMCount, VolumeIconAndMask, and the 16-bit "Fixed" status flags.
22 */
23#define AFPSTATUS_PRELEN 10
24
25/* AFPSTATUS_POSTLEN is the number of bytes for offset records
26 * after the ServerName field.
27 *
28 * Right now, this is 2 bytes each for ServerSignature, networkAddressCount,
29 * DirectoryNameCount, and UTF-8 ServerName
30 */
31#define AFPSTATUS_POSTLEN 8
32#define AFPSTATUS_LEN (AFPSTATUS_PRELEN + AFPSTATUS_POSTLEN)
33
34/* AFPSTATUS_MACHLEN is the number of characters for the MachineType. */
35#define AFPSTATUS_MACHLEN 16
36
37extern void status_versions(char * /*status*/,
38#ifndef NO_DDP
39 const ASP,
40#endif
41 const DSI *);
42extern void status_uams(char * /*status*/, const char * /*authlist*/);
43extern void status_init(AFPObj *, AFPObj *, DSI *dsi);
44extern void set_signature(struct afp_options *);
45
46/* FP functions */
47int afp_getsrvrinfo(AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf,
48 size_t *rbuflen);
49
50#endif
static DSI * dsi
Definition afparg.c:39
static size_t rbuflen
Definition afpfunc_helpers.c:45
static char rbuf[rbufsize]
Definition afpfunc_helpers.c:44
#define NO_DDP
Definition config.h:359
static AFPObj obj
Definition netatalk.c:62
int afp_getsrvrinfo(AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen)
void status_uams(char *, const char *)
Definition afpd/auth.c:117
void set_signature(struct afp_options *)
Definition status.c:609
void status_versions(char *, const ASP, const DSI *)
Definition afpd/auth.c:63
void status_init(AFPObj *, AFPObj *, DSI *dsi)
Definition status.c:437
Definition globals.h:154
Definition asp.h:43
Definition include/atalk/dsi.h:52
Definition globals.h:93