Remove a check_col();
Fix a typo; Minor whitespace cleanup. svn path=/trunk/; revision=34971
This commit is contained in:
parent
19e7c7461f
commit
5cb41c00b1
|
@ -8,8 +8,6 @@
|
||||||
* By Gerald Combs <gerald@wireshark.org>
|
* By Gerald Combs <gerald@wireshark.org>
|
||||||
* Copyright 2007 Gerald Combs
|
* Copyright 2007 Gerald Combs
|
||||||
*
|
*
|
||||||
* Copied from README.developer
|
|
||||||
*
|
|
||||||
* Copyright (c) 2006 CACE Technologies, Davis (California)
|
* Copyright (c) 2006 CACE Technologies, Davis (California)
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
|
@ -97,7 +95,7 @@
|
||||||
* } ppi_fieldheader_t;
|
* } ppi_fieldheader_t;
|
||||||
*
|
*
|
||||||
* Anyone looking to add their own PPI dissector would probably do well to imitate the GPS
|
* Anyone looking to add their own PPI dissector would probably do well to imitate the GPS
|
||||||
* ones seperation into a distinct file. Here is a step by step guide:
|
* ones separation into a distinct file. Here is a step by step guide:
|
||||||
* 1) add the number you received to the enum ppi_field_type declaration.
|
* 1) add the number you received to the enum ppi_field_type declaration.
|
||||||
* 2) Add a value string for your number into vs_ppi_field_type
|
* 2) Add a value string for your number into vs_ppi_field_type
|
||||||
* 3) declare a dissector handle by the ppi_gps_handle, and initialize it inside proto_reg_handoff
|
* 3) declare a dissector handle by the ppi_gps_handle, and initialize it inside proto_reg_handoff
|
||||||
|
@ -762,7 +760,6 @@ dissect_ppi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
|
||||||
tot_len = tvb_get_letohs(tvb, offset+2);
|
tot_len = tvb_get_letohs(tvb, offset+2);
|
||||||
dlt = tvb_get_letohl(tvb, offset+4);
|
dlt = tvb_get_letohl(tvb, offset+4);
|
||||||
|
|
||||||
if(check_col(pinfo->cinfo, COL_INFO))
|
|
||||||
col_add_fstr(pinfo->cinfo, COL_INFO, "PPI version %u, %u bytes",
|
col_add_fstr(pinfo->cinfo, COL_INFO, "PPI version %u, %u bytes",
|
||||||
version, tot_len);
|
version, tot_len);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue