*
* $Id$
*
- * Ethereal - Network traffic analyzer
- * By Gerald Combs <gerald@ethereal.com>
+ * Wireshark - Network traffic analyzer
+ * By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* This program is free software; you can redistribute it and/or
#include <string.h>
#include "epan/packet_info.h"
#include <epan/dissectors/packet-smb-sidsnooping.h>
-#include "register.h"
#include <epan/tap.h>
#include <epan/stat_cmd_args.h>
#include "epan/value_string.h"
return 1;
}
-static void
+static void
enum_sids(gpointer key _U_, gpointer value, gpointer userdata _U_)
{
sid_name *sn=(sid_name *)value;
if(!sid_name_snooping){
fprintf(stderr,"The -z smb,sids function needs SMB/SID-Snooping to be enabled.\n");
- fprintf(stderr,"Either enable Edit/Preferences/Protocols/SMB/Snoop SID name mappings in ethereal\n");
+ fprintf(stderr,"Either enable Edit/Preferences/Protocols/SMB/Snoop SID name mappings in wireshark\n");
fprintf(stderr,"or override the preference file by specifying\n");
fprintf(stderr," -o \"smb.sid_name_snooping=TRUE\"\n");
- fprintf(stderr,"on the tethereal command line.\n");
+ fprintf(stderr,"on the tshark command line.\n");
exit(1);
}
- error_string=register_tap_listener("smb", NULL, NULL, NULL, smbsids_packet, smbsids_draw);
+ error_string=register_tap_listener("smb", NULL, NULL, 0, NULL, smbsids_packet, smbsids_draw);
if(error_string){
- fprintf(stderr, "tethereal: Couldn't register smb,sids tap:%s\n",
+ fprintf(stderr, "tshark: Couldn't register smb,sids tap:%s\n",
error_string->str);
g_string_free(error_string, TRUE);
exit(1);