case_prox.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #ifndef CASE_PROX_H
00030 #define CASE_PROX_H
00031
00032
00033 #define ION_CASE \
00034 switch(LOWER_DWORD(val)) { \
00035 case _ion1_: \
00036 hdr->type = HDR_PROXYAUTH_T; \
00037 hdr->name.len = 19; \
00038 return (p + 4); \
00039 \
00040 case _ion2_: \
00041 hdr->type = HDR_PROXYAUTH_T; \
00042 p += 4; \
00043 goto dc_end; \
00044 }
00045
00046
00047 #define IZAT_CASE \
00048 switch(LOWER_DWORD(val)) { \
00049 case _izat_: \
00050 p += 4; \
00051 val = READ(p); \
00052 ION_CASE; \
00053 goto other; \
00054 }
00055
00056
00057 #define THOR_CASE \
00058 switch(LOWER_DWORD(val)) { \
00059 case _thor_: \
00060 p += 4; \
00061 val = READ(p); \
00062 IZAT_CASE; \
00063 goto other; \
00064 }
00065
00066
00067 #define QUIR_CASE \
00068 switch(LOWER_DWORD(val)) { \
00069 case _quir_: \
00070 p += 4; \
00071 switch(LOWER_BYTE(*p)) { \
00072 case 'e': \
00073 hdr->type = HDR_PROXYREQUIRE_T; \
00074 p++; \
00075 goto dc_end; \
00076 } \
00077 goto other; \
00078 }
00079
00080
00081 #define PROX2_CASE \
00082 switch(LOWER_DWORD(val)) { \
00083 case _y_au_: \
00084 p += 4; \
00085 val = READ(p); \
00086 THOR_CASE; \
00087 goto other; \
00088 \
00089 case _y_re_: \
00090 p += 4; \
00091 val = READ(p); \
00092 QUIR_CASE; \
00093 goto other; \
00094 }
00095
00096
00097 #define prox_CASE \
00098 p += 4; \
00099 val = READ(p); \
00100 PROX2_CASE; \
00101 goto other;
00102
00103
00104 #endif