[sr-dev] git:master:65ed9b06: core: tcp - increased the size for flags field in connection struct

Daniel-Constantin Mierla miconda at gmail.com
Tue Sep 19 11:46:28 CEST 2017


Module: kamailio
Branch: master
Commit: 65ed9b065c497266a4ecd9760e7c168c69b4c6e8
URL: https://github.com/kamailio/kamailio/commit/65ed9b065c497266a4ecd9760e7c168c69b4c6e8

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2017-09-19T11:45:46+02:00

core: tcp - increased the size for flags field in connection struct

---

Modified: src/core/ip_addr.h
Modified: src/core/tcp_conn.h

---

Diff:  https://github.com/kamailio/kamailio/commit/65ed9b065c497266a4ecd9760e7c168c69b4c6e8.diff
Patch: https://github.com/kamailio/kamailio/commit/65ed9b065c497266a4ecd9760e7c168c69b4c6e8.patch

---

diff --git a/src/core/ip_addr.h b/src/core/ip_addr.h
index 409716d144..7edb44e679 100644
--- a/src/core/ip_addr.h
+++ b/src/core/ip_addr.h
@@ -159,8 +159,8 @@ typedef struct sr_net_info {
 #define SND_F_FORCE_SOCKET		4 /* send socket in dst is forced */
 
 struct snd_flags {
-	unsigned char f;          /* snd flags */
-	unsigned char blst_imask; /* blacklist ignore mask */
+	unsigned short f;          /* snd flags */
+	unsigned short blst_imask; /* blacklist ignore mask */
 };
 
 typedef struct snd_flags snd_flags_t;
diff --git a/src/core/tcp_conn.h b/src/core/tcp_conn.h
index db52d8194e..50b16ca028 100644
--- a/src/core/tcp_conn.h
+++ b/src/core/tcp_conn.h
@@ -200,7 +200,7 @@ struct tcp_connection{
 	struct tcp_req req; /* request data */
 	atomic_t refcnt;
 	enum sip_protos type; /* PROTO_TCP or a protocol over it, e.g. TLS */
-	unsigned short flags; /* connection related flags */
+	unsigned int flags; /* connection related flags */
 	snd_flags_t send_flags; /* special send flags */
 	enum tcp_conn_states state; /* connection state */
 	void* extra_data; /* extra data associated to the connection, 0 for tcp*/




More information about the sr-dev mailing list