Update the sample dissector handoff registration routine to match the
current calling sequence for "dissector_add()". svn path=/trunk/; revision=4309
This commit is contained in:
parent
bced8711f6
commit
d304535254
|
@ -1,4 +1,4 @@
|
|||
$Id: README.developer,v 1.41 2001/11/27 07:21:55 guy Exp $
|
||||
$Id: README.developer,v 1.42 2001/12/03 04:12:53 guy Exp $
|
||||
|
||||
This file is a HOWTO for Ethereal developers. It describes how to start coding
|
||||
a Ethereal protocol dissector and the use some of the important functions and
|
||||
|
@ -85,7 +85,7 @@ code inside
|
|||
|
||||
is needed only if you are using the "snprintf()" function.
|
||||
|
||||
The "$Id: README.developer,v 1.41 2001/11/27 07:21:55 guy Exp $"
|
||||
The "$Id: README.developer,v 1.42 2001/12/03 04:12:53 guy Exp $"
|
||||
in the comment will be updated by CVS when the file is
|
||||
checked in; it will allow the RCS "ident" command to report which
|
||||
version of the file is currently checked out.
|
||||
|
@ -95,7 +95,7 @@ version of the file is currently checked out.
|
|||
* Routines for PROTONAME dissection
|
||||
* Copyright 2000, YOUR_NAME <YOUR_EMAIL_ADDRESS>
|
||||
*
|
||||
* $Id: README.developer,v 1.41 2001/11/27 07:21:55 guy Exp $
|
||||
* $Id: README.developer,v 1.42 2001/12/03 04:12:53 guy Exp $
|
||||
*
|
||||
* Ethereal - Network traffic analyzer
|
||||
* By Gerald Combs <gerald@ethereal.com>
|
||||
|
@ -268,8 +268,11 @@ proto_register_PROTOABBREV(void)
|
|||
void
|
||||
proto_reg_handoff_PROTOABBREV(void)
|
||||
{
|
||||
dissector_add("PARENT_SUBFIELD", ID_VALUE, dissect_PROTOABBREV,
|
||||
dissector_handle_t PROTOABBREV_handle;
|
||||
|
||||
PROTOABBREV_handle = create_dissector_handle(dissect_PROTOABBREV,
|
||||
proto_PROTOABBREV);
|
||||
dissector_add("PARENT_SUBFIELD", ID_VALUE, PROTOABBREV_handle);
|
||||
}
|
||||
|
||||
------------------------------------Cut here------------------------------------
|
||||
|
|
Loading…
Reference in New Issue