Ethereal-dev: Re: [Ethereal-dev] problems with compiling a dissector under win-xp

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Patrick Fuchs <rotfuchs@xxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 26 Apr 2006 21:52:40 +0200
I have some functions defined inside an other function. This works fine under Linux. But could this be a problem with windows?

******************************
static int
dissect_asdu(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, int offset, int trans_cause_length, int adress_length_asdu, int io_adress_length)
{
 proto_item *info_item;
 proto_tree *info_tree;
proto_item *ie_item;
 proto_tree *ie_tree;

 ioacounter = TRUE;
 char ca_adr[250];

void qds()    /*Qualitiy descriptor*/
{
 val8 = tvb_get_guint8 (tvb, offset);
ie_item=proto_tree_add_text(info_tree, tvb, offset, 1, "QDS: IV=%d, NT=%d, SB=%d, BL=%d, res, res, res, OV=%d", (val8&0x80)/0x80, (val8&0x40)/0x40, (val8&0x20)/0x20, (val8&0x10)/0x10, val8&0x1);
 ie_tree = proto_item_add_subtree(ie_item, ett_qds);
 proto_tree_add_item (ie_tree, hf_iec_iv, tvb, offset, 1, FALSE);
 proto_tree_add_item (ie_tree, hf_iec_nt, tvb, offset, 1, FALSE);
 proto_tree_add_item (ie_tree, hf_iec_sb, tvb, offset, 1, FALSE);
 proto_tree_add_item (ie_tree, hf_iec_bl, tvb, offset, 1, FALSE);
 proto_tree_add_item (ie_tree, hf_iec_ov, tvb, offset, 1, FALSE);
 offset+=1;
}

.
.
.
}
************************************