This was in http://www.tcpdump.org/lists/patches/89 , and also
ftp://ftp.freebsd.org/pub/FreeBSD/CERT/patches/SA-00%3A61/tcpdump-4.x.patch.v1.1
#ifndef lint
static const char rcsid[] =
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /tcpdump/master/tcpdump/print-bgp.c,v 1.17 2000-09-29 04:58:34 guy Exp $";
+ "@(#) $Header: /tcpdump/master/tcpdump/print-bgp.c,v 1.18 2000-11-10 17:52:02 fenner Exp $";
#endif
#include <sys/param.h>
#endif
#include <sys/param.h>
int advance;
int tlen;
const u_char *p;
int advance;
int tlen;
const u_char *p;
+ char buf[MAXHOSTNAMELEN + 100];
if (dat + length > p) {
printf("(NLRI:"); /* ) */
while (dat + length > p) {
if (dat + length > p) {
printf("(NLRI:"); /* ) */
while (dat + length > p) {
+ char buf[MAXHOSTNAMELEN + 100];
i = decode_prefix4(p, buf, sizeof(buf));
printf(" %s", buf);
if (i < 0)
i = decode_prefix4(p, buf, sizeof(buf));
printf(" %s", buf);
if (i < 0)