Ethereal-users: [Ethereal-users] Updated code for FRoATM.

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

From: "Ivanov Anton" <anthony_johnson@xxxxxxx>
Date: Wed, 23 Mar 2005 21:08:56 +0300
Hi.
Here updated code of epan\dissectors\packet-atm.c for support FRoATM:
 
***********************************************************************************************************************
--- packet-atm_old.c    2005-03-10 18:53:42.000000000 +0300
+++ packet-atm_new.c    2005-03-23 11:53:06.000000000 +0300
@@ -66,6 +66,7 @@
 static dissector_handle_t lane_handle;
 static dissector_handle_t ilmi_handle;
 static dissector_handle_t data_handle;
+static dissector_handle_t fr_handle;
 
 /*
  * See
@@ -1083,6 +1084,10 @@
       call_dissector(ilmi_handle, next_tvb, pinfo, tree);
       break;
 
+    case TRAF_FR:
+      call_dissector(fr_handle, next_tvb, pinfo, tree);
+      break;
+
     default:
       if (tree) {
         /* Dump it as raw data. */
@@ -1657,6 +1662,7 @@
        lane_handle = find_dissector("lane");
        ilmi_handle = find_dissector("ilmi");
        data_handle = find_dissector("data");
+       fr_handle = find_dissector("fr");
 
        atm_handle = create_dissector_handle(dissect_atm, proto_atm);
        dissector_add("wtap_encap", WTAP_ENCAP_ATM_PDUS, atm_handle);
***********************************************************************************************************************
 
Anton.