That's how it's defined in pcapng. Internally, we have a per-interface
FCS length value that's a signed 32-bit value, with -1 meaning
"unknown", but all possible values of if_fcslen fit in there.
When printing it, print it as unsigned.
wtapng_if_descr_mandatory_t* if_descr_mand;
GString *info = g_string_new("");
guint64 tmp64;
- gint8 itmp8;
guint8 tmp8;
if_filter_opt_t if_filter;
if_descr_mand->snap_len,
line_end);
- if (wtap_block_get_uint8_option_value(if_descr, OPT_IDB_FCSLEN, &itmp8) == WTAP_OPTTYPE_SUCCESS) {
+ if (wtap_block_get_uint8_option_value(if_descr, OPT_IDB_FCSLEN, &tmp8) == WTAP_OPTTYPE_SUCCESS) {
g_string_append_printf(info,
- "%*cFCS length = %d%s", indent, ' ',
- itmp8,
+ "%*cFCS length = %u%s", indent, ' ',
+ tmp8,
line_end);
}