diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2005-05-20 22:23:00 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2005-05-20 22:23:00 +0000 |
commit | bfbb46de4336e0eeca804c83ff6917e684195183 (patch) | |
tree | 1e3d36386b804e9f257719567ce94dbbf82d4c47 /gtk/main.c | |
parent | d817ddf51311f9df516f7645d7de1848421caf88 (diff) |
win32 only: get interface details from WinPcap's packet.dll (direct access to NDIS specific driver information, upper second GTK part)
svn path=/trunk/; revision=14407
Diffstat (limited to 'gtk/main.c')
-rw-r--r-- | gtk/main.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/gtk/main.c b/gtk/main.c index 25bb5e524b..21b838de79 100644 --- a/gtk/main.c +++ b/gtk/main.c @@ -97,6 +97,7 @@ #ifdef _WIN32 #include "capture-wpcap.h" +#include "capture_wpcap_packet.h" #endif #if GTK_MAJOR_VERSION < 2 && GTK_MINOR_VERSION < 3 @@ -772,14 +773,14 @@ void expand_tree_cb(GtkWidget *widget _U_, gpointer data _U_) { node = gtk_ctree_find_by_row_data(GTK_CTREE(tree_view), NULL, cfile.finfo_selected); if(node) { /* the mouse position is at an entry, expand that one */ - gtk_ctree_expand_recursive(GTK_CTREE(tree_view), node); + gtk_ctree_expand_recursive(GTK_CTREE(tree_view), node); } #else path = tree_find_by_field_info(GTK_TREE_VIEW(tree_view), cfile.finfo_selected); if(path) { /* the mouse position is at an entry, expand that one */ - gtk_tree_view_expand_row(GTK_TREE_VIEW(tree_view), path, TRUE); - gtk_tree_path_free(path); + gtk_tree_view_expand_row(GTK_TREE_VIEW(tree_view), path, TRUE); + gtk_tree_path_free(path); } #endif } @@ -1876,6 +1877,9 @@ main(int argc, char *argv[]) /* Load wpcap if possible. Do this before collecting the run-time version information */ load_wpcap(); + /* ... and also load the packet.dll from wpcap */ + wpcap_packet_load(); + /* Start windows sockets */ WSAStartup( MAKEWORD( 1, 1 ), &wsaData ); #endif /* _WIN32 */ |