ospf_in.c,v

来自「TCP-IP红宝书源代码」· C,V 代码 · 共 79 行

C,V
79
字号
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.06.18.20.49;	author dls;	state Works;
branches;
next	1.1;

1.1
date	94.01.18.20.50.51;	author dls;	state Old;
branches;
next	;


desc
@@


1.3
log
@pre-3e code
@
text
@/* ospf_in.c - ospf_in */

#include <conf.h>
#include <kernel.h>
#include <network.h>
#include <ospf.h>

/*------------------------------------------------------------------------
 *  ospf_in - deliver an inbound OSPF packet to the OSPF input process
 *------------------------------------------------------------------------
 */
int ospf_in(pni, pep)
struct	netif	*pni;
struct	ep	*pep;
{
	/* drop instead of blocking on psend */ 

	if (pcount(ospf_iport) >= OSPFQLEN) {
		freebuf(pep);
		return SYSERR;
	}
	psend(ospf_iport, pep);
	return OK;
}
@


1.2
log
@*** empty log message ***
@
text
@a17 1
/* MIB input stats here */
@


1.1
log
@Initial revision
@
text
@a17 1
pdump(pep);
@

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?