Commits

Alexis Fasquel authored and Donald Sharp committed dbe99e0c407
bgpd: Update dump to allow Extended Time Format

Allow the bgp dump functionality to handle the Extended Time format as specified in RFC 6396. Fixes a segmentation fault with multiple dump rules as well. Signed-off-by: Alexis Fasquel <alexis@pch.net> Acked-by: Donald Sharp <sharpd@cumulusnetworks.com> Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
No tags

bgpd/bgp_btoa.c

Modified
185 185 type = stream_getw (s);
186 186 subtype = stream_getw (s);
187 187 len = stream_getl (s);
188 188
189 189 printf ("TIME: %s", ctime (&now));
190 190
191 191 /* printf ("TYPE: %d/%d\n", type, subtype); */
192 192
193 193 if (type == MSG_PROTOCOL_BGP4MP)
194 194 printf ("TYPE: BGP4MP");
195 + else if (type == MSG_PROTOCOL_BGP4MP_ET)
196 + printf ("TYPE: BGP4MP_ET");
195 197 else if (type == MSG_TABLE_DUMP)
196 198 printf ("TYPE: MSG_TABLE_DUMP");
197 199 else
198 200 printf ("TYPE: Unknown %d", type);
199 201
200 202 if (type == MSG_TABLE_DUMP)
201 203 switch (subtype)
202 204 {
203 205 case AFI_IP:
204 206 printf ("/AFI_IP\n");

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut