Browse code

K. compatibility members of the branch structure in dset.c

The structure now also contains the buffer and length variable
to store the path header and an unsigned int variable to store
branch flags.

Jan Janak authored on 08/03/2009 23:15:31
Showing 2 changed files
... ...
@@ -70,6 +70,8 @@
70 70
 
71 71
 #define MAX_URI_SIZE 1024	/* used when rewriting URIs */
72 72
 
73
+#define MAX_PATH_SIZE 256 /* Maximum length of path header buffer */
74
+
73 75
 #define MY_VIA "Via: SIP/2.0/UDP "
74 76
 #define MY_VIA_LEN (sizeof(MY_VIA) - 1)
75 77
 
... ...
@@ -57,9 +57,16 @@ struct branch
57 57
 	char dst_uri[MAX_URI_SIZE];
58 58
 	unsigned int dst_uri_len;
59 59
 
60
+	/* Path set */
61
+	char path[MAX_PATH_SIZE];
62
+	unsigned int path_len;
63
+
60 64
 	int q; /* Preference of the contact among
61 65
 		* contact within the array */
62 66
 	struct socket_info* force_send_socket;
67
+
68
+	/* Branch flags */
69
+	unsigned int flags;
63 70
 };
64 71
 
65 72