diff options
author | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2005-03-04 22:32:06 +0000 |
---|---|---|
committer | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2005-03-04 22:32:06 +0000 |
commit | 413deb9130d495549e142147148d8d573e2ec043 (patch) | |
tree | 24360bd323c70842969701d281e5ceb78c866559 /epan/dissectors/packet-mpls.h | |
parent | 91a8ef6b5f74333032bd41d8093271c0c2009900 (diff) |
from Carlos Pignataro
update MPLS to support MPLS Echo
svn path=/trunk/; revision=13590
Diffstat (limited to 'epan/dissectors/packet-mpls.h')
-rw-r--r-- | epan/dissectors/packet-mpls.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/epan/dissectors/packet-mpls.h b/epan/dissectors/packet-mpls.h new file mode 100644 index 0000000000..48b8b36e31 --- /dev/null +++ b/epan/dissectors/packet-mpls.h @@ -0,0 +1,45 @@ +/* packet-mpls.h + * Declarations of exported routines from MPLS dissector + * Author: Carlos Pignataro <cpignata@cisco.com> + * Copyright 2005, cisco Systems, Inc. + * + * $Id$ + * + * Ethereal - Network traffic analyzer + * By Gerald Combs <gerald@ethereal.com> + * Copyright 1998 Gerald Combs + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + +#ifndef __PACKET_MPLS_H_ +#define __PACKET_MPLS_H__ + +/* Special labels in MPLS */ +enum { + LABEL_IP4_EXPLICIT_NULL = 0, + LABEL_ROUTER_ALERT, + LABEL_IP6_EXPLICIT_NULL, + LABEL_IMPLICIT_NULL, + + LABEL_MAX_RESERVED = 15 +}; + +extern const value_string special_labels[]; +extern void decode_mpls_label(tvbuff_t *tvb, int offset, + guint32 *label, guint8 *exp, + guint8 *bos, guint8 *ttl); + +#endif |