Browse code

*** empty log message ***

Jan Janak authored on 12/08/2002 12:12:54
Showing 1 changed files
... ...
@@ -9,31 +9,32 @@
9 9
 
10 10
 
11 11
 /* Header types and flags */
12
-#define HDR_EOH                -1  /* End of header found */
13
-#define HDR_ERROR               0  /* Error while parsing */
14
-#define HDR_VIA                 1  /* Via header field */
15
-#define HDR_VIA1                1  /* First Via header field */
16
-#define HDR_VIA2                2  /* only used as flag*/
17
-#define HDR_TO                  4  /* To header field */
18
-#define HDR_FROM                8  /* From header field */
19
-#define HDR_CSEQ               16  /* CSeq header field */
20
-#define HDR_CALLID             32  /* Call-Id header field */
21
-#define HDR_CONTACT            64  /* Contact header field */
22
-#define HDR_MAXFORWARDS       128  /* MaxForwards header field */
23
-#define HDR_ROUTE             256  /* Route header field */
24
-#define HDR_RECORDROUTE       512  /* Record-Route header field */
25
-#define HDR_CONTENTTYPE      1024  /* Content-Type header field */
26
-#define HDR_CONTENTLENGTH    2048  /* Content-Length header field */
27
-#define HDR_AUTHORIZATION    4096  /* Authorization header field */
28
-#define HDR_EXPIRES          8192  /* Expires header field */
29
-#define HDR_PROXYAUTH       16384  /* Proxy-Authorization header field */
30
-#define HDR_WWWAUTH         32768  /* WWW-Authorization header field */
31
-#define HDR_SUPPORTED       65536  /* Supported header field */
32
-#define HDR_REQUIRE        131072  /* Require header field */
33
-#define HDR_PROXYREQUIRE   262144  /* Proxy-Require header field */
34
-#define HDR_UNSUPPORTED    524288  /* Unsupported header field */
35
-#define HDR_ALLOW         1048576  /* Allow header field */
36
-#define HDR_OTHER         2097152  /* Some other header field */
12
+#define HDR_EOH                 -1   /* End of header found */
13
+#define HDR_ERROR                0   /* Error while parsing */
14
+#define HDR_VIA                  1   /* Via header field */
15
+#define HDR_VIA1                 1   /* First Via header field */
16
+#define HDR_VIA2          (1 <<  1)  /* only used as flag*/
17
+#define HDR_TO            (1 <<  2)  /* To header field */
18
+#define HDR_FROM          (1 <<  3)  /* From header field */
19
+#define HDR_CSEQ          (1 <<  4)  /* CSeq header field */
20
+#define HDR_CALLID        (1 <<  5)  /* Call-Id header field */
21
+#define HDR_CONTACT       (1 <<  6)  /* Contact header field */
22
+#define HDR_MAXFORWARDS   (1 <<  7)  /* MaxForwards header field */
23
+#define HDR_ROUTE         (1 <<  8)  /* Route header field */
24
+#define HDR_RECORDROUTE   (1 <<  9)  /* Record-Route header field */
25
+#define HDR_CONTENTTYPE   (1 << 10)  /* Content-Type header field */
26
+#define HDR_CONTENTLENGTH (1 << 11)  /* Content-Length header field */
27
+#define HDR_AUTHORIZATION (1 << 12)  /* Authorization header field */
28
+#define HDR_EXPIRES       (1 << 13)  /* Expires header field */
29
+#define HDR_PROXYAUTH     (1 << 14)  /* Proxy-Authorization header field */
30
+#define HDR_WWWAUTH       (1 << 15)  /* WWW-Authorization header field */
31
+#define HDR_SUPPORTED     (1 << 16)  /* Supported header field */
32
+#define HDR_REQUIRE       (1 << 17)  /* Require header field */
33
+#define HDR_PROXYREQUIRE  (1 << 18)  /* Proxy-Require header field */
34
+#define HDR_UNSUPPORTED   (1 << 19)  /* Unsupported header field */
35
+#define HDR_ALLOW         (1 << 20)  /* Allow header field */
36
+#define HDR_EVENT         (1 << 21)  /* Event header field */
37
+#define HDR_OTHER         (1 << 22)  /* Some other header field */
37 38
 
38 39
 
39 40
 /* 
... ...
@@ -60,4 +61,4 @@ void clean_hdr_field(struct hdr_field* hf);
60 61
 void free_hdr_field_lst(struct hdr_field* hf);
61 62
 
62 63
 
63
-#endif
64
+#endif /* HF_H */