📄 db_new.c,v
字号:
head 1.2;
access;
symbols;
locks
dls:1.2; strict;
comment @ * @;
1.2
date 97.09.21.19.28.38; author dls; state Dist;
branches;
next 1.1;
1.1
date 94.02.26.19.50.44; author dls; state Works;
branches;
next ;
desc
@@
1.2
log
@pre-3e code
@
text
@/* db_new.c - db_new */
#include <conf.h>
#include <kernel.h>
#include <network.h>
#include <ospf.h>
/*------------------------------------------------------------------------
* db_new - create a new topological database entry
*------------------------------------------------------------------------
*/
struct ospf_db *db_new(par, plsa)
struct ospf_ar *par;
struct ospf_lsa *plsa;
{
struct ospf_db *pdb;
pdb = (struct ospf_db *)getbuf(ospf_lspool);
if (pdb == SYSERR)
return 0;
bzero(pdb, sizeof(struct ospf_db));
pdb->db_lsa = *plsa; /* structure copy */
return pdb;
}
@
1.1
log
@Initial revision
@
text
@d18 1
a18 1
pdb = getbuf(ospf_lspool);
@
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -