tvbuff_t *parameter_tvb=NULL;
int length;
int p_offset;
- gboolean is_ascii;
+ gboolean is_printable_ascii;
%(DEFAULT_BODY)s
length = tvb_reported_length(parameter_tvb);
- is_ascii = TRUE;
+ is_printable_ascii = TRUE;
for (p_offset=0; p_offset < length; p_offset++){
- if(!isalpha(tvb_get_guint8(parameter_tvb, p_offset ))){
- is_ascii = FALSE;
+ if(!g_ascii_isprint(tvb_get_guint8(parameter_tvb, p_offset ))){
+ is_printable_ascii = FALSE;
break;
}
}
- if (is_ascii)
+ if (is_printable_ascii)
proto_item_append_text(actx->created_item,"(%%s)",tvb_format_text(parameter_tvb, 0, length));
#.END
#include <glib.h>
#include <epan/packet.h>
-#include <ctype.h>
#include <epan/strutil.h>
#include <epan/asn1.h>
#include <epan/prefs.h>
} ProtocolIE_ID_enum;
/*--- End of included file: packet-s1ap-val.h ---*/
-#line 68 "../../asn1/s1ap/packet-s1ap-template.c"
+#line 67 "../../asn1/s1ap/packet-s1ap-template.c"
/* Initialize the protocol and registered fields */
static int proto_s1ap = -1;
static int hf_s1ap_eHRPDSectorLoadReportingResponse = -1; /* EHRPDSectorLoadReportingResponse */
/*--- End of included file: packet-s1ap-hf.c ---*/
-#line 75 "../../asn1/s1ap/packet-s1ap-template.c"
+#line 74 "../../asn1/s1ap/packet-s1ap-template.c"
/* Initialize the subtree pointers */
static int ett_s1ap = -1;
static gint ett_s1ap_EHRPDMultiSectorLoadReportingResponseItem = -1;
/*--- End of included file: packet-s1ap-ett.c ---*/
-#line 87 "../../asn1/s1ap/packet-s1ap-template.c"
+#line 86 "../../asn1/s1ap/packet-s1ap-template.c"
enum{
INITIATING_MESSAGE,
tvbuff_t *parameter_tvb=NULL;
int length;
int p_offset;
- gboolean is_ascii;
+ gboolean is_printable_ascii;
offset = dissect_per_PrintableString(tvb, offset, actx, tree, hf_index,
1, 150, TRUE);
length = tvb_reported_length(parameter_tvb);
- is_ascii = TRUE;
+ is_printable_ascii = TRUE;
for (p_offset=0; p_offset < length; p_offset++){
- if(!isalpha(tvb_get_guint8(parameter_tvb, p_offset ))){
- is_ascii = FALSE;
+ if(!g_ascii_isprint(tvb_get_guint8(parameter_tvb, p_offset ))){
+ is_printable_ascii = FALSE;
break;
}
}
- if (is_ascii)
+ if (is_printable_ascii)
proto_item_append_text(actx->created_item,"(%s)",tvb_format_text(parameter_tvb, 0, length));
/*--- End of included file: packet-s1ap-fn.c ---*/
-#line 134 "../../asn1/s1ap/packet-s1ap-template.c"
+#line 133 "../../asn1/s1ap/packet-s1ap-template.c"
static int dissect_ProtocolIEFieldValue(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_)
{
/*--- End of included file: packet-s1ap-dis-tab.c ---*/
-#line 207 "../../asn1/s1ap/packet-s1ap-template.c"
+#line 206 "../../asn1/s1ap/packet-s1ap-template.c"
} else {
if (SctpPort != 0) {
dissector_delete_uint("sctp.port", SctpPort, s1ap_handle);
NULL, HFILL }},
/*--- End of included file: packet-s1ap-hfarr.c ---*/
-#line 235 "../../asn1/s1ap/packet-s1ap-template.c"
+#line 234 "../../asn1/s1ap/packet-s1ap-template.c"
};
/* List of subtrees */
&ett_s1ap_EHRPDMultiSectorLoadReportingResponseItem,
/*--- End of included file: packet-s1ap-ettarr.c ---*/
-#line 248 "../../asn1/s1ap/packet-s1ap-template.c"
+#line 247 "../../asn1/s1ap/packet-s1ap-template.c"
};
module_t *s1ap_module;