2005-04-15 Paul Jakma <paul@dishone.st>
* Makefile.am: memtypes.awk is gawk dependent, use the GAWK automake
var.
* memtypes.h: New file, auto-generated, checked in for convenience.
diff --git a/lib/ChangeLog b/lib/ChangeLog
index 6f27b8d..c50a364 100644
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -13,6 +13,8 @@
* Makefile.am: Add memtypes.{c,h}, add BUILT_SOURCES for memtypes.h
Add a rule to build memtypes.h using memtypes.awk.
Add memtypes.awk to EXTRA_DIST.
+ memtypes.awk is gawk dependent, use the GAWK automake var.
+ * memtypes.h: New file, auto-generated, checked in for convenience.
2005-04-11 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
diff --git a/lib/Makefile.am b/lib/Makefile.am
index 93442c8..3913eb6 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -30,4 +30,4 @@
EXTRA_DIST = regex.c regex-gnu.h memtypes.awk
memtypes.h: memtypes.c memtypes.awk
- ($(AWK) -f memtypes.awk memtypes.c > memtypes.h)
+ ($(GAWK) -f memtypes.awk memtypes.c > memtypes.h)
diff --git a/lib/memtypes.h b/lib/memtypes.h
new file mode 100644
index 0000000..2d843c5
--- /dev/null
+++ b/lib/memtypes.h
@@ -0,0 +1,189 @@
+/* Auto-generated from memtypes.c by gawk. */
+/* Do not edit! */
+
+#ifndef _QUAGGA_MEMTYPES_H
+#define _QUAGGA_MEMTYPES_H
+
+enum
+{
+ MTYPE_TMP = 1,
+ MTYPE_STRVEC,
+ MTYPE_VECTOR,
+ MTYPE_VECTOR_INDEX,
+ MTYPE_LINK_LIST,
+ MTYPE_LINK_NODE,
+ MTYPE_THREAD,
+ MTYPE_THREAD_MASTER,
+ MTYPE_THREAD_STATS,
+ MTYPE_THREAD_FUNCNAME,
+ MTYPE_VTY,
+ MTYPE_VTY_OUT_BUF,
+ MTYPE_VTY_HIST,
+ MTYPE_IF,
+ MTYPE_CONNECTED,
+ MTYPE_BUFFER,
+ MTYPE_BUFFER_DATA,
+ MTYP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YPE_OSPF_LSDB,
+ MTYPE_OSPF_PACKET,
+ MTYPE_OSPF_FIFO,
+ MTYPE_OSPF_VERTEX,
+ MTYPE_OSPF_NEXTHOP,
+ MTYPE_OSPF_PATH,
+ MTYPE_OSPF_VL_DATA,
+ MTYPE_OSPF_CRYPT_KEY,
+ MTYPE_OSPF_EXTERNAL_INFO,
+ MTYPE_OSPF_DISTANCE,
+ MTYPE_OSPF_IF_INFO,
+ MTYPE_OSPF_IF_PARAMS,
+ MTYPE_OSPF_MESSAGE,
+ MTYPE_OSPF6_TOP,
+ MTYPE_OSPF6_AREA,
+ MTYPE_OSPF6_IF,
+ MTYPE_OSPF6_NEIGHBOR,
+ MTYPE_OSPF6_ROUTE,
+ MTYPE_OSPF6_PREFIX,
+ MTYPE_OSPF6_MESSAGE,
+ MTYPE_OSPF6_LSA,
+ MTYPE_OSPF6_LSA_SUMMARY,
+ MTYPE_OSPF6_LSDB,
+ MTYPE_OSPF6_VERTEX,
+ MTYPE_OSPF6_SPFTREE,
+ MTYPE_OSPF6_NEXTHOP,
+ MTYPE_OSPF6_EXTERNAL_INFO,
+ MTYPE_OSPF6_OTHER,
+ MTYPE_ISIS,
+ MTYPE_ISIS_TMP,
+ MTYPE_ISIS_CIRCUIT,
+ MTYPE_ISIS_LSP,
+ MTYPE_ISIS_ADJACENCY,
+ MTYPE_ISIS_AREA,
+ MTYPE_ISIS_AREA_ADDR,
+ MTYPE_ISIS_TLV,
+ MTYPE_ISIS_DYNHN,
+ MTYPE_ISIS_SPFTREE,
+ MTYPE_ISIS_VERTEX,
+ MTYPE_ISIS_ROUTE_INFO,
+ MTYPE_ISIS_NEXTHOP,
+ MTYPE_ISIS_NEXTHOP6,
+ MTYPE_VTYSH_CONFIG,
+ MTYPE_VTYSH_CONFIG_LINE,
+ MTYPE_MAX,
+};
+
+extern struct memory_list memory_list_lib[];
+extern struct memory_list memory_list_zebra[];
+extern struct memory_list memory_list_bgp[];
+extern struct memory_list memory_list_rip[];
+extern struct memory_list memory_list_ripng[];
+extern struct memory_list memory_list_ospf[];
+extern struct memory_list memory_list_ospf6[];
+extern struct memory_list memory_list_isis[];
+extern struct memory_list memory_list_vtysh[];
+
+#endif /* _QUAGGA_MEMTYPES_H */
+