aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-sll.h
AgeCommit message (Collapse)AuthorFilesLines
2024-02-09socketcan: work around libpcap bug, add CAN XL support.Guy Harris1-0/+1
Change the "fd" gboolean in can_info_t to a guint, and give it a value of 2 for CAN XL. That preserves source and binary compatiility, at least in the case where a plugin would never be handed a CAN XL frame. Update code to treat it as such, to make it clearer what that code is doing. Add CAN XL support to the SocketCAN dissector - and to the LINKTYPE_LINUX_SLL detector. Note that the fields in the LINKTYPE_CAN_SOCKETCAN header for CAN XL frames are *little-endian*, as most if not all existing captures were probably done on little-endian machines - libpcap does that so that LINKTYPE_CAN_SOCKETCAN doesn't become one of those annoying link-layer types with *host-endian* (as in "the byte order of the host that last processed this file") fields (which require special processing in pcap/pcapng file readers *and* in rpcap clients). If the CANFD_FDF flag isn't set, treat the frame as CAN FD if it's exactly 72 bytes long; this works around a libpcap 1.10.{2,3,4} bug (which should be fixed in the next libpcap release) that inadvertantly cleared that flag for CAN FD frames.
2022-11-15Add Management Component Transport Protocol (MCTP) dissectorJeremy Kerr1-0/+1
This change adds a protocol dissector for the Management Component Transport Protocol (MCTP). This is a failry simple datagram-based protocol for messaging between components within a single platform, typically over I2C, serial or PCIe. This dissector just implements the header fields, and sequence-number based message reassembly. Inner protocols will be added as follow-up changes. Linux has support for AF_MCTP data, so decode from the MCTP SLL ltype. Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
2018-11-13Move the Linux ARPHRD_ types to epan/arptypes.h.Guy Harris1-10/+0
Change-Id: I6fa9593af64e8af1ade4f049ea949989adfd00c7 Reviewed-on: https://code.wireshark.org/review/30595 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2018-11-13Fix dissection of 802.11+radiotap frames in Linux "cooked" captures.Guy Harris1-2/+11
Those frames *don't* have their link-layer headers stripped, even on PF_PACKET/SOCK_DGRAM captures (hopefully, nobody will consider that a bug and "fix" it). The "hatype" field is the ARPHRD_ value for the adapter, as returned by SIOCGIFHWADDR; in monitor mode, those frames will have an hatype of ARPHRD_IEEE80211_RADIOTAP. Add an "sll.hatype" dissector table, which we check before checking the "sll.ltype" dissector table, and have the radiotap dissector register in that table. We still use the special hack for an hatype of ARPHRD_NETLINK, because, for *those* frames, the "protocol" field of the nominal SLL header is the netlink family, not an Ethertype or anything else that the SLL dissector would handle. Change-Id: If503a7daa9133adf1b8c330ec28c4c824d4f551d Reviewed-on: https://code.wireshark.org/review/30592 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2018-02-12dissectors: use SPDX identifiers.Dario Lombardo1-13/+1
Change-Id: I92c94448e6641716d03158a5f332c8b53709423a Reviewed-on: https://code.wireshark.org/review/25756 Petri-Dish: Dario Lombardo <lomato@gmail.com> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2016-09-10Add Socket CANFD dissector.Michael Mann1-0/+1
Bug: 12687 Change-Id: Ib489b4c6aff1e0611e9b8a086054e56284f24b84 Reviewed-on: https://code.wireshark.org/review/16787 Petri-Dish: Michael Mann <mmann78@netscape.net> Reviewed-by: Michael Mann <mmann78@netscape.net>
2016-01-21Add a link for LINUX_SLL values.AndersBroman1-0/+1
Change-Id: Ic45f88984af01b9705ace944a89f49f705301d21 Reviewed-on: https://code.wireshark.org/review/13467 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2016-01-16[sll] add LINUX_SLL_P_NETLINKMartin Kaiser1-0/+1
remove some unnecessary if(tree) checks while at it Change-Id: I2ed7153a25a96f9fa08476176980655117aae26e Reviewed-on: https://code.wireshark.org/review/13334 Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
2015-12-13Create a way to register "capture" dissectors.Michael Mann1-3/+0
Capture dissectors could be architected like dissection dissectors, with tables and subtables and possibly using tvbs to pass there data instead of raw byte arrays. This is a first step towards that by refactoring capture_info_packet() to work off of a "capture dissector table" Registering the capture dissection functions instead of calling them directly also clears up a bunch of dissector header files who sole purpose was providing the capture dissection function definition. Change-Id: I10e9b79e061f32d2572f009823601d4f048d37aa Reviewed-on: https://code.wireshark.org/review/12581 Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
2015-11-06Add Nokia Intelligent Service Interface (ISI) dissectorTyson Key1-0/+1
From: https://github.com/shr-project/isi-wireshark-plugin/ Bug: 11676 Change-Id: If3f4d7e3e1dd674cb99e96eabdc3491dec76ea3a Reviewed-on: https://code.wireshark.org/review/11580 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-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-03-01Export libwireshark symbols using WS_DLL_PUBLIC defineBalint Reczey1-0/+3
Also remove old WS_VAR_IMPORT define and related Makefile magic everywhere in the project. svn path=/trunk/; revision=47992
2013-02-13From Sascha Herrmann:Jaap Keuter1-0/+1
Patch registering ieee802154 dissector to Linux SLL frames. svn path=/trunk/; revision=47649
2012-06-28Update Free Software Foundation address.Jakub Zawadzki1-1/+1
(COPYING will be updated in next commit) svn path=/trunk/; revision=43536
2010-11-25Fix for bug 5435:Jaap Keuter1-0/+1
Add support for dissecting SLL type 0x17 frames. svn path=/trunk/; revision=35029
2010-11-21Fix for bug 5425:Jaap Keuter1-0/+1
Add support for dissecting SLL type 0x0C frames. svn path=/trunk/; revision=34991
2010-11-20Fix for bug 5422:Jaap Keuter1-0/+1
Add support for dissecting SLL type 0x03 frames. svn path=/trunk/; revision=34987
2010-09-12Decode SLL payloads using a dissector table based on sll.ltype.Balint Reczey1-0/+7
The idea and the original patch came from Sebastian Reichel <elektranox@gmail.com> in http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=594390 svn path=/trunk/; revision=34101
2006-05-21change a whole bunch of ethereal into wiresharkRonnie Sahlberg1-2/+2
svn path=/trunk/; revision=18196
2004-07-18Move dissectors to epan/dissectors directory.Gilbert Ramirez1-0/+29
Also move ncp222.py, x11-fields, process-x11-fields.pl, make-reg-dotc, and make-reg-dotc.py. Adjust #include lines in files that include packet-*.h files. svn path=/trunk/; revision=11410