1baafda51f680b0a5ae640105c7f6fa4850de87b
[sip-router] / parser / case_unsu.h
1 /*
2  * $Id$
3  *
4  * Unsupported header field parser macros
5  */
6
7 #ifndef CASE_UNSU_H
8 #define CASE_UNSU_H
9
10
11 #define TED_CASE                             \
12         switch(val) {                        \
13         case _ted1_:                         \
14                 hdr->type = HDR_UNSUPPORTED; \
15                 hdr->name.len = 11;          \
16                 *(p + 3) = '\0';             \
17                 return (p + 4);              \
18                                              \
19         case _ted2_:                         \
20                 hdr->type = HDR_UNSUPPORTED; \
21                 p += 4;                      \
22                 goto dc_end;                 \
23         }
24
25
26 #define PPOR_CASE                 \
27         switch(val) {             \
28         case _ppor_:              \
29                 p += 4;           \
30                 val = READ(p);    \
31                 TED_CASE;         \
32                                   \
33                 val = unify(val); \
34                 TED_CASE;         \
35                 goto other;       \
36         }
37
38
39 #define Unsu_CASE         \
40         p += 4;           \
41         val = READ(p);    \
42         PPOR_CASE;        \
43                           \
44         val = unify(val); \
45         PPOR_CASE;        \
46         goto other;       \
47
48
49 #endif /* CASE_UNSU_H */