Lines Matching refs:bgp
30 * complete BGP support.
39 "@(#) $Header: /tcpdump/master/tcpdump/print-bgp.c,v 1.91.2.12 2007/07/14 22:26:35 guy Exp $";
51 #include "bgp.h"
55 struct bgp {
142 #define BGPTYPE_DPA 11 /* draft-ietf-idr-bgp-dpa */
147 #define BGPTYPE_EXTD_COMMUNITIES 16 /* draft-ietf-idr-bgp-ext-communities */
266 { 3, "Bad BGP Identifier"},
308 /* labeled BGP RFC3107 */
343 /* Extended community type - draft-ietf-idr-bgp-ext-communities-05 */
351 /* rfc2547 bgp-mpls-vpns */
354 #define BGP_EXT_COM_VPN_ORIGIN 0x0005 /* OSPF Domain ID / VPN of Origin - draft-rosen-vpns-ospf-bgp-mpls */
408 /* OSPF codes for BGP_EXT_COM_OSPF_RTYPE draft-rosen-vpns-ospf-bgp-mpls */
466 stacked labels in a a single BGP message
1735 printf("[|BGP]");
1741 struct bgp bgp;
1749 memcpy(&bgp, dat, BGP_SIZE);
1848 printf("[|BGP]");
1924 printf("[|BGP]");
1961 printf("[|BGP]");
1967 struct bgp bgp;
1971 memcpy(&bgp, dat, BGP_SIZE);
1973 tok2strbuf(bgp_msg_values, "Unknown", bgp.bgp_type,
1975 bgp.bgp_type,
1978 switch (bgp.bgp_type) {
1994 /* we have no decoder for the BGP message */
1996 printf("\n\t no Message %u decoder",bgp.bgp_type);
2002 printf("[|BGP]");
2016 struct bgp bgp;
2024 printf(": BGP, length: %u",length);
2046 /* found BGP header */
2048 memcpy(&bgp, p, BGP_SIZE);
2051 printf(" [|BGP]");
2053 hlen = ntohs(bgp.bgp_len);
2055 printf("\n[|BGP Bogus header length %u < %u]", hlen,
2066 printf("\n[|BGP %s]",
2069 bgp.bgp_type,
2078 printf(" [|BGP]");