mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-05-31 18:55:49 +00:00
FS-9227: [sofia-sip] fix Wrong byte order in HEP packet for source and destination ports
This commit is contained in:
parent
2409c20c73
commit
c6fa70054d
@ -694,13 +694,13 @@ int tport_capt_msg_hepv3 (tport_t const *self, msg_t *msg, size_t n,
|
|||||||
/* SRC PORT */
|
/* SRC PORT */
|
||||||
hg->src_port.chunk.vendor_id = htons(0x0000);
|
hg->src_port.chunk.vendor_id = htons(0x0000);
|
||||||
hg->src_port.chunk.type_id = htons(0x0007);
|
hg->src_port.chunk.type_id = htons(0x0007);
|
||||||
hg->src_port.data = dst ? htons(su->su_port) : htons(su_self->su_port);
|
hg->src_port.data = dst ? su->su_port : su_self->su_port;
|
||||||
hg->src_port.chunk.length = htons(sizeof(hg->src_port));
|
hg->src_port.chunk.length = htons(sizeof(hg->src_port));
|
||||||
|
|
||||||
/* DST PORT */
|
/* DST PORT */
|
||||||
hg->dst_port.chunk.vendor_id = htons(0x0000);
|
hg->dst_port.chunk.vendor_id = htons(0x0000);
|
||||||
hg->dst_port.chunk.type_id = htons(0x0008);
|
hg->dst_port.chunk.type_id = htons(0x0008);
|
||||||
hg->dst_port.data = dst ? htons(su_self->su_port) : htons(su->su_port);
|
hg->dst_port.data = dst ? su_self->su_port : su->su_port;
|
||||||
hg->dst_port.chunk.length = htons(sizeof(hg->dst_port));
|
hg->dst_port.chunk.length = htons(sizeof(hg->dst_port));
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user