From 6a33606bd0b861b08d08ca62ccee8dc85640c4fc Mon Sep 17 00:00:00 2001 From: guy Date: Fri, 1 Apr 2005 09:08:27 +0000 Subject: Rename "register_ethereal_tap()" to "register_tap_listener_cmd_arg()" as it's used to register a callback for a tap listener invoked if the specified command line argument is specified to the "-z" flag. Move it, along with routines to: look up a "-z" argument in the table constructed by "register_tap_listener_cmd_arg()" and either save the full argument to "-z" and the corresponding listener if it's found or return a failure indication if it isn't; list the available tap listeners; call the "init" routines for the tap listeners saved in the table above; and have Ethereal and Tethereal use those routines. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13993 f5534014-38df-0310-8fa8-9805f1628bb7 --- tap-bootpstat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tap-bootpstat.c') diff --git a/tap-bootpstat.c b/tap-bootpstat.c index 7f75d85024..8063aa39f1 100644 --- a/tap-bootpstat.c +++ b/tap-bootpstat.c @@ -181,6 +181,6 @@ dhcpstat_init(char *optarg) void register_tap_listener_gtkdhcpstat(void) { - register_ethereal_tap("bootp,stat,", dhcpstat_init); + register_tap_listener_cmd_arg("bootp,stat,", dhcpstat_init); } -- cgit v1.2.3