summaryrefslogtreecommitdiffstats
path: root/lib/symtab.h
diff options
context:
space:
mode:
authorChris Hall <GMCH@hestia.halldom.com>2010-01-04 15:09:29 +0000
committerChris Hall <GMCH@hestia.halldom.com>2010-01-04 15:09:29 +0000
commit6746ef8cd683a5e0afa57a5fc90a28f533be68be (patch)
treed7608f3253abe75208db6c789752dd91840e1fcc /lib/symtab.h
parent152acaa5615afcb6d5a06aaed74d2fdd4b5a1233 (diff)
downloadquagga-6746ef8cd683a5e0afa57a5fc90a28f533be68be.tar.bz2
quagga-6746ef8cd683a5e0afa57a5fc90a28f533be68be.tar.xz
Initial commit for bgp_engine branch -- seeding new files...
On branch bgp_engine modified: .gitignore modified: bgpd/Makefile.am new file: bgpd/bgp.h new file: bgpd/bgp_common.c new file: bgpd/bgp_common.h new file: bgpd/bgp_connection.c new file: bgpd/bgp_connection.h modified: bgpd/bgp_debug.c new file: bgpd/bgp_engine.c new file: bgpd/bgp_engine.h modified: bgpd/bgp_fsm.c modified: bgpd/bgp_fsm.h modified: bgpd/bgp_network.c modified: bgpd/bgp_network.h new file: bgpd/bgp_notification.c new file: bgpd/bgp_notification.h modified: bgpd/bgp_open.c new file: bgpd/bgp_open_state.c new file: bgpd/bgp_open_state.h modified: bgpd/bgp_packet.c new file: bgpd/bgp_peer.c new file: bgpd/bgp_peer.h modified: bgpd/bgp_route.c new file: bgpd/bgp_session.c new file: bgpd/bgp_session.h modified: bgpd/bgp_vty.c modified: bgpd/bgp_zebra.c modified: bgpd/bgpd.c modified: bgpd/bgpd.h modified: lib/Makefile.am modified: lib/memtypes.c modified: lib/mqueue.c modified: lib/mqueue.h new file: lib/qafi_safi.h modified: lib/qpselect.c modified: lib/qpselect.h modified: lib/qpthreads.c modified: lib/qpthreads.h modified: lib/sockopt.c modified: lib/sockunion.c modified: lib/sockunion.h modified: lib/stream.c modified: lib/stream.h modified: lib/symtab.h modified: lib/zebra.h
Diffstat (limited to 'lib/symtab.h')
-rw-r--r--lib/symtab.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/lib/symtab.h b/lib/symtab.h
index 7b4e002c..a8a6e622 100644
--- a/lib/symtab.h
+++ b/lib/symtab.h
@@ -23,6 +23,8 @@
#define _ZEBRA_SYMTAB_H
#include "vector.h"
+#include <stddef.h>
+#include <stdint.h>
/* Macro in case there are particular compiler issues. */
#ifndef Inline
@@ -94,9 +96,9 @@ struct symbol
symbol_ref ref_list ; /* list of symbol_ref references */
unsigned ref_count ; /* count of simple references */
- u_int32_t hash ; /* used in lookup and when extending bases. */
+ uint32_t hash ; /* used in lookup and when extending bases. */
- u_int16_t name_len ; /* see: symbol_get_name_len(sym) */
+ uint16_t name_len ; /* see: symbol_get_name_len(sym) */
char name[] ; /* see: symbol_get_name(sym) */
} ;
@@ -127,10 +129,10 @@ struct symbol_ref
/* Result of a hash function for a symbol name. */
struct symbol_hash
{
- u_int32_t hash ; /* the hash value ! */
- const void* name ; /* symbol name as byte vector */
- u_int16_t name_len ; /* length in chars for comparison purposes */
- u_int16_t name_copy_len ; /* number of chars to copy to store name. */
+ uint32_t hash ; /* the hash value ! */
+ const void* name ; /* symbol name as byte vector */
+ uint16_t name_len ; /* length in chars for comparison purposes */
+ uint16_t name_copy_len ; /* number of chars to copy to store name. */
} ;
/* Symbol Walk Iterator */
@@ -265,7 +267,7 @@ sym_ref_name(symbol_ref ref)
{
return symbol_get_name(sym_ref_symbol(ref)) ;
}
-Inline u_int16_t
+Inline uint16_t
sym_ref_name_len(symbol_ref ref)
{
return symbol_get_name_len(sym_ref_symbol(ref)) ;