Hello,
Please find attached a patch file containing a changes to allow for displaying ethernet over
mpls frames, as defined by draft-martini-l2circuit-encap-mpls.
Note that this is not a complete fix/update. There is no way to identify the type of frame
without additional information from previous LDP traces or from the user. With this update, the
type decode for the tunneled frame is selected based of if the first 8 bits are 4 or 6,
(meaning it might be an ipv4 or ipv6 frame). If not, it might be a EoMPLS frame. This is pretty
much guess work, as the frame with 4 in the first 8 bits might well be a EoMPLS frame.
--
Aamer Akhter / aa@xxxxxxxxx
NSITE - cisco Systems
? my.patc
? ldp.cap
? .tnatr:fnmap
Index: packet-mpls.c
===================================================================
RCS file: /cvsroot/ethereal/packet-mpls.c,v
retrieving revision 1.25
diff -r1.25 packet-mpls.c
111a112
> static dissector_handle_t eth_handle;
187c188,190
< call_dissector(ipv6_handle, next_tvb, pinfo, tree);
---
> call_dissector(ipv6_handle, next_tvb, pinfo, tree);
> } else if (ipvers == 4 ){
> call_dissector(ipv4_handle, next_tvb, pinfo, tree);
189c192
< call_dissector(ipv4_handle, next_tvb, pinfo, tree);
---
> call_dissector(eth_handle, next_tvb,pinfo, tree);
215a219
> eth_handle = find_dissector("eth");