aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-openflow_v6.c
AgeCommit message (Collapse)AuthorFilesLines
2022-12-01openflow_v6: Prevent infinite loops in too short ofp_statsJohn Thacker1-1/+7
The ofp_stats struct length field includes the fixed 4 bytes. If the length is smaller than that, report the length error and break out. In particular, a value of zero can cause infinite loops if this isn't done.
2022-02-15Tools: Fix fix-encoding-args.pl ASCII string validationJoão Valverde1-8/+8
Do not require a useless ENC_NA parameter for string encodings. FT_STRING and FT_STRINGZ types don't have any ndianness. Follow-up to 6ec429622c9258eefd388caf21ce92ab5b9f54b4.
2022-01-13openflow_v6: add one more sanity check.Dario Lombardo1-0/+10
Ref: #17847.
2021-10-04to_str: pull scope arg up into tvb_ether_to_strEvan Huus1-1/+1
There are a bunch of near-identical macros here, but I'm gonna change one at a time or else the builder times out at the number of files changed in one merge.
2021-07-21First pass pinfo->pool conversionEvan Huus1-1/+1
Automated find/replace of wmem_packet_scope() with pinfo->pool in all files where it didn't cause a build failure. I also tweaked a few of the docs which got caught up.
2021-06-16wsutil: add a header that defines some "round to power of 2" macros.Guy Harris1-3/+4
Add macros to round to multiples of 2, 4, 8, 16, and 32. Use them instead of independently defined macros. (We don't define a general "round to a power of 2" macro to avoid the risk of somebody passing something other than a power of 2 to it.)
2020-10-23Openflow: fix some item lengthsMartin Mathieson1-3/+3
2020-09-24More dissector spelling fixes.Martin Mathieson1-1/+1
2020-04-27openflow_v6: OFPMP_FLOW_DESC multipart req rep has an array of ofp_flow_desc.Lichen Liu1-1/+2
Change-Id: I0b957d3f5fec22135cd46fd70b6214d421894cb2 Reviewed-on: https://code.wireshark.org/review/36913 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2020-03-25fix typo found by lintian (mesage => message)Alexis La Goutte1-1/+1
Change-Id: I51654f51b2affd2363966900be4d57824d1c9385 Reviewed-on: https://code.wireshark.org/review/36563 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-07-26HTTPS (almost) everywhere.Guy Harris1-1/+1
Change all wireshark.org URLs to use https. Fix some broken links while we're at it. Change-Id: I161bf8eeca43b8027605acea666032da86f5ea1c Reviewed-on: https://code.wireshark.org/review/34089 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2019-03-18openflow_v6: fix field print.Dario Lombardo1-3/+3
Change-Id: I7b838a16eca298a1e6501a302a85a3411758002a Reviewed-on: https://code.wireshark.org/review/32445 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-20OpenFlow 1.5: implement version specific partsChristophe GUERBER1-479/+1237
B.18.1 Egress Tables (EXT-306): B.18.2 Packet Type aware pipeline (EXT-112) B.18.3 Extensible Flow Entry Statistics (EXT-334) B.18.4 Flow Entry Statistics Trigger (EXT-335) B.18.6 Packet Register pipeline fields (EXT-244) B.18.11 Scheduled Bundles (EXT-340) B.18.12 Controller connection status (EXT-454) B.18.14 Enable setting all pipeline fields in packet-out (EXT-427) B.18.15 Port properties for pipeline fields (EXT-388) B.18.16 Port property for recirculation (EXT-399) B.18.21 Rename some type for consistency (EXT-302) Change-Id: I02d2370f6cf661e400bb8b690213589cd030a541 Reviewed-on: https://code.wireshark.org/review/31566 Reviewed-by: Jaap Keuter <jaap.keuter@xs4all.nl> Petri-Dish: Jaap Keuter <jaap.keuter@xs4all.nl> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-04-15openflow: fix decode of experimenter OXM fieldsJaime Caamaño Ruiz1-10/+6
No longer report decoded experimenter values as undecoded which was causing incorrect offset handling. Change-Id: If902f8c8c5b53b8062e88229d67728bb67557062 Signed-off-by: Jaime Caamaño Ruiz <jcaamano@suse.com> Reviewed-on: https://code.wireshark.org/review/26888 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-02-14OpenFlow 1.5: add extra property length checksPascal Quantin1-10/+85
Bug: 14420 Change-Id: I1813bc6285f950d86dc569f4286bf34c120b5e3c Reviewed-on: https://code.wireshark.org/review/25780 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com> Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
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>
2018-01-24OpenFlow(v5&v6) : Fix RX_PWR/TX_BIASLaszlo Papp1-2/+2
Change-Id: Iae6fe2473d80cb14d5a9676b7efce41dc59a30e2 Reviewed-on: https://code.wireshark.org/review/25454 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-01-24Openflow: Use offset 2 for tx_min/max as they are uint16_tLaszlo Papp1-4/+4
Change-Id: I2f47e0ede2a31cfdadc69ab125a739b3deaa297e Reviewed-on: https://code.wireshark.org/review/25453 Petri-Dish: Graham Bloice <graham.bloice@trihedral.com> Reviewed-by: Anders Broman <a.broman58@gmail.com> Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2018-01-24Fix the display of Length and Pad2 in the openflow dissectorLaszlo Papp1-2/+2
Change-Id: I12194d1449812c43c062c50d319d44d6d7437c51 Reviewed-on: https://code.wireshark.org/review/25451 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com> Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-01-05OpenFlow 1.5: fix port_stats dissectorLaszlo Papp1-65/+377
Change-Id: Id8f078d9f9c327f3e9c2b50daaf23639cad1ae8f Reviewed-on: https://code.wireshark.org/review/25157 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2017-05-19Openflow(v6): enhance display of Port and Port DescriptionAlexis La Goutte1-0/+5
Change-Id: I6252989f5f57d68049da825da194e0443b91ae09 Reviewed-on: https://code.wireshark.org/review/21702 Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
2017-05-19Openflow(v6): Display reserved field for Port Description flagAlexis La Goutte1-0/+30
Change-Id: I2d09e47fe54df7b0e5f89395b93c25d769566f42 Reviewed-on: https://code.wireshark.org/review/21703 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2017-05-15Openflow (v6): use BASE_SPECIAL_VALSAlexis La Goutte1-605/+102
for avoid duplicated hf (like for v5 4b90e93f37cb092472db314ca0df3ce9503e1827) Change-Id: I2f535e2ed06444959d4c1f1c089fec9693a8b96d Reviewed-on: https://code.wireshark.org/review/21670 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
2017-05-14OpenFlow(v6): add Openflow bad action error message valueAlexis La Goutte1-0/+2
Ping-Bug: 13702 Change-Id: I3fa5e9f4d0736d62c922ab3994a0a57afda043a3 Reviewed-on: https://code.wireshark.org/review/21648 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2017-05-14OpenFlow(v6): rename Meter Config to Meter DescAlexis La Goutte1-58/+58
Ping-Bug: 13702 Change-Id: I86ed023bcd4f0f9df79dc5c9bd4cfe566c04c804 Reviewed-on: https://code.wireshark.org/review/21647 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2017-05-14Openflow(v6): Add OFPGC_INSERT_BUCKET/OFPGC_DELETE_BUCKETAlexis La Goutte1-0/+26
and add new field on groupmod with Bucket Ping-Bug: 13702 Change-Id: If5893d49d6cd7a8ab6b46f1fcfce4fbff4153d1f Reviewed-on: https://code.wireshark.org/review/21646 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2017-05-14OpenFlow(v6): Add new OFPXMT typeAlexis La Goutte1-0/+6
Ping-Bug: 13702 Change-Id: If320fe6557a66cafaf95afeead4912f7476a70ad Reviewed-on: https://code.wireshark.org/review/21645 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2017-05-14OpenFlow(v6): Enhance OFPITAlexis La Goutte1-1/+3
OFPIT_METER is now deprecated and there is a new OFPIT_STAT_TRIGGER Ping-Bug: 13702 Change-Id: I76b8ab8a86ee59e443fbeac81c45b982bac1b3a2 Reviewed-on: https://code.wireshark.org/review/21644 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2017-05-14Openflow(v6): Add new OFPAT MeterAlexis La Goutte1-0/+43
no try on real pcap... Ping-Bug: 13702 Change-Id: I828ae5599704c9bc514b8968d1a15c9a446555d6 Reviewed-on: https://code.wireshark.org/review/21643 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2017-05-14Openflow(v6): Add new OFPAT Copy FieldAlexis La Goutte1-0/+69
no try on real pcap... Ping-Bug: 13702 Change-Id: Ia6b048cc8b37bb1697e7378bbcd098a19bff99e3 Reviewed-on: https://code.wireshark.org/review/21642 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2017-05-14Openflow: Add support of openflow 1.5 (v6)Alexis La Goutte1-0/+9917
Copy from dissector 1.4 (v5) Bug: 13702 Change-Id: I2ae5b620e6ff1626c69f8fac6184244399e297de Reviewed-on: https://code.wireshark.org/review/21641 Reviewed-by: Anders Broman <a.broman58@gmail.com>