aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/capture_dlg.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2004-07-19 02:27:17 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2004-07-19 02:27:17 +0000
commit7a602ef676e016dfbac35854d9389e68d7c29c3c (patch)
treea40416ac4806fa00960df88df6adab7b75d42303 /gtk/capture_dlg.c
parent3b92299a5872c29da6fc8f0634bee2a6ab69d8ed (diff)
Pull the address (and port and circuit type) stuff out of
"epan/packet_info.h" and put it in "epan/address.h". Use the AT_ values from "epan/address.h" for address types in the interface lists rather than having our own FAM_ enums. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11427 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk/capture_dlg.c')
-rw-r--r--gtk/capture_dlg.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/gtk/capture_dlg.c b/gtk/capture_dlg.c
index 56d06f75d7..a3f088cbb3 100644
--- a/gtk/capture_dlg.c
+++ b/gtk/capture_dlg.c
@@ -280,17 +280,20 @@ set_link_type_list(GtkWidget *linktype_om, GtkWidget *entry)
g_string_append(ip_str, ", ");
ip_addr = (if_addr_t *)curr_ip->data;
- switch (ip_addr->family) {
+ switch (ip_addr->type) {
- case FAM_IPv4:
+ case AT_IPv4:
g_string_append(ip_str,
ip_to_str((guint8 *)&ip_addr->ip_addr.ip4_addr));
break;
- case FAM_IPv6:
+ case AT_IPv6:
g_string_append(ip_str,
ip6_to_str((struct e_in6_addr *)&ip_addr->ip_addr.ip6_addr));
break;
+
+ default:
+ g_assert_not_reached();
}
}