diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-04-08 02:02:27 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-04-08 02:02:27 +0000 |
commit | 4bd2da9aac85091fde96e5f83a96570e1392486d (patch) | |
tree | 5e7ac34cd98b845920b9f7706d821b48ff7cc52f /packet-pflog.c | |
parent | 12d83302b07c2afc94a33324f4345483cb459a19 (diff) | |
download | wireshark-4bd2da9aac85091fde96e5f83a96570e1392486d.tar.gz wireshark-4bd2da9aac85091fde96e5f83a96570e1392486d.tar.bz2 wireshark-4bd2da9aac85091fde96e5f83a96570e1392486d.zip |
Get rid of an unused variable.
Don't register the PFLOG dissector by name; it's only called through the
"wtap_encap" dissector table.
svn path=/trunk/; revision=5118
Diffstat (limited to 'packet-pflog.c')
-rw-r--r-- | packet-pflog.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/packet-pflog.c b/packet-pflog.c index 47206d9f9d..82c3d52fac 100644 --- a/packet-pflog.c +++ b/packet-pflog.c @@ -1,7 +1,7 @@ /* packet-pflog.c * Routines for pflog (OpenBSD Firewall Logging) packet disassembly * - * $Id: packet-pflog.c,v 1.3 2002/02/05 00:43:59 guy Exp $ + * $Id: packet-pflog.c,v 1.4 2002/04/08 02:02:27 guy Exp $ * * Copyright 2001 Mike Frantzen * All rights reserved. @@ -50,7 +50,7 @@ # define offsetof(type, member) ((size_t)(&((type *)0)->member)) #endif -static dissector_handle_t data_handle, ip_handle, ipv6_handle, pflog_handle; +static dissector_handle_t data_handle, ip_handle, ipv6_handle; /* header fields */ static int proto_pflog = -1; @@ -232,8 +232,6 @@ proto_register_pflog(void) "PFLOG", "pflog"); proto_register_field_array(proto_pflog, hf, array_length(hf)); proto_register_subtree_array(ett, array_length(ett)); - - register_dissector("pflog", dissect_pflog, proto_pflog); } void @@ -241,9 +239,10 @@ proto_reg_handoff_pflog(void) { dissector_handle_t pflog_handle; - pflog_handle = find_dissector("pflog"); ip_handle = find_dissector("ip"); ipv6_handle = find_dissector("ipv6"); data_handle = find_dissector("data"); + + pflog_handle = create_dissector_handle(dissect_pflog, proto_pflog); dissector_add("wtap_encap", WTAP_ENCAP_PFLOG, pflog_handle); } |