ackd_timer_hook moded to neighbor.c

This commit is contained in:
Ondrej Filip 2004-06-04 15:45:35 +00:00
parent d03e8ce00b
commit 28de5133ec
3 changed files with 8 additions and 10 deletions

View file

@ -47,13 +47,6 @@ ospf_lsa_delay(struct ospf_neighbor *n,struct ospf_lsa_header *h,
ntohl(h->id), ntohl(h->rt),h->type); ntohl(h->id), ntohl(h->rt),h->type);
} }
void
ackd_timer_hook(timer *t)
{
struct ospf_neighbor *n=t->data;
if(!EMPTY_LIST(n->ackl)) ospf_lsack_delay_tx(n);
}
void void
ospf_lsack_delay_tx(struct ospf_neighbor *n) ospf_lsack_delay_tx(struct ospf_neighbor *n)
{ {

View file

@ -17,7 +17,6 @@ struct lsah_n {
void ospf_lsack_direct_tx(struct ospf_neighbor *n,struct ospf_lsa_header *h); void ospf_lsack_direct_tx(struct ospf_neighbor *n,struct ospf_lsa_header *h);
void ospf_lsack_rx(struct ospf_lsack_packet *ps, struct proto *p, void ospf_lsack_rx(struct ospf_lsack_packet *ps, struct proto *p,
struct ospf_iface *ifa, u16 size); struct ospf_iface *ifa, u16 size);
void ackd_timer_hook(timer *t);
void ospf_lsack_delay_tx(struct ospf_neighbor *n); void ospf_lsack_delay_tx(struct ospf_neighbor *n);
void ospf_lsa_delay(struct ospf_neighbor *n,struct ospf_lsa_header *h, void ospf_lsa_delay(struct ospf_neighbor *n,struct ospf_lsa_header *h,
struct proto *p); struct proto *p);

View file

@ -25,8 +25,7 @@ const char *ospf_inm[]={ "hello received", "neighbor start", "2-way received",
void neighbor_timer_hook(timer *timer); void neighbor_timer_hook(timer *timer);
void rxmt_timer_hook(timer *timer); void rxmt_timer_hook(timer *timer);
void ackd_timer_hook(timer *t);
struct ospf_neighbor * struct ospf_neighbor *
ospf_neighbor_new(struct ospf_iface *ifa) ospf_neighbor_new(struct ospf_iface *ifa)
@ -608,3 +607,10 @@ rxmt_timer_hook(timer *timer)
} }
} }
void
ackd_timer_hook(timer *t)
{
struct ospf_neighbor *n=t->data;
if(!EMPTY_LIST(n->ackl)) ospf_lsack_delay_tx(n);
}