netatalk  4.5.0
Free and Open Source Apple Filing Protocol (AFP) Server
Loading...
Searching...
No Matches
Error.c File Reference
#include <atalk/afp_util.h>
#include "afpcmd.h"
#include "afphelper.h"
#include "testhelper.h"

Data Structures

struct  t35_cmd
 

Macros

#define T35_DEFAULT   0
 
#define T35_COPYFILE_DEST   1
 

Functions

static int t35_add_u16 (unsigned char *buf, int ofs, uint16_t value)
 
static int t35_add_u32 (unsigned char *buf, int ofs, uint32_t value)
 
static int t35_add_u64 (unsigned char *buf, int ofs, uint64_t value)
 
static int t35_add_did (unsigned char *buf, int ofs)
 
static int t35_add_name (int ofs, char *name)
 
static int t35_add_extattr_name (unsigned char *buf, int ofs, const char *name)
 
static int t35_add_filedir_parms (unsigned char *buf, int ofs, uint16_t bitmap, int isdir)
 
static const char * t35_variant_name (unsigned char variant)
 
static int t35_cmd_supported (const struct t35_cmd *entry, int vol_attrs)
 
static int t35_build_request (DSI *dsi, unsigned char cmd, unsigned char variant, uint16_t bad_ref)
 
STATIC void test35 ()
 
STATIC void test36 ()
 
STATIC void test37 ()
 
static void cname_test (char *name)
 
STATIC void test95 ()
 
STATIC void test99 ()
 
STATIC void test100 ()
 
STATIC void test101 ()
 
static void test_comment (uint16_t vol, int dir, char *name)
 
STATIC void test102 ()
 
STATIC void test103 ()
 
STATIC void test105 ()
 
STATIC void test170 ()
 
STATIC void test171 ()
 
STATIC void test173 ()
 
STATIC void test174 ()
 
void Error_test ()
 

Variables

static struct t35_cmd afp_cmd_with_vol []
 
static struct t35_cmd afp_cmd_with_dt []
 
static unsigned char afp_cmd_with_vol_did []
 
static unsigned char afp_cmd_with_vol_did1 []
 

Macro Definition Documentation

◆ T35_COPYFILE_DEST

#define T35_COPYFILE_DEST   1

◆ T35_DEFAULT

#define T35_DEFAULT   0

Function Documentation

◆ cname_test()

static void cname_test ( char *  name)
static

◆ Error_test()

void Error_test ( )

◆ t35_add_did()

static int t35_add_did ( unsigned char *  buf,
int  ofs 
)
static

◆ t35_add_extattr_name()

static int t35_add_extattr_name ( unsigned char *  buf,
int  ofs,
const char *  name 
)
static

◆ t35_add_filedir_parms()

static int t35_add_filedir_parms ( unsigned char *  buf,
int  ofs,
uint16_t  bitmap,
int  isdir 
)
static

◆ t35_add_name()

static int t35_add_name ( int  ofs,
char *  name 
)
static

◆ t35_add_u16()

static int t35_add_u16 ( unsigned char *  buf,
int  ofs,
uint16_t  value 
)
static

◆ t35_add_u32()

static int t35_add_u32 ( unsigned char *  buf,
int  ofs,
uint32_t  value 
)
static

◆ t35_add_u64()

static int t35_add_u64 ( unsigned char *  buf,
int  ofs,
uint64_t  value 
)
static

◆ t35_build_request()

static int t35_build_request ( DSI dsi,
unsigned char  cmd,
unsigned char  variant,
uint16_t  bad_ref 
)
static

◆ t35_cmd_supported()

static int t35_cmd_supported ( const struct t35_cmd entry,
int  vol_attrs 
)
static

◆ t35_variant_name()

static const char * t35_variant_name ( unsigned char  variant)
static

◆ test100()

STATIC void test100 ( )

◆ test101()

STATIC void test101 ( )

◆ test102()

STATIC void test102 ( )

◆ test103()

STATIC void test103 ( )

◆ test105()

STATIC void test105 ( )

◆ test170()

STATIC void test170 ( )

◆ test171()

STATIC void test171 ( )

◆ test173()

STATIC void test173 ( )

◆ test174()

STATIC void test174 ( )

◆ test35()

STATIC void test35 ( )

◆ test36()

STATIC void test36 ( )

◆ test37()

STATIC void test37 ( )

◆ test95()

STATIC void test95 ( )

◆ test99()

STATIC void test99 ( )

◆ test_comment()

static void test_comment ( uint16_t  vol,
int  dir,
char *  name 
)
static

Variable Documentation

◆ afp_cmd_with_dt

struct t35_cmd afp_cmd_with_dt[]
static
Initial value:
= {
}
#define AFP_GETICON
Definition afp.h:175
#define AFP_CLOSEDT
Definition afp.h:173
#define AFP_GTICNINFO
Definition afp.h:176
#define AFPERR_PARAM
Definition afp.h:73
#define AFP_GETAPPL
Definition afp.h:180
#define AFP_ADDICON
Definition afp.h:184
#define AFP_GETCMT
Definition afp.h:183
#define AFP_RMVAPPL
Definition afp.h:178
#define AFP_ADDAPPL
Definition afp.h:177
#define AFP_ADDCMT
Definition afp.h:181
#define AFP_RMVCMT
Definition afp.h:182

◆ afp_cmd_with_vol

struct t35_cmd afp_cmd_with_vol[]
static

◆ afp_cmd_with_vol_did

unsigned char afp_cmd_with_vol_did[]
static
Initial value:
= {
}
#define AFP_COPYFILE
Definition afp.h:133
#define AFP_RENAME
Definition afp.h:155
#define AFP_OPENDIR
Definition afp.h:152
#define AFP_SETFLDRPARAM
Definition afp.h:162
#define AFP_SETDIRPARAM
Definition afp.h:156
#define AFP_DELETE
Definition afp.h:136
#define AFP_CREATEFILE
Definition afp.h:135
#define AFP_CREATEDIR
Definition afp.h:134
#define AFP_OPENFORK
Definition afp.h:153
#define AFP_GETFLDRPARAM
Definition afp.h:161
#define AFP_SETFILEPARAM
Definition afp.h:157

◆ afp_cmd_with_vol_did1

unsigned char afp_cmd_with_vol_did1[]
static
Initial value:
= {
}
#define AFP_CREATEID
Definition afp.h:166
#define AFP_EXCHANGEFILE
Definition afp.h:169
#define AFP_MOVE
Definition afp.h:150