aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-juniper.c
AgeCommit message (Collapse)AuthorFilesLines
2014-12-23Deleting unnecessary #includes from dissectors.Martin Mathieson1-2/+0
Third batch (packet-icmpv6.c -> packet-mac-lte.c). Will look at cleaning up and committing script afterwards. Change-Id: Ib91e36ad200db01c3000605f6a7a21125b96a640 Reviewed-on: https://code.wireshark.org/review/6018 Petri-Dish: Martin Mathieson <martin.r.mathieson@googlemail.com> Reviewed-by: Martin Mathieson <martin.r.mathieson@googlemail.com>
2014-12-21Cleanup use of #includes in non-generated epan/dissector/*.cBill Meier1-1/+0
Specifically: - Set packet.h to be the first wireshark #include after config.h and "system" #includes. packet.h added as an #include in some cases when missing. - Remove some #includes included (directly/indirectly) in packet.h. E.g., glib.h. (Done only for those files including packet.h). - As needed, move "system" #includes to be after config.h and before wireshark #includes. - Rework various #include file specifications for consistency. - Misc. Change-Id: Ifaa1a14b50b69fbad38ea4838a49dfe595c54c95 Reviewed-on: https://code.wireshark.org/review/5923 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Reviewed-by: Bill Meier <wmeier@newsguy.com>
2014-11-09Create a subdissector table for juniper payload protocols.Michael Mann1-162/+81
Change-Id: I60fd9c6c486b9b3b90e32fb9ccce3973569cc2ee Reviewed-on: https://code.wireshark.org/review/5204 Reviewed-by: Michael Mann <mmann78@netscape.net> Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Evan Huus <eapache@gmail.com>
2014-10-04Juniper: Fix Dead Store (Dead assignement/Dead increment) warning found by ClangAlexis La Goutte1-1/+1
Change-Id: I9178a3de683dda661ed68ef6d743036a9f8aa39e Reviewed-on: https://code.wireshark.org/review/4462 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-09-27Eliminate proto_tree_add_text from some dissectors.Michael Mann1-79/+102
Some other related cleanup. Change-Id: I45f54032aa8318858f4ee784945b6f2ed163b6ea Reviewed-on: https://code.wireshark.org/review/4328 Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
2014-08-15Remove unneeded #include <epan/prefs.h>; As needed: Add editor-modelines & ↵Bill Meier1-5/+17
adjust whitespaxcce. Change-Id: I6f79357e0f3906f6ccc5b68eb451b69b68636335 Reviewed-on: https://code.wireshark.org/review/3613 Reviewed-by: Bill Meier <wmeier@newsguy.com>
2014-06-29proto_tree_add_subtree[_format]Michael Mann1-3/+2
Change-Id: Id00f456479415adf0a219af6c9a2108d4b3642d0 Reviewed-on: https://code.wireshark.org/review/2702 Reviewed-by: Michael Mann <mmann78@netscape.net>
2014-03-04Remove all $Id$ from top of fileAlexis La Goutte1-2/+0
(Using sed : sed -i '/^ \* \$Id\$/,+1 d') Fix manually some typo (in export_object_dicom.c and crc16-plain.c) Change-Id: I4c1ae68d1c4afeace8cb195b53c715cf9e1227a8 Reviewed-on: https://code.wireshark.org/review/497 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2013-12-15Fix [-Wmissing-prototypes]Jakub Zawadzki1-0/+3
svn path=/trunk/; revision=54135
2013-09-16Remove a bunch more set-but-no-longer-used variables.Jeff Morriss1-2/+1
svn path=/trunk/; revision=52100
2013-09-16Convert proto_tree_add_uint_format to proto_tree_add_uint_format_value if ↵Michael Mann1-3/+1
hf_ field name is the first part of the formatted string. This was all manual inspection and most cases were either: 1. Case sensitivity differences between hf_ field name and formatted string. 2. Unnecessary whitespace between hf_ field name and colon in formatted string There are cases where the hf_ field name doesn't quite match the proto_tree_add_uint_format, but it's close enough that one of them should be "right", I'm just not sure which is, I just know the string in proto_tree_add_uint_format is the one displayed. svn path=/trunk/; revision=52098
2013-09-12More dissector table name related changes (a continuation of r51904).Chris Maynard1-3/+3
svn path=/trunk/; revision=51982
2013-03-23From Prafulla Harpanhalli via ↵Evan Huus1-0/+34
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8513 Add support for encapsulation 136, Juniper service PIC cookie. svn path=/trunk/; revision=48494
2013-01-31Use '#if 0 ... #endif' rather than /** ... **/ to comment outBill Meier1-2/+2
unused hf[] entries (which I should have done in the first place). svn path=/trunk/; revision=47391
2013-01-26Fix various instances of unused hf[] entries foundBill Meier1-1/+3
by checkhf. svn path=/trunk/; revision=47312
2012-09-20We always HAVE_CONFIG_H so don't bother checking whether we have it or not.Jeff Morriss1-3/+1
svn path=/trunk/; revision=45017
2012-08-10Use val_to_str_const() where appropriate;Bill Meier1-4/+4
Also (for a few files): - create/use some extended value strings; - remove unneeded #include files; - remove unneeded variable initialization; - re-order fcns slightly so prefs_reg_handoff...() at end, etc svn path=/trunk/; revision=44438
2012-06-28Update Free Software Foundation address.Jakub Zawadzki1-1/+1
(COPYING will be updated in next commit) svn path=/trunk/; revision=43536
2012-05-10PPP_OSICP -> PPP_OSINLCPChris Maynard1-1/+1
svn path=/trunk/; revision=42534
2011-10-06Convert 'encoding' parameter of certain proto_tree_add_item() calls in ↵Bill Meier1-1/+1
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 svn path=/trunk/; revision=39288
2011-06-23Add a protocol decode.Anders Broman1-0/+5
svn path=/trunk/; revision=37764
2011-05-10Fix two cases of dead code reported by Coverity as CID 376.Chris Maynard1-20/+6
svn path=/trunk/; revision=37043
2011-03-24Fix a compile warning: unused variableBill Meier1-1/+1
svn path=/trunk/; revision=36320
2011-03-24Don't assign to a proto_item* if the value won't be used: Coverity 942-951Bill Meier1-107/+106
Also: minor Code & Whitespace cleanup. svn path=/trunk/; revision=36317
2010-12-20Rename the routines that handle dissector tables with unsigned integerGuy Harris1-13/+13
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.) svn path=/trunk/; revision=35224
2009-08-16Switch a bunch of dissectors over to using tvb_new_subset_remaining()Kovarththanan Rajaratnam1-4/+4
svn path=/trunk/; revision=29446
2009-08-09Don't guard col_clear with col_checkKovarththanan Rajaratnam1-20/+10
svn path=/trunk/; revision=29344
2009-08-09Don't guard col_set_str (COL_PROTOCOL) with col_checkKovarththanan Rajaratnam1-24/+12
svn path=/trunk/; revision=29340
2009-05-26Misc dissector cleanup:Bill Meier1-621/+621
- Make some fcns & vars static - hf[] blurbs: "" and repeated text --> NULL - Move proto_register & proto_reg_handoff to end of source - packet-catapult-dct2000: simplify proto_reg_handoff - Use consistent indentation svn path=/trunk/; revision=28488
2008-02-07Removed even more "statement not reached" warnings.Stig Bjørlykke1-4/+0
svn path=/trunk/; revision=24286
2007-04-19From Hannes Gredler:Richard van der Hoff1-1/+1
attached a small bugfix that uses the correct bits for determining if the ATM payload is a OAM cell. svn path=/trunk/; revision=21477
2006-08-17From Hannes Gredler:Anders Broman1-0/+34
A patch that adds support for dissection of libpcap DLT_JUNIPER_VP frames. In addition i have fixed also the indent for DLT_JUNIPER_GGSN. svn path=/trunk/; revision=18940
2006-05-21change a whole bunch of ethereal into wiresharkRonnie Sahlberg1-2/+2
svn path=/trunk/; revision=18196
2006-02-09Hannes Gredler:Jörg Mayer1-21/+66
attached a patch that supports filtering for Juniper's meta information prepended before packets (logical encapsulation, ifd index etc.) Me: declare juniper_ext_get_tlv_value static svn path=/trunk/; revision=17226
2006-01-12FromHannes GredlerAnders Broman1-40/+48
-rework the GGSN dissector to proper parse meta extensions -more graceful magic-number detection - for better (JUNOS 6.4) downwards compatability -correct calculate the offset to ATM cookies when there are meta-extensions present svn path=/trunk/; revision=17016
2005-12-19Add support for Juniper GGSN generated pcap files.Luis Ontanon1-4/+43
svn path=/trunk/; revision=16857
2005-12-12Use "guint" instead of "u_int".Gerald Combs1-1/+1
svn path=/trunk/; revision=16766
2005-12-12From Hannes GredlerAnders Broman1-12/+312
-add codepoint to name resolution for Juniper IFMT, IFLE extension TLVs -bugfix: DLT_JUNIPER_PPP, correct the calculate offset for PPP payload -bugfix: DLT_JUNIPER_CHDLC, add CHDLC handler -bugfix: add a more flexible TLV value extraction function which does not bail if the assumed TLV length does not match svn path=/trunk/; revision=16764
2005-09-20From Hannes Gredler:Anders Broman1-11/+211
patch to support 4 additional juniper DLTs. all those are wrappers for exisiting media types augmented with meta-information which gets also displayed using this patch; svn path=/trunk/; revision=15908
2005-09-17Move a pile of protocol-related headers from the top-level sourceGuy Harris1-3/+3
directory to the epan directory. Some of them should perhaps ultimately be moved to epan/dissectors, if they pertain only to stuff exported by a particular dissector. Fix Gerald's e-mail address in files we're moving. svn path=/trunk/; revision=15844
2005-08-12From Hannes GredlerAnders Broman1-46/+236
- add support for Multi-Link Frame-Relay (FRF.15) captures taken on Juniper ML-, LS-, AS- PICs. - rework of the common juniper header dissector: test the extension flag (0x80) which indicates that there are meta-information like interface-index, interface-name etc. present - minor bugfix (LSQ L3-proto masks, direction masks were broken) svn path=/trunk/; revision=15316
2005-07-28Warning fixesJörg Mayer1-1/+1
svn path=/trunk/; revision=15125
2005-07-26From Hannes Gredler:Anders Broman1-65/+286
a patch that adds support for dissecting packets captured on ML-, LS- and AS PICs using Multi-link PPP encapsulation, running JUNOS 7.3 or higher; additional there i did some clean-up in the juniper dissector that makes future addition of JUNIPER_DLTs easier; svn path=/trunk/; revision=15081
2005-05-11From Hannes GredlerRonnie Sahlberg1-67/+118
support for Juniper PPPOE encapsulation svn path=/trunk/; revision=14346
2005-02-01removed MSVC warnings:Ulf Lamping1-2/+2
packet-juniper.c(262) : warning C4761: integral size mismatch in argument; conversion supplied packet-juniper.c(289) : warning C4761: integral size mismatch in argument; conversion supplied svn path=/trunk/; revision=13220
2005-01-29Put the dissection of the payload at the top level.Guy Harris1-32/+46
If the information that we used to guess the payload type is part of the payload, don't make it correspond to the "Payload Type" protocol tree item - it's covered by the dissected payload. If we don't succeed in guessing the protocol type, just dissect the payload as data. svn path=/trunk/; revision=13200
2005-01-20Make some routines static that aren't used outside this module.Guy Harris1-9/+9
Use "guint16" instead of "u_int16_t", "guint8" instead of "u_int8_t", and "guint" instead of "u_int", to handle platforms lacking the latter types. Make "ppp_heuristic_guess()" reeturn a Boolean, as it just returns a "yes or no" answer. svn path=/trunk/; revision=13132
2005-01-20From Hannes Gredler: support for Juniper's DLT_JUNIPER_ATM{1,2} values.Guy Harris1-0/+422
svn path=/trunk/; revision=13130