2 * Copyright (C) 1999 WIDE Project.
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
13 * 3. Neither the name of the project nor the names of its contributors
14 * may be used to endorse or promote products derived from this software
15 * without specific prior written permission.
17 * THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
18 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20 * ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35 static const char rcsid
[] =
36 "@(#) $Header: /tcpdump/master/tcpdump/print-bgp.c,v 1.33 2002-07-04 09:24:43 hannes Exp $";
39 #include <sys/param.h>
41 #include <sys/types.h>
42 #include <sys/socket.h>
44 #include <netinet/in.h>
51 #include "interface.h"
52 #include "addrtoname.h"
56 u_int8_t bgp_marker
[16];
60 #define BGP_SIZE 19 /* unaligned */
64 #define BGP_NOTIFICATION 3
65 #define BGP_KEEPALIVE 4
67 static struct tok bgp_msg_values
[] = {
69 { BGP_UPDATE
, "Update"},
70 { BGP_NOTIFICATION
, "Notification"},
71 { BGP_KEEPALIVE
, "Keepalive"},
76 u_int8_t bgpo_marker
[16];
79 u_int8_t bgpo_version
;
81 u_int16_t bgpo_holdtime
;
84 /* options should follow */
86 #define BGP_OPEN_SIZE 29 /* unaligned */
93 #define BGP_OPT_SIZE 2 /* some compilers may pad to 4 bytes */
95 struct bgp_notification
{
96 u_int8_t bgpn_marker
[16];
101 /* data should follow */
103 #define BGP_NOTIFICATION_SIZE 21 /* unaligned */
112 #define bgp_attr_len(p) \
113 (((p)->bgpa_flags & 0x10) ? \
114 ntohs((p)->bgpa_len.elen) : (p)->bgpa_len.len)
115 #define bgp_attr_off(p) \
116 (((p)->bgpa_flags & 0x10) ? 4 : 3)
119 #define BGPTYPE_ORIGIN 1
120 #define BGPTYPE_AS_PATH 2
121 #define BGPTYPE_NEXT_HOP 3
122 #define BGPTYPE_MULTI_EXIT_DISC 4
123 #define BGPTYPE_LOCAL_PREF 5
124 #define BGPTYPE_ATOMIC_AGGREGATE 6
125 #define BGPTYPE_AGGREGATOR 7
126 #define BGPTYPE_COMMUNITIES 8 /* RFC1997 */
127 #define BGPTYPE_ORIGINATOR_ID 9 /* RFC1998 */
128 #define BGPTYPE_CLUSTER_LIST 10 /* RFC1998 */
129 #define BGPTYPE_DPA 11 /* draft-ietf-idr-bgp-dpa */
130 #define BGPTYPE_ADVERTISERS 12 /* RFC1863 */
131 #define BGPTYPE_RCID_PATH 13 /* RFC1863 */
132 #define BGPTYPE_MP_REACH_NLRI 14 /* RFC2283 */
133 #define BGPTYPE_MP_UNREACH_NLRI 15 /* RFC2283 */
134 #define BGPTYPE_EXTD_COMMUNITIES 16 /* draft-ietf-idr-bgp-ext-communities */
136 static struct tok bgp_attr_values
[] = {
137 { BGPTYPE_ORIGIN
, "Origin"},
138 { BGPTYPE_AS_PATH
, "AS Path"},
139 { BGPTYPE_NEXT_HOP
, "Next Hop"},
140 { BGPTYPE_MULTI_EXIT_DISC
, "Multi Exit Discriminator"},
141 { BGPTYPE_LOCAL_PREF
, "Local Preference"},
142 { BGPTYPE_ATOMIC_AGGREGATE
, "Atomic Aggregate"},
143 { BGPTYPE_AGGREGATOR
, "Aggregator"},
144 { BGPTYPE_COMMUNITIES
, "Community"},
145 { BGPTYPE_ORIGINATOR_ID
, "Originator ID"},
146 { BGPTYPE_CLUSTER_LIST
, "Cluster List"},
147 { BGPTYPE_DPA
, "DPA"},
148 { BGPTYPE_ADVERTISERS
, "Advertisers"},
149 { BGPTYPE_RCID_PATH
, "RCID Path / Cluster ID"},
150 { BGPTYPE_MP_REACH_NLRI
, "Multi-Protocol Reach NLRI"},
151 { BGPTYPE_MP_UNREACH_NLRI
, "Multi-Protocol Unreach NLRI"},
152 { BGPTYPE_EXTD_COMMUNITIES
, "Extended Community"},
153 { 255, "Reserved for development"},
157 static struct tok bgp_opt_values
[] = {
158 { 1, "Authentication Information"},
159 { 2, "Capabilities Advertisement"},
163 #define BGP_NOTIFY_MAJOR_MSG 1
164 #define BGP_NOTIFY_MAJOR_OPEN 2
165 #define BGP_NOTIFY_MAJOR_UPDATE 3
166 #define BGP_NOTIFY_MAJOR_HOLDTIME 4
167 #define BGP_NOTIFY_MAJOR_FSM 5
168 #define BGP_NOTIFY_MAJOR_CEASE 6
170 static struct tok bgp_notify_major_values
[] = {
171 { BGP_NOTIFY_MAJOR_MSG
, "Message Header Error"},
172 { BGP_NOTIFY_MAJOR_OPEN
, "OPEN Message Error"},
173 { BGP_NOTIFY_MAJOR_UPDATE
, "UPDATE Message Error"},
174 { BGP_NOTIFY_MAJOR_HOLDTIME
,"Hold Timer Expired"},
175 { BGP_NOTIFY_MAJOR_FSM
, "Finite State Machine Error"},
176 { BGP_NOTIFY_MAJOR_CEASE
, "Cease"},
180 static struct tok bgp_notify_minor_msg_values
[] = {
181 { 1, "Connection Not Synchronized"},
182 { 2, "Bad Message Length"},
183 { 3, "Bad Message Type"},
187 static struct tok bgp_notify_minor_open_values
[] = {
188 { 1, "Unsupported Version Number"},
190 { 3, "Bad BGP Identifier"},
191 { 4, "Unsupported Optional Parameter"},
192 { 5, "Authentication Failure"},
193 { 6, "Unacceptable Hold Time"},
197 static struct tok bgp_notify_minor_update_values
[] = {
198 { 1, "Malformed Attribute List"},
199 { 2, "Unrecognized Well-known Attribute"},
200 { 3, "Missing Well-known Attribute"},
201 { 4, "Attribute Flags Error"},
202 { 5, "Attribute Length Error"},
203 { 6, "Invalid ORIGIN Attribute"},
204 { 7, "AS Routing Loop"},
205 { 8, "Invalid NEXT_HOP Attribute"},
206 { 9, "Optional Attribute Error"},
207 { 10, "Invalid Network Field"},
208 { 11, "Malformed AS_PATH"},
212 static struct tok bgp_origin_values
[] = {
219 /* Subsequent address family identifier, RFC2283 section 7 */
221 #define SAFNUM_UNICAST 1
222 #define SAFNUM_MULTICAST 2
223 #define SAFNUM_UNIMULTICAST 3
224 /* labeled BGP RFC3107 */
225 #define SAFNUM_LABUNICAST 4
226 /* Section 4.3.4 of draft-rosen-rfc2547bis-03.txt */
227 #define SAFNUM_VPNUNICAST 128
228 #define SAFNUM_VPNMULTICAST 129
229 #define SAFNUM_VPNUNIMULTICAST 130
231 static struct tok bgp_safi_values
[] = {
232 { SAFNUM_RES
, "Reserved"},
233 { SAFNUM_UNICAST
, "Unicast"},
234 { SAFNUM_MULTICAST
, "Multicast"},
235 { SAFNUM_UNIMULTICAST
, "Unicast+Multicast"},
236 { SAFNUM_LABUNICAST
, "labeled Unicast"},
237 { SAFNUM_VPNUNICAST
, "labeled VPN Unicast"},
238 { SAFNUM_VPNMULTICAST
, "labeled VPN Multicast"},
239 { SAFNUM_VPNUNIMULTICAST
, "labeled VPN Unicast+Multicast"},
243 /* well-known community */
244 #define BGP_COMMUNITY_NO_EXPORT 0xffffff01
245 #define BGP_COMMUNITY_NO_ADVERT 0xffffff02
246 #define BGP_COMMUNITY_NO_EXPORT_SUBCONFED 0xffffff03
248 /* RFC1700 address family numbers */
250 #define AFNUM_INET6 2
253 #define AFNUM_BBN1822 5
258 #define AFNUM_X121 10
260 #define AFNUM_ATALK 12
261 #define AFNUM_DECNET 13
262 #define AFNUM_BANYAN 14
263 #define AFNUM_E164NSAP 15
264 /* draft-kompella-ppvpn-l2vpn */
265 #define AFNUM_L2VPN 196 /* still to be approved by IANA */
267 static struct tok bgp_afi_values
[] = {
269 { AFNUM_INET
, "IPv4"},
270 { AFNUM_INET6
, "IPv6"},
271 { AFNUM_NSAP
, "NSAP"},
272 { AFNUM_HDLC
, "HDLC"},
273 { AFNUM_BBN1822
, "BBN 1822"},
275 { AFNUM_E163
, "E.163"},
276 { AFNUM_E164
, "E.164"},
277 { AFNUM_F69
, "F.69"},
278 { AFNUM_X121
, "X.121"},
279 { AFNUM_IPX
, "Novell IPX"},
280 { AFNUM_ATALK
, "Appletalk"},
281 { AFNUM_DECNET
, "Decnet IV"},
282 { AFNUM_BANYAN
, "Banyan Vines"},
283 { AFNUM_E164NSAP
, "E.164 with NSAP subaddress"},
284 { AFNUM_L2VPN
, "Layer-2 VPN"},
289 num_or_str(const char **table
, size_t siz
, int value
)
292 if (value
< 0 || siz
<= value
|| table
[value
] == NULL
) {
293 snprintf(buf
, sizeof(buf
), "#%d", value
);
300 decode_prefix4(const u_char
*pd
, char *buf
, u_int buflen
)
306 if (plen
< 0 || 32 < plen
)
309 memset(&addr
, 0, sizeof(addr
));
310 memcpy(&addr
, &pd
[1], (plen
+ 7) / 8);
312 ((u_char
*)&addr
)[(plen
+ 7) / 8 - 1] &=
313 ((0xff00 >> (plen
% 8)) & 0xff);
315 snprintf(buf
, buflen
, "%s/%d", getname((u_char
*)&addr
), plen
);
316 return 1 + (plen
+ 7) / 8;
320 decode_labeled_prefix4(const u_char
*pd
, char *buf
, u_int buflen
)
325 plen
= pd
[0]; /* get prefix length */
327 /* this is one of the weirdnesses of rfc3107
328 the label length (actually the label + COS bits)
329 is added of the prefix length;
330 we also do only read out just one label -
331 there is no real application for advertisment of
332 stacked labels in a a single BGP message
335 plen
-=24; /* adjust prefixlen - labellength */
337 if (plen
< 0 || 32 < plen
)
340 memset(&addr
, 0, sizeof(addr
));
341 memcpy(&addr
, &pd
[4], (plen
+ 7) / 8);
343 ((u_char
*)&addr
)[(plen
+ 7) / 8 - 1] &=
344 ((0xff00 >> (plen
% 8)) & 0xff);
346 /* the label may get offsetted by 4 bits so lets shift it right */
347 snprintf(buf
, buflen
, "%s/%d label:%u %s",
348 getname((u_char
*)&addr
),
350 EXTRACT_24BITS(pd
+1)>>4,
351 ((pd
[3]&1)==0) ? "(BOGUS: Bottom of Stack NOT set!)" : "(bottom)" );
353 return 4 + (plen
+ 7) / 8;
358 decode_prefix6(const u_char
*pd
, char *buf
, u_int buflen
)
360 struct in6_addr addr
;
364 if (plen
< 0 || 128 < plen
)
367 memset(&addr
, 0, sizeof(addr
));
368 memcpy(&addr
, &pd
[1], (plen
+ 7) / 8);
370 addr
.s6_addr
[(plen
+ 7) / 8 - 1] &=
371 ((0xff00 >> (plen
% 8)) & 0xff);
373 snprintf(buf
, buflen
, "%s/%d", getname6((u_char
*)&addr
), plen
);
374 return 1 + (plen
+ 7) / 8;
379 bgp_attr_print(const struct bgp_attr
*attr
, const u_char
*dat
, int len
)
387 char buf
[MAXHOSTNAMELEN
+ 100];
391 switch (attr
->bgpa_type
) {
394 printf(" invalid len");
396 printf(" %s", tok2str(bgp_origin_values
, "Unknown Origin Typecode", p
[0]));
398 case BGPTYPE_AS_PATH
:
400 printf(" invalid len");
403 while (p
< dat
+ len
) {
405 * under RFC1965, p[0] means:
406 * 1: AS_SET 2: AS_SEQUENCE
407 * 3: AS_CONFED_SET 4: AS_CONFED_SEQUENCE
410 if (p
[0] == 3 || p
[0] == 4)
412 printf("%s", (p
[0] & 1) ? "{" : "");
413 for (i
= 0; i
< p
[1] * 2; i
+= 2) {
414 printf("%s%u", i
== 0 ? "" : " ",
415 EXTRACT_16BITS(&p
[2 + i
]));
417 printf("%s", (p
[0] & 1) ? "}" : "");
421 case BGPTYPE_NEXT_HOP
:
423 printf(" invalid len");
425 printf(" %s", getname(p
));
427 case BGPTYPE_MULTI_EXIT_DISC
:
428 case BGPTYPE_LOCAL_PREF
:
430 printf(" invalid len");
432 printf(" %u", EXTRACT_32BITS(p
));
434 case BGPTYPE_ATOMIC_AGGREGATE
:
436 printf(" invalid len");
438 case BGPTYPE_AGGREGATOR
:
440 printf(" invalid len");
443 printf(" AS #%u, origin %s", EXTRACT_16BITS(p
),
446 case BGPTYPE_COMMUNITIES
:
448 printf(" invalid len");
451 for (i
= 0; i
< len
; i
+= 4) {
453 comm
= EXTRACT_32BITS(&p
[i
]);
455 case BGP_COMMUNITY_NO_EXPORT
:
456 printf(" NO_EXPORT");
458 case BGP_COMMUNITY_NO_ADVERT
:
459 printf(" NO_ADVERTISE");
461 case BGP_COMMUNITY_NO_EXPORT_SUBCONFED
:
462 printf(" NO_EXPORT_SUBCONFED");
465 printf(" (AS #%d value 0x%04x)",
466 (comm
>> 16) & 0xffff, comm
& 0xffff);
471 case BGPTYPE_MP_REACH_NLRI
:
472 af
= EXTRACT_16BITS(p
);
475 printf(" %s vendor specific,",
476 tok2str(bgp_afi_values
, "Unknown AFI", af
));
478 printf(" AFI %s SAFI %s,",
479 tok2str(bgp_afi_values
, "Unknown AFI", af
),
480 tok2str(bgp_safi_values
, "Unknown SAFI", safi
));
484 if (af
== AFNUM_INET
)
487 else if (af
== AFNUM_INET6
)
500 printf(" %s", getname(p
+ 1 + i
));
501 i
+= sizeof(struct in_addr
);
505 printf(" %s", getname6(p
+ 1 + i
));
506 i
+= sizeof(struct in6_addr
);
510 printf(" (unknown af)");
511 i
= tlen
; /*exit loop*/
522 printf(" %u snpa", snpa
);
523 for (/*nothing*/; snpa
> 0; snpa
--) {
524 printf("(%d bytes)", p
[0]);
533 while (len
- (p
- dat
) > 0) {
536 if(safi
==SAFNUM_LABUNICAST
) {
537 advance
= decode_labeled_prefix4(p
, buf
, sizeof(buf
));
539 advance
= decode_prefix4(p
, buf
, sizeof(buf
));
547 advance
= decode_prefix6(p
, buf
, sizeof(buf
));
552 printf(" (unknown af)");
563 case BGPTYPE_MP_UNREACH_NLRI
:
564 af
= EXTRACT_16BITS(p
);
567 printf(" %s vendor specific,",
568 tok2str(bgp_afi_values
, "Unknown AFI", af
));
570 printf(" AFI %s SAFI %s,",
571 tok2str(bgp_afi_values
, "Unknown AFI", af
),
572 tok2str(bgp_safi_values
, "Unknown SAFI", safi
));
577 while (len
- (p
- dat
) > 0) {
580 if(safi
==SAFNUM_LABUNICAST
) {
581 advance
= decode_labeled_prefix4(p
, buf
, sizeof(buf
));
583 advance
= decode_prefix4(p
, buf
, sizeof(buf
));
591 advance
= decode_prefix6(p
, buf
, sizeof(buf
));
596 printf(" (unknown af)");
611 bgp_open_print(const u_char
*dat
, int length
)
613 struct bgp_open bgpo
;
614 struct bgp_opt bgpopt
;
619 TCHECK2(dat
[0], BGP_OPEN_SIZE
);
620 memcpy(&bgpo
, dat
, BGP_OPEN_SIZE
);
621 hlen
= ntohs(bgpo
.bgpo_len
);
623 printf(": Version %d,", bgpo
.bgpo_version
);
624 printf(" AS #%u,", ntohs(bgpo
.bgpo_myas
));
625 printf(" Holdtime %u,", ntohs(bgpo
.bgpo_holdtime
));
626 printf(" ID %s,", getname((u_char
*)&bgpo
.bgpo_id
));
627 printf(" Option length %u", bgpo
.bgpo_optlen
);
630 opt
= &((const struct bgp_open
*)dat
)->bgpo_optlen
;
634 while (i
< bgpo
.bgpo_optlen
) {
635 TCHECK2(opt
[i
], BGP_OPT_SIZE
);
636 memcpy(&bgpopt
, &opt
[i
], BGP_OPT_SIZE
);
637 if (i
+ 2 + bgpopt
.bgpopt_len
> bgpo
.bgpo_optlen
) {
638 printf(" [|opt %d %d]", bgpopt
.bgpopt_len
, bgpopt
.bgpopt_type
);
642 printf(" (option %s, len=%d)",
643 tok2str(bgp_opt_values
,"Unknown", bgpopt
.bgpopt_type
),
645 i
+= BGP_OPT_SIZE
+ bgpopt
.bgpopt_len
;
653 bgp_update_print(const u_char
*dat
, int length
)
656 struct bgp_attr bgpa
;
663 TCHECK2(dat
[0], BGP_SIZE
);
664 memcpy(&bgp
, dat
, BGP_SIZE
);
665 hlen
= ntohs(bgp
.bgp_len
);
666 p
= dat
+ BGP_SIZE
; /*XXX*/
669 /* Unfeasible routes */
670 len
= EXTRACT_16BITS(p
);
673 * Without keeping state from the original NLRI message,
674 * it's not possible to tell if this a v4 or v6 route,
675 * so only try to decode it if we're not v6 enabled.
678 printf(" (Withdrawn routes: %d bytes)", len
);
680 char buf
[MAXHOSTNAMELEN
+ 100];
685 printf(" (Withdrawn routes:");
688 i
+= decode_prefix4(&p
[i
], buf
, sizeof(buf
));
697 len
= EXTRACT_16BITS(p
);
699 /* do something more useful!*/
701 printf(" (Path attributes:"); /* ) */
703 while (i
< 2 + len
) {
706 TCHECK2(p
[i
], sizeof(bgpa
));
707 memcpy(&bgpa
, &p
[i
], sizeof(bgpa
));
708 alen
= bgp_attr_len(&bgpa
);
709 aoff
= bgp_attr_off(&bgpa
);
711 if (vflag
&& newline
)
716 printf("(%s", tok2str(bgp_attr_values
, "Unknown Attribute", bgpa
.bgpa_type
));
717 if (bgpa
.bgpa_flags
) {
719 bgpa
.bgpa_flags
& 0x80 ? "O" : "",
720 bgpa
.bgpa_flags
& 0x40 ? "T" : "",
721 bgpa
.bgpa_flags
& 0x20 ? "P" : "",
722 bgpa
.bgpa_flags
& 0x10 ? "E" : "");
723 if (bgpa
.bgpa_flags
& 0xf)
724 printf("+%x", bgpa
.bgpa_flags
& 0xf);
728 bgp_attr_print(&bgpa
, &p
[i
+ aoff
], alen
);
742 if (len
&& dat
+ length
> p
)
744 if (dat
+ length
> p
) {
745 printf("(NLRI:"); /* ) */
746 while (dat
+ length
> p
) {
747 char buf
[MAXHOSTNAMELEN
+ 100];
748 i
= decode_prefix4(p
, buf
, sizeof(buf
));
764 bgp_notification_print(const u_char
*dat
, int length
)
766 struct bgp_notification bgpn
;
769 TCHECK2(dat
[0], BGP_NOTIFICATION_SIZE
);
770 memcpy(&bgpn
, dat
, BGP_NOTIFICATION_SIZE
);
771 hlen
= ntohs(bgpn
.bgpn_len
);
773 printf(": error %s,", tok2str(bgp_notify_major_values
, "Unknown", bgpn
.bgpn_major
));
775 switch (bgpn
.bgpn_major
) {
777 case BGP_NOTIFY_MAJOR_MSG
:
778 printf(" subcode %s", tok2str(bgp_notify_minor_msg_values
, "Unknown", bgpn
.bgpn_minor
));
780 case BGP_NOTIFY_MAJOR_OPEN
:
781 printf(" subcode %s", tok2str(bgp_notify_minor_open_values
, "Unknown", bgpn
.bgpn_minor
));
783 case BGP_NOTIFY_MAJOR_UPDATE
:
784 printf(" subcode %s", tok2str(bgp_notify_minor_update_values
, "Unknown", bgpn
.bgpn_minor
));
796 bgp_header_print(const u_char
*dat
, int length
)
800 TCHECK2(dat
[0], BGP_SIZE
);
801 memcpy(&bgp
, dat
, BGP_SIZE
);
802 printf("(%s", tok2str(bgp_msg_values
, "Unknown Message Type", bgp
.bgp_type
));
804 switch (bgp
.bgp_type
) {
806 bgp_open_print(dat
, length
);
809 bgp_update_print(dat
, length
);
811 case BGP_NOTIFICATION
:
812 bgp_notification_print(dat
, length
);
824 bgp_print(const u_char
*dat
, int length
)
829 const u_char marker
[] = {
830 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
831 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
838 if (snapend
< dat
+ length
)
846 while (p
< snapend
) {
847 if (!TTEST2(p
[0], 1))
854 if (!TTEST2(p
[0], sizeof(marker
)))
856 if (memcmp(p
, marker
, sizeof(marker
)) != 0) {
861 /* found BGP header */
862 TCHECK2(p
[0], BGP_SIZE
); /*XXX*/
863 memcpy(&bgp
, p
, BGP_SIZE
);
868 hlen
= ntohs(bgp
.bgp_len
);
869 if (vflag
&& newline
)
873 if (TTEST2(p
[0], hlen
)) {
874 bgp_header_print(p
, hlen
);
879 printf("[|BGP %s]", tok2str(bgp_msg_values
, "Unknown Message Type",bgp
.bgp_type
));