one packet. To do that we maintain attribute hash in struct
peer. */
static struct bgp_advertise_attr *
-baa_new ()
+baa_new (void)
{
return (struct bgp_advertise_attr *)
XCALLOC (MTYPE_BGP_ADVERTISE_ATTR, sizeof (struct bgp_advertise_attr));
structure. This structure is referred from BGP adjacency
information. */
static struct bgp_advertise *
-bgp_advertise_new ()
+bgp_advertise_new (void)
{
return (struct bgp_advertise *)
XCALLOC (MTYPE_BGP_ADVERTISE, sizeof (struct bgp_advertise));
}
static void
-transit_init ()
+transit_init (void)
{
transit_hash = hash_create (transit_hash_key_make, transit_hash_cmp);
}
/* Allocate a new community list entry. */
static struct community_entry *
-community_entry_new ()
+community_entry_new (void)
{
return XCALLOC (MTYPE_COMMUNITY_LIST_ENTRY, sizeof (struct community_entry));
}
/* Allocate a new community-list. */
static struct community_list *
-community_list_new ()
+community_list_new (void)
{
return XCALLOC (MTYPE_COMMUNITY_LIST, sizeof (struct community_list));
}
/* Return communities hash entry count. */
unsigned long
-community_count ()
+community_count (void)
{
return comhash->count;
}
\f
/* Allocate a new ecommunities. */
struct ecommunity *
-ecommunity_new ()
+ecommunity_new (void)
{
return (struct ecommunity *) XCALLOC (MTYPE_ECOMMUNITY,
sizeof (struct ecommunity));
if (! ecom)
return NULL;
- new = ecommunity_new ();;
+ new = ecommunity_new ();
for (i = 0; i < ecom->size; i++)
{
struct as_list_list str;
/* Hook function which is executed when new access_list is added. */
- void (*add_hook) ();
+ void (*add_hook) (void);
/* Hook function which is executed when access_list is deleted. */
- void (*delete_hook) ();
+ void (*delete_hook) (void);
};
/* Element of AS path filter. */
/* Allocate new AS filter. */
static struct as_filter *
-as_filter_new ()
+as_filter_new (void)
{
return XCALLOC (MTYPE_AS_FILTER, sizeof (struct as_filter));
}
}
static struct as_list *
-as_list_new ()
+as_list_new (void)
{
return XCALLOC (MTYPE_AS_LIST, sizeof (struct as_list));
}
/* Add hook function. */
void
-as_list_add_hook (void (*func) ())
+as_list_add_hook (void (*func) (void))
{
as_list_master.add_hook = func;
}
/* Delete hook function. */
void
-as_list_delete_hook (void (*func) ())
+as_list_delete_hook (void (*func) (void))
{
as_list_master.delete_hook = func;
}
\f
/* Finite State Machine structure */
struct {
- int (*func) ();
+ int (*func) (struct peer *);
int next_state;
} FSM [BGP_STATUS_MAX - 1][BGP_EVENTS_MAX - 1] =
{
}
static struct bgp_nexthop_cache *
-bnc_new ()
+bnc_new (void)
{
return XCALLOC (MTYPE_BGP_NEXTHOP_CACHE, sizeof (struct bgp_nexthop_cache));
}
}
\f
static struct bgp_nexthop_cache *
-zlookup_read ()
+zlookup_read (void)
{
struct stream *s;
uint16_t length;
#ifdef HAVE_IPV6
static struct bgp_nexthop_cache *
-zlookup_read_ipv6 ()
+zlookup_read_ipv6 (void)
{
struct stream *s;
uint16_t length;
}
void
-bgp_scan_init ()
+bgp_scan_init (void)
{
zlookup = zclient_new ();
zlookup->sock = -1;
/* Allocate new bgp info structure. */
static struct bgp_info *
-bgp_info_new ()
+bgp_info_new (void)
{
return XCALLOC (MTYPE_BGP_ROUTE, sizeof (struct bgp_info));
}
\f
/* Delete all kernel routes. */
void
-bgp_cleanup_routes ()
+bgp_cleanup_routes (void)
{
struct bgp *bgp;
struct listnode *node, *nnode;
}
void
-bgp_reset ()
+bgp_reset (void)
{
vty_reset ();
bgp_zclient_reset ();
}
\f
static struct bgp_static *
-bgp_static_new ()
+bgp_static_new (void)
{
return XCALLOC (MTYPE_BGP_STATIC, sizeof (struct bgp_static));
}
};
static struct bgp_aggregate *
-bgp_aggregate_new ()
+bgp_aggregate_new (void)
{
return XCALLOC (MTYPE_BGP_AGGREGATE, sizeof (struct bgp_aggregate));
}
};
static struct bgp_distance *
-bgp_distance_new ()
+bgp_distance_new (void)
{
return XCALLOC (MTYPE_BGP_DISTANCE, sizeof (struct bgp_distance));
}
}
static void
-bgp_distance_reset ()
+bgp_distance_reset (void)
{
struct bgp_node *rn;
struct bgp_distance *bdistance;
/* Allocate routing table structure and install commands. */
void
-bgp_route_init ()
+bgp_route_init (void)
{
/* Init BGP distance table. */
bgp_distance_table = bgp_table_init (AFI_IP, SAFI_UNICAST);
}
void
-bgp_snmp_init ()
+bgp_snmp_init (void)
{
smux_init (bm->master);
REGISTER_MIB("mibII/bgp", bgp_variables, variable, bgp_oid);
}
static struct bgp_node *
-bgp_node_create ()
+bgp_node_create (void)
{
return XCALLOC (MTYPE_BGP_NODE, sizeof (struct bgp_node));
}
/* Peer group cofiguration. */
static struct peer_group *
-peer_group_new ()
+peer_group_new (void)
{
return (struct peer_group *) XCALLOC (MTYPE_PEER_GROUP,
sizeof (struct peer_group));
}
static void
-peer_aslist_update ()
+peer_aslist_update (void)
{
afi_t afi;
safi_t safi;
}
void
-bgp_terminate ()
+bgp_terminate (void)
{
struct bgp *bgp;
struct peer *peer;
/* Interface printing for all interface. */
void
-if_dump_all ()
+if_dump_all (void)
{
struct listnode *node;
void *p;
};
static struct ospf_snmp_if *
-ospf_snmp_if_new ()
+ospf_snmp_if_new (void)
{
return XCALLOC (0, sizeof (struct ospf_snmp_if));
}
}
\f
static struct rtadv_prefix *
-rtadv_prefix_new ()
+rtadv_prefix_new (void)
{
return XCALLOC (MTYPE_RTADV_PREFIX, sizeof (struct rtadv_prefix));
}