From fd201820bf135e8423ef8788f006541a369bf350 Mon Sep 17 00:00:00 2001 From: guy Date: Wed, 18 Mar 2009 23:30:21 +0000 Subject: Clean up indentation. Note that -5047 can also mean "disk quota exceeded". Define the ASP errors as 32-bit (negative) numbers, just like the AFP errors. Add a couple of ASP errors to the list of error values. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27792 f5534014-38df-0310-8fa8-9805f1628bb7 --- epan/dissectors/packet-atalk.c | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'epan/dissectors/packet-atalk.c') diff --git a/epan/dissectors/packet-atalk.c b/epan/dissectors/packet-atalk.c index 93778b8674..70c06041c4 100644 --- a/epan/dissectors/packet-atalk.c +++ b/epan/dissectors/packet-atalk.c @@ -198,17 +198,17 @@ static gint ett_zip_network_list = -1; #define ASPFUNC_ATTN 8 #define ASP_HDRSIZ 4 -#define ASPERR_OK 0x0000 -#define ASPERR_BADVERS 0xfbd6 -#define ASPERR_BUFSMALL 0xfbd5 -#define ASPERR_NOSESS 0xfbd4 -#define ASPERR_NOSERV 0xfbd3 -#define ASPERR_PARM 0xfbd2 -#define ASPERR_SERVBUSY 0xfbd1 -#define ASPERR_SESSCLOS 0xfbd0 -#define ASPERR_SIZERR 0xfbcf -#define ASPERR_TOOMANY 0xfbce -#define ASPERR_NOACK 0xfbcd +#define ASPERR_OK 0 +#define ASPERR_BADVERS (-1066) +#define ASPERR_BUFSMALL (-1067) +#define ASPERR_NOSESS (-1068) +#define ASPERR_NOSERV (-1069) +#define ASPERR_PARM (-1070) +#define ASPERR_SERVBUSY (-1071) +#define ASPERR_SESSCLOS (-1072) +#define ASPERR_SIZERR (-1073) +#define ASPERR_TOOMANY (-1074) +#define ASPERR_NOACK (-1075) static int proto_asp = -1; static int hf_asp_func = -1; @@ -482,6 +482,8 @@ static const value_string asp_func_vals[] = { const value_string asp_error_vals[] = { {AFP_OK , "success"}, + {ASPERR_NOSESS , "no more sessions available"}, + {ASPERR_SESSCLOS , "session closed (ASP)" }, {AFPERR_ACCESS , "permission denied" }, {AFPERR_AUTHCONT , "logincont" }, {AFPERR_BADUAM , "uam doesn't exist" }, -- cgit v1.2.3