Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Preference not working in Wireshark 4.0

Using Wireshark 4.0.2 on Windows 11.

I have a protocol preference defined as:

local tx_antennas_enum = {
  { 32,  "32", 32 },
  { 64,  "64", 64  }
}

xran_protocol.prefs.tx_antennas_cnt = Pref.enum("Tx antennas", 0, "Tx antenna count", tx_antennas_enum, false)

This worked fine in Wireshark 3 (the returned value was 32 or 64), but when I access xran_protocol.prefs.tx_antennas_cnt in Wireshark 4.0.2, that value comes back as zero.

Is there a problem with my code?