aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorJohn Thacker <johnthacker@gmail.com>2023-10-28 13:02:56 -0400
committerJoão Valverde <j@v6e.pt>2023-10-29 11:57:23 +0000
commit0ba993c81fd3eb175a3e4e449dbf3f70922a2196 (patch)
tree5c75b562e215579df040d6bb6411cd640fa0dde4 /ui
parentc88e3b332ee66ffbaf3ed07c4208bc124d438aef (diff)
Qt: Update address editor for FT_IPv4 changes
See 0d46d9a60a89b8d2fd37c91515f3c8153b5e6b99
Diffstat (limited to 'ui')
-rw-r--r--ui/qt/address_editor_frame.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/qt/address_editor_frame.cpp b/ui/qt/address_editor_frame.cpp
index f4a84d4fa3..e76d5c574d 100644
--- a/ui/qt/address_editor_frame.cpp
+++ b/ui/qt/address_editor_frame.cpp
@@ -54,7 +54,7 @@ AddressEditorFrame::~AddressEditorFrame()
QString AddressEditorFrame::addressToString(const FieldInformation& finfo)
{
address addr;
- ws_in4_addr ipv4;
+ const ipv4_addr_and_mask *ipv4;
const ipv6_addr_and_prefix *ipv6;
if (!finfo.isValid()) {
@@ -68,8 +68,8 @@ QString AddressEditorFrame::addressToString(const FieldInformation& finfo)
// proto_item_fill_display_label, but that gives us
// the currently resolved version, if resolution is
// available and enabled. We want the unresolved string.
- ipv4 = fvalue_get_uinteger(finfo.fieldInfo()->value);
- set_address(&addr, AT_IPv4, 4, &ipv4);
+ ipv4 = fvalue_get_ipv4(finfo.fieldInfo()->value);
+ set_address(&addr, AT_IPv4, 4, &ipv4->addr);
return gchar_free_to_qstring(address_to_str(NULL, &addr));
case FT_IPv6:
ipv6 = fvalue_get_ipv6(finfo.fieldInfo()->value);