Ethereal-dev: [Ethereal-dev] Patch: Netflow v9 MPLS aware

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Olivier Montanuy <montanuy.olivier@xxxxxxxxxx>
Date: Wed, 8 Feb 2006 20:50:25 +0100 (CET)
This is a simple patch to the Netflow v9 dissector, that let it decode
Netflow v9 MPLS-Aware, a feature of Cisco 12000 IOS 12.0.24S and above
on Cisco 12000, 7500 and 7200 that is very useful for MPLS-VPN networks.

This patch only modifies one file  epan/dissector/packet-netflow.c
for the following Netflow v9 types:
  46 = MPLS top label type (LDP, VPN, BGP, etc.)
  47 = MPLS top label adress (IP address of destination PE router)
  48 = Flow sampler ID
  70 to 74 = MPLS labels 1 to 4.

Note: for MPLS labels I used proto_tree_add_text. I tried
proto_tree_add_item with a bitfield for the label, the experimental bits
and the top-of-stack bit but it was a bit too verbose.



Attachment: /home/montanuy/tmp/ethereal/mplsaware.patch
Description: Binary data