The interior encapsulation of data within an MPLS packet is signalled by
out-of-band protocols. So there's no way to determine what the packet is. It
could be another MPLS label, IPv4, IPv6, Ethernet, ATM, Frame Relay - just
about anything. It is MultiProtocol Label Switching, after all.
I don't know how you can do a packet-by-packet decision :-(
-Ashok
On Thu, 8 Nov 2001 08:11:36 +1100, Hamish Moffatt <hamish@xxxxxxxxxxxx> wrote:
> On Wed, Nov 07, 2001 at 10:46:10AM -0800, Guy Harris wrote:
> > > Right. I dont believe that you can determine the next encap type
> > > after the MPLS header just by looking at the MPLS header. So what
> > > is the right way in ethereal to let the user choose the next
> > > decoder in the chain?
> >
> > That would be done with a preferences item for MPLS.
>
> However, you could have a mix of protocols within a capture file.
> A menu item could provide a default, but I think some decision
> on a packet-by-packet basis is needed. My patch (to detect IPv6)
> is not an ideal solution but is an improvement over just
> assuming IPv4.
>
>
> Hamish
> --
> Hamish Moffatt VK3SB <hamish@xxxxxxxxxx> <hamish@xxxxxxxxxxxx>
>
> _______________________________________________
> Ethereal-dev mailing list
> Ethereal-dev@xxxxxxxxxxxx
> http://www.ethereal.com/mailman/listinfo/ethereal-dev
--- Asok the Intern ----------------------------------------
Ashok Narayanan
IOS Network Protocols, Cisco Systems
250 Apollo Drive, Chelmsford, MA 01824
Ph: 978-244-8387. Fax: 978-244-8126 (Attn: Ashok Narayanan)