aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-prp.c
AgeCommit message (Collapse)AuthorFilesLines
2011-11-14Remove uneeded #includes, forward refs & check_col();wmeier1-3/+2
tvb_reported_length_remaining() can return -1; Localize a variable. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39836 f5534014-38df-0310-8fa8-9805f1628bb7
2011-10-31From Martin Renold via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5730alagoutte1-201/+93
Dissector for HSR and PRP-1 Here is a patch that adds a dissector for HSR and for PRP-1. Both protocols are defined in IEC62439 Part 3. (High-availability Seamless Redundancy / Parallel Redundancy Protocol) The existing PRP dissector has been refactored to support both the old PRP (now called PRP-0) and the new PRP-1. There are three distinct dissectors: - HSR (ethertype 892F) - HSR/PRP supervision (ethertype 88FB) - PRP-0 and PRP-1 (trailer dissector; disabled by default) From me : * Fix Clang Warning * Add modification for CMakeLists.txt git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39692 f5534014-38df-0310-8fa8-9805f1628bb7
2011-10-21For proto_tree_add_item(..., proto_xxx, ...)use ENC_NA as the encoding arg.wmeier1-2/+2
Also: remove trailing whitespace for a number of files. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39503 f5534014-38df-0310-8fa8-9805f1628bb7
2011-10-20Use ENC_NA as proto_tree_add_item() encoding arg for FT_ETHER hf[] field type.wmeier1-4/+4
(Some minor whitespace cleanup). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39488 f5534014-38df-0310-8fa8-9805f1628bb7
2011-10-06Convert 'encoding' parameter of certain proto_tree_add_item() calls in ↵wmeier1-8/+8
non-autogenerated epan/dissectors: Specifically: Replace FALSE|0 and TRUE|1 by ENC_BIG_ENDIAN|ENC_LITTLE_ENDIAN as the encoding parameter for proto_tree_add_item() calls which directly reference an item in hf[] which has a type of: FT_UINT8 FT_UINT16 FT_UINT24 FT_UINT32 FT_UINT64 FT_INT8 FT_INT16 FT_INT24 FT_INT32 FT_INT64 FT_FLOAT FT_DOUBLE git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39288 f5534014-38df-0310-8fa8-9805f1628bb7
2011-01-21From Tobias Klauser:etxrab1-2/+2
Fix standard to IEC62439 Part 3 https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5599 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35605 f5534014-38df-0310-8fa8-9805f1628bb7
2011-01-21Adress => Address corrections (also in comments).sake1-3/+3
(see bug 5600) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35600 f5534014-38df-0310-8fa8-9805f1628bb7
2010-12-20Rename the routines that handle dissector tables with unsigned integerguy1-1/+1
keys to have _uint in their names, to match the routines that handle dissector tables with string keys. (Using _port can confuse people into thinking they're intended solely for use with TCP/UDP/etc. ports when, in fact, they work better for things such as Ethernet types, where the binding of particular values to particular protocols are a lot stronger.) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35224 f5534014-38df-0310-8fa8-9805f1628bb7
2010-10-22From Tobias Klauservia ↵morriss1-2/+2
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5327 : The current PRP dissector in packet-prp.c does not correctly identify VLAN tags. It uses the hard coded value 0x8000 to check the ethertype. The attached patch (against current SVN trunk) changes this to use the ETHERTYPE_VLAN define from epan/etypes.h and also fixes two misspellings in the respective comments. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34622 f5534014-38df-0310-8fa8-9805f1628bb7
2010-04-06#include <string.h> not needed.wmeier1-1/+0
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32410 f5534014-38df-0310-8fa8-9805f1628bb7
2010-04-03Remove unneeded #include <stdio.h>wmeier1-1/+0
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32367 f5534014-38df-0310-8fa8-9805f1628bb7
2009-08-09Don't guard col_set_str (COL_INFO) with col_checkkrj1-2/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29342 f5534014-38df-0310-8fa8-9805f1628bb7
2009-08-09Don't guard col_set_str (COL_PROTOCOL) with col_checkkrj1-2/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29340 f5534014-38df-0310-8fa8-9805f1628bb7
2009-07-07From Kovarththanan Rajaratnam:stig1-4/+4
More FT_XXX cleanup. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28971 f5534014-38df-0310-8fa8-9805f1628bb7
2009-06-18From Kovarththanan Rajaratnam via bug 3548:stig1-12/+12
(1) Trailing/leading spaces are removed from 'name's/'blurb's (2) Duplicate 'blurb's are replaced with NULL (3) Empty ("") 'blurb's are replaced with NULL (4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME, FT_PROTOCOL, FT_STRING and FT_STRINGZ field types (5) Only allow non-zero value for 'display' if 'bitmask' is non-zero git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28770 f5534014-38df-0310-8fa8-9805f1628bb7
2008-09-22Minor cleanup related to proto_reg_handoffwmeier1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26246 f5534014-38df-0310-8fa8-9805f1628bb7
2008-03-04From Sven Meier: update the PRP dissector to the newest version of the ↵morriss1-194/+251
standard. There is also now a Wiki page for this protocol: http://wiki.wireshark.org/PRP git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24554 f5534014-38df-0310-8fa8-9805f1628bb7
2008-02-27Rather than always disabling the protocol at startup, just add a preference ↵morriss1-15/+33
that decides if the dissector should be enabled or not. Still not perfect but it makes it more usable. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24494 f5534014-38df-0310-8fa8-9805f1628bb7
2008-02-27From Sven Meier (on -dev in 6/2007):morriss1-0/+304
This is a dissector for the Parallel Redundancy Protocol (PRP) defined in chapter 6 of the IEC 62439. PRP uses two independent networks in parallel and allows redundancy without switchovers. The protocol is sending Mac multicast messages with Ethertype 0x88fb. In addition to that it adds to every Ethernet frame a 4 byte trailer before the FCS. The trailer is detected by checking a size field and an identifier which are part of the trailer. Therefore, if the last 4 bytes of a frame match a correct trailer they get interpreted as a trailer, although it was probably not a real one. Note: This is a post-dissector which means it gets called for every frame. So as to not cause a performance hit for every Wireshark user (who may not even be looking at Ethernet frames) it currently disables itself every time Wireshark starts up. (There should be a better way to do this--maybe different Profiles (as discussed on -dev recently) is the way to go.) From me: Put ETHERTYPE_PRP (not IANA registered) in etypes.h and packet-ethertype.c git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24493 f5534014-38df-0310-8fa8-9805f1628bb7