Wireshark-dev: Re: [Wireshark-dev] FW: Change in wireshark[master]: transum: plugin code

From: Pascal Quantin <pascal.quantin@xxxxxxxxx>
Date: Sat, 26 Nov 2016 16:39:06 +0100
Hi Paul,

2016-11-26 16:35 GMT+01:00 Paul Offord <Paul.Offord@xxxxxxxxxxxx>:
Hi Alexis et al.,

What are Modelines?  Are they the lines that state how the editor is configured?  Is it OK if I just copy them from an existing source file?

Those are the footer you find in each (or almost each) file indicating the coding rules for the file. You can find an editor here: https://www.wireshark.org/tools/modelines.html
It's not simply about copy/pasting it from another dissector, but also ensure it matches your indentation style.
 

Thanks and regards...Paul

-----Original Message-----
From: Alexis La Goutte (Code Review) [mailto:code-review-do-not-reply@xxxxxxxxxxxxx]
Sent: 26 November 2016 15:27
To: Paul Offord <Paul.Offord@xxxxxxxxxxxx>
Cc: Evan Huus <eapache@xxxxxxxxx>; Petri Dish Buildbot <buildbot-no-reply@wireshark.org>; Anders Broman <a.broman58@xxxxxxxxx>; Jaap Keuter <jaap.keuter@xxxxxxxxx>; Michael Mann <mmann78@xxxxxxxxxxxx>
Subject: Change in wireshark[master]: transum: plugin code

Alexis La Goutte has posted comments on this change.

Change subject: transum: plugin code
......................................................................


Patch Set 7: Petri-Dish+1

(9 comments)

https://code.wireshark.org/review/#/c/17750/7/plugins/transum/decoders.c
File plugins/transum/decoders.c:

Line 304
Add Modelines


https://code.wireshark.org/review/#/c/17750/7/plugins/transum/decoders.h
File plugins/transum/decoders.h:

Line 32
Add Modelines


https://code.wireshark.org/review/#/c/17750/7/plugins/transum/extractors.c
File plugins/transum/extractors.c:

Line 121
Add Modelines


https://code.wireshark.org/review/#/c/17750/7/plugins/transum/extractors.h
File plugins/transum/extractors.h:

Line 34
Add Modelines


https://code.wireshark.org/review/#/c/17750/7/plugins/transum/moduleinfo.h
File plugins/transum/moduleinfo.h:

Line 40
Add Modelines


https://code.wireshark.org/review/#/c/17750/7/plugins/transum/packet-transum.c
File plugins/transum/packet-transum.c:

Line 1409
Add Modelines


https://code.wireshark.org/review/#/c/17750/7/plugins/transum/packet-transum.h
File plugins/transum/packet-transum.h:

Line 26: #define ETH_TYPE_IPV6 0x86dd
May be import value from epan/ipproto ?


Line 186
Add Modelines


https://code.wireshark.org/review/#/c/17750/7/plugins/transum/preferences.h
File plugins/transum/preferences.h:

Line 56
Add Modelines


--
To view, visit https://code.wireshark.org/review/17750
To unsubscribe, visit https://code.wireshark.org/review/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I47d7e5354fc269916851a318fef10b826897eaf8
Gerrit-PatchSet: 7
Gerrit-Project: wireshark
Gerrit-Branch: master
Gerrit-Owner: Paul Offord <paul.offord@xxxxxxxxxxxx>
Gerrit-Reviewer: Alexis La Goutte <alexis.lagoutte@xxxxxxxxx>
Gerrit-Reviewer: Anders Broman <a.broman58@xxxxxxxxx>
Gerrit-Reviewer: Evan Huus <eapache@xxxxxxxxx>
Gerrit-Reviewer: Jaap Keuter <jaap.keuter@xxxxxxxxx>
Gerrit-Reviewer: Michael Mann <mmann78@xxxxxxxxxxxx>
Gerrit-Reviewer: Paul Offord <paul.offord@xxxxxxxxxxxx>
Gerrit-Reviewer: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Gerrit-HasComments: Yes

______________________________________________________________________

This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.

Any views or opinions expressed are solely those of the author and do not necessarily represent those of Advance Seven Ltd. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission.

Advance Seven Ltd. Registered in England & Wales numbered 2373877 at Endeavour House, Coopers End Lane, Stansted, Essex CM24 1SJ

______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx>
Archives:    https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request@wireshark.org?subject=unsubscribe