From Hannes Gredler: make the IS-IS dissector more verbose in the INFO
[obnox/wireshark/wip.git] / packet-bgp.h
index a549b6a97aa95af3b04995d9ce292820b73d2bfb..872f70c3e4b228bad23d8b68a5656a7727639837 100644 (file)
@@ -1,7 +1,7 @@
 /* packet-bgp.c
  * Definitions for BGP packet disassembly structures and routine
  *
- * $Id: packet-bgp.h,v 1.16 2001/11/03 21:25:12 guy Exp $
+ * $Id: packet-bgp.h,v 1.20 2002/08/28 21:00:08 jmayer Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
  * 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.
@@ -110,15 +110,31 @@ struct bgp_attr {
 #define BGP_CAPABILITY_MULTIPROTOCOL   1   /* RFC2858 */
 #define BGP_CAPABILITY_ROUTE_REFRESH   2   /* RFC2918 */
 #define BGP_CAPABILITY_COOPERATIVE_ROUTE_FILTERING     3       /* draft-ietf-idr-route-filter-04.txt */
+#define BGP_CAPABILITY_ORF_CISCO       0x82    /* Cisco */
 #define BGP_CAPABILITY_ROUTE_REFRESH_CISCO      0x80   /* Cisco */
 
+#define BGP_ORF_PREFIX_CISCO   0x80 /* Cisco */
+#define BGP_ORF_COMM_CISCO     0x81 /* Cisco */
+#define BGP_ORF_EXTCOMM_CISCO  0x82 /* Cisco */
+#define BGP_ORF_ASPATH_CISCO   0x83 /* Cisco */
+#define BGP_ORF_COMM           0x02 /* draft-ietf-idr-route-filter-06.txt */
+#define BGP_ORF_EXTCOMM                0x03 /* draft-ietf-idr-route-filter-06.txt */
+#define BGP_ORF_ASPATH         0x04 /* draft-ietf-idr-aspath-orf-02.txt */
+/* draft-ietf-idr-route-filter-06.txt */
+#define BGP_ORF_ACTION         0xc0
+#define BGP_ORF_ADD            0x00
+#define BGP_ORF_REMOVE         0x40
+#define BGP_ORF_REMOVEALL      0x80
+#define BGP_ORF_MATCH          0x10
+#define BGP_ORF_PERMIT         0x00
+#define BGP_ORF_DENY           0x10
 
 /* well-known communities, from RFC1997 */
 #define BGP_COMM_NO_EXPORT           0xFFFFFF01
 #define BGP_COMM_NO_ADVERTISE        0xFFFFFF02
 #define BGP_COMM_NO_EXPORT_SUBCONFED 0xFFFFFF03
-#define FOURHEX0                     0x0000
-#define FOURHEXF                     0xFFFF
+#define FOURHEX0                     0x00000000
+#define FOURHEXF                     0xFFFF0000
 
 /* attribute types */
 #define BGPTYPE_ORIGIN            1   /* RFC1771          */
@@ -150,6 +166,7 @@ struct bgp_attr {
                                         /* draft-rosen-vpns-ospf-bgp-mpls */
 #define BGP_EXT_COM_OSPF_RTYPE  0X8000  /* OSPF Route Type,Format Area(4B):RouteType(1B):Options(1B) */
 #define BGP_EXT_COM_OSPF_RID    0x8001  /* OSPF Router ID,Format RouterID(4B):Unused(2B) */
+#define BGP_EXT_COM_L2INFO      0x800a  /* draft-kompella-ppvpn-l2vpn */
 
 
 /* OSPF codes for  BGP_EXT_COM_OSPF_RTYPE draft-rosen-vpns-ospf-bgp-mpls  */
@@ -171,7 +188,9 @@ struct bgp_attr {
 #define SAFNUM_MULCAST  2
 #define SAFNUM_UNIMULC  3
 #define SAFNUM_MPLS_LABEL 4     /* rfc3107 */
-#define SAFNUM_LBVPNIP  128     /* Draft-rosen-rfc2547bis-03 */
+#define SAFNUM_LAB_VPNUNICAST  128     /* Draft-rosen-rfc2547bis-03 */
+#define SAFNUM_LAB_VPNMULCAST  129
+#define SAFNUM_LAB_VPNUNIMULC  130
 
 #ifndef offsetof
 #define offsetof(type, member)  ((size_t)(&((type *)0)->member))