nb_mismatch.c,v
来自「TCP-IP红宝书源代码」· C,V 代码 · 共 88 行
C,V
88 行
head 1.3;
access;
symbols;
locks
dls:1.3; strict;
comment @ * @;
1.3
date 97.09.21.19.28.38; author dls; state Dist;
branches;
next 1.2;
1.2
date 94.02.20.18.59.56; author dls; state Works;
branches;
next 1.1;
1.1
date 94.02.13.19.38.53; author dls; state Works;
branches;
next ;
desc
@@
1.3
log
@pre-3e code
@
text
@/* nb_mismatch.c - nb_mismatch */
#include <conf.h>
#include <kernel.h>
#include <network.h>
#include <ospf.h>
/*------------------------------------------------------------------------
* nb_mismatch - handle sequence # mismatch event
*------------------------------------------------------------------------
*/
int nb_mismatch(pif, pnb)
struct ospf_if *pif;
struct ospf_nb *pnb;
{
struct ep *pep;
pnb->nb_state = NBS_EXSTART;
/* empty lists */
while (pep = (struct ep *)deq(pnb->nb_lsal))
freebuf(pep);
while (pep = (struct ep *)deq(pnb->nb_dsl))
freebuf(pep);
while (pep = (struct ep *)deq(pnb->nb_lsrl))
freebuf(pep);
pnb->nb_seq++;
dd_queue(pif, pnb);
return 0;
}
@
1.2
log
@*** empty log message ***
@
text
@a17 1
kprintf("nb_mismatch\n");
@
1.1
log
@Initial revision
@
text
@d12 2
a13 1
int nb_mismatch(pnb)
d16 2
d19 11
@
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?