#include "ospfd/ospf_ase.h"
#include "ospfd/ospf_zebra.h"
-\f
+
u_int32_t
get_metric (u_char *metric)
{
return m;
}
-\f
+
struct timeval
tv_adjust (struct timeval a)
{
return delay;
}
-\f
+
int
get_age (struct ospf_lsa *lsa)
{
return age;
}
-\f
+
/* Fletcher Checksum -- Refer to RFC1008. */
/* All the offsets are zero-based. The offsets in the RFC1008 are
}
-\f
+
/* Create OSPF LSA. */
struct ospf_lsa *
ospf_lsa_new ()
XFREE (MTYPE_OSPF_LSA_DATA, lsah);
}
-\f
+
/* LSA general functions. */
const char *
stream_forward_endp (s, OSPF_LSA_HEADER_SIZE);
}
-\f
+
/* router-LSA related functions. */
/* Get router-LSA flags. */
/* Set # of links here. */
stream_putw_at (s, putp, cnt);
}
-\f
+
static int
ospf_stub_router_timer (struct thread *t)
{
OSPF_AREA_TIMER_ON (area->t_stub_router, ospf_stub_router_timer,
area->ospf->stub_router_startup_time);
}
-\f
+
/* Create new router-LSA. */
static struct ospf_lsa *
ospf_router_lsa_new (struct ospf_area *area)
return 0;
}
-\f
+
/* network-LSA related functions. */
/* Originate Network-LSA. */
static void
return new;
}
-\f
+
static void
stream_put_ospf_metric (struct stream *s, u_int32_t metric_value)
{
return new;
}
-\f
+
/* summary-ASBR-LSA related functions. */
static void
ospf_summary_asbr_lsa_body_set (struct stream *s, struct prefix *p,
return new;
}
-\f
+
/* LSA installation functions. */
/* Install router-LSA to an area. */
return new;
}
-\f
+
int
ospf_check_nbr_status (struct ospf *ospf)
{
return 1;
}
-\f
+
static int
ospf_maxage_lsa_remover (struct thread *thread)
return id;
}
-\f
+
#define LSA_ACTION_FLOOD_AREA 1
#define LSA_ACTION_FLUSH_AREA 2
thread_add_event (master, ospf_lsa_action, data, 0);
}
-\f
+
/* LSA Refreshment functions. */
struct ospf_lsa *
ospf_lsa_refresh (struct ospf *ospf, struct ospf_lsa *lsa)