[SR-Dev] git:master: K. compatibility members of the branch structure in dset.c

Jan Janak jan at iptel.org
Tue Mar 10 21:19:42 CET 2009


Module: sip-router
Branch: master
Commit: c5c2bcd6fe8cbcdd825a916aefe232c0a3fe0574
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=c5c2bcd6fe8cbcdd825a916aefe232c0a3fe0574

Author: Jan Janak <jan at iptel.org>
Committer: Jan Janak <jan at iptel.org>
Date:   Mon Mar  9 00:15:31 2009 +0100

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.

---

 config.h |    2 ++
 dset.c   |    7 +++++++
 2 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/config.h b/config.h
index a18def8..317ff1c 100644
--- a/config.h
+++ b/config.h
@@ -70,6 +70,8 @@
 
 #define MAX_URI_SIZE 1024	/* used when rewriting URIs */
 
+#define MAX_PATH_SIZE 256 /* Maximum length of path header buffer */
+
 #define MY_VIA "Via: SIP/2.0/UDP "
 #define MY_VIA_LEN (sizeof(MY_VIA) - 1)
 
diff --git a/dset.c b/dset.c
index ab58dca..e4e995a 100644
--- a/dset.c
+++ b/dset.c
@@ -57,9 +57,16 @@ struct branch
 	char dst_uri[MAX_URI_SIZE];
 	unsigned int dst_uri_len;
 
+	/* Path set */
+	char path[MAX_PATH_SIZE];
+	unsigned int path_len;
+
 	int q; /* Preference of the contact among
 		* contact within the array */
 	struct socket_info* force_send_socket;
+
+	/* Branch flags */
+	unsigned int flags;
 };
 
 




More information about the sr-dev mailing list