Use glib equivalent of ntohs

svn path=/trunk/; revision=24056
This commit is contained in:
Bill Meier 2008-01-10 14:42:55 +00:00
parent aa2d38ffb3
commit addba66749
2 changed files with 5 additions and 5 deletions

View File

@ -814,9 +814,9 @@ dissect_fcfcs (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
tvb_memcpy (tvb, (guint8 *)&cthdr, offset, FCCT_PRMBL_SIZE);
cthdr.revision = tvb_get_guint8 (tvb, offset);
cthdr.in_id = tvb_get_ntoh24 (tvb, offset+1);
cthdr.opcode = ntohs (cthdr.opcode);
cthdr.opcode = g_ntohs (cthdr.opcode);
opcode = tvb_get_ntohs (tvb, offset+8);
cthdr.maxres_size = ntohs (cthdr.maxres_size);
cthdr.maxres_size = g_ntohs (cthdr.maxres_size);
if ((opcode != FCCT_MSG_ACC) && (opcode != FCCT_MSG_RJT)) {
conversation = find_conversation (pinfo->fd->num, &pinfo->src, &pinfo->dst,

View File

@ -201,7 +201,7 @@ static void draw_sack_graph(struct sctp_udata *u_data)
if (type == SCTP_SACK_CHUNK_ID)
{
sack_header =(struct sack_chunk_header *)tlist->data;
nr=ntohs(sack_header->nr_of_gaps);
nr=g_ntohs(sack_header->nr_of_gaps);
tsnumber = g_ntohl(sack_header->cum_tsn_ack);
if (sack->secs>=u_data->io->x1_tmp_sec)
@ -211,8 +211,8 @@ static void draw_sack_graph(struct sctp_udata *u_data)
gap = &sack_header->gaps[0];
for(i=0;i<nr; i++)
{
gap_start=ntohs(gap->start);
gap_end = ntohs(gap->end);
gap_start=g_ntohs(gap->start);
gap_end = g_ntohs(gap->end);
max_num=gap_end+tsnumber;
for (j=gap_start; j<=gap_end; j++)
{