FS-9227: [sofia-sip] fix Wrong byte order in HEP packet for source and destination ports

This commit is contained in:
Alexandr Dubovikov 2016-06-03 09:04:53 -05:00 committed by Michael Jerris
parent 2409c20c73
commit c6fa70054d

View File

@ -694,13 +694,13 @@ int tport_capt_msg_hepv3 (tport_t const *self, msg_t *msg, size_t n,
/* SRC PORT */
hg->src_port.chunk.vendor_id = htons(0x0000);
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));
/* DST PORT */
hg->dst_port.chunk.vendor_id = htons(0x0000);
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));