]> The Tcpdump Group git mirrors - tcpdump/commitdiff
expose bgp_vpn_rd_print() to the outside world
authorhannes <hannes>
Sat, 12 Jun 2004 08:17:50 +0000 (08:17 +0000)
committerhannes <hannes>
Sat, 12 Jun 2004 08:17:50 +0000 (08:17 +0000)
bgp.h [new file with mode: 0755]
print-bgp.c

diff --git a/bgp.h b/bgp.h
new file mode 100755 (executable)
index 0000000..94258ab
--- /dev/null
+++ b/bgp.h
@@ -0,0 +1,17 @@
+/* @(#) $Header: /tcpdump/master/tcpdump/bgp.h,v 1.1 2004-06-12 08:17:51 hannes Exp $ (LBL) */
+/* 
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that: (1) source code
+ * distributions retain the above copyright notice and this paragraph
+ * in its entirety, and (2) distributions including binary code include
+ * the above copyright notice and this paragraph in its entirety in
+ * the documentation or other materials provided with the distribution.
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND
+ * WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT
+ * LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE.
+ *
+ * Original code by Hannes Gredler ([email protected])
+ */
+
+extern char *bgp_vpn_rd_print (const u_char *);
index 4cfc39bff81521c39d9e58ba37d122f0bf46ec85..44ffab7e59b39b27385be366bf62fb447fef8166 100644 (file)
@@ -36,7 +36,7 @@
 
 #ifndef lint
 static const char rcsid[] _U_ =
-     "@(#) $Header: /tcpdump/master/tcpdump/print-bgp.c,v 1.84 2004-05-27 21:20:50 guy Exp $";
+     "@(#) $Header: /tcpdump/master/tcpdump/print-bgp.c,v 1.85 2004-06-12 08:17:50 hannes Exp $";
 #endif
 
 #include <tcpdump-stdinc.h>
@@ -48,6 +48,7 @@ static const char rcsid[] _U_ =
 #include "decode_prefix.h"
 #include "addrtoname.h"
 #include "extract.h"
+#include "bgp.h"
 
 struct bgp {
        u_int8_t bgp_marker[16];
@@ -531,7 +532,7 @@ trunc:
 /* RDs and RTs share the same semantics
  * we use bgp_vpn_rd_print for
  * printing route targets inside a NLRI */
-static char *
+char *
 bgp_vpn_rd_print (const u_char *pptr) {
 
    /* allocate space for the largest possible string */