summaryrefslogtreecommitdiff
path: root/src/frag_reassembly.c
diff options
context:
space:
mode:
authorlishu <[email protected]>2019-04-25 16:32:05 +0800
committerlishu <[email protected]>2019-04-25 16:32:05 +0800
commit47673ad2a861504e36fb148e493bec81e50000da (patch)
treeed3408f68878c581d9a53e451ef05c5b044bb964 /src/frag_reassembly.c
parentfb46b33447c87c0dc4943436cf26657ca6b12c25 (diff)
20190425 元信息选项:本机IP地址
Diffstat (limited to 'src/frag_reassembly.c')
-rw-r--r--src/frag_reassembly.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/frag_reassembly.c b/src/frag_reassembly.c
index 4c87e60..1dffda1 100644
--- a/src/frag_reassembly.c
+++ b/src/frag_reassembly.c
@@ -1414,9 +1414,9 @@ long get_media(void *data, const uint8_t *key, uint size, void *user_arg)
{
/*�������ݷ�������ѡ��*/
media_info->opt_unit = (struct opt_unit_t*)calloc(1, sizeof(struct opt_unit_t));
- media_info->opt_unit->opt_len = sizeof(uint32_t)+sizeof(uint8_t)+sizeof(char*);
+ media_info->opt_unit->opt_len = sizeof(uint32_t)+sizeof(uint8_t)+sizeof(unsigned int);
media_info->opt_unit->opt_type = OPT_SOURCE_IP;
- media_info->opt_unit->opt_value = (char*)calloc(1, sizeof(char*));
+ media_info->opt_unit->opt_value = (char*)calloc(1, sizeof(unsigned int));
*(unsigned int*)(media_info->opt_unit->opt_value) = g_frag_cfg.local_ip_nr;
opt_num++;
}