Module: kamailio Branch: master Commit: 65ed9b065c497266a4ecd9760e7c168c69b4c6e8 URL: https://github.com/kamailio/kamailio/commit/65ed9b065c497266a4ecd9760e7c168c...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@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/65ed9b065c497266a4ecd9760e7c168c... Patch: https://github.com/kamailio/kamailio/commit/65ed9b065c497266a4ecd9760e7c168c...
---
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*/