/* This is used for conditional compilation during development. */

#ifndef __OSPF_VIRTUAL_STACK__ #define __OSPF_VIRTUAL_STACK__ #endif

/* routing socket receive buffer size */ #ifndef OSPF_RAW_RCV_BUFFER #define OSPF_RAW_RCV_BUFFER (64 * 1024) #endif

ospf_constants.h文件

/************************************************************************* *

*

*

*

*

*/

static STATUS ospf_raw_socket_create ()

/****************************************************************************** *

*

*

*

*

*/

static STATUS ospf_routing_socket_create ()

/***************************************************************************** *

*

*

*

*/

/*****************************************************************************

*

*

*

*/

/***************************************************************************** *

*

*

*/

ospf_hello.c 用于发送、接收和处理hello报文

/***************************************************************************************

*

*/

ospf_hello.c文件

This file is used from the timer task to send hello packets and on the receive task when receiving hello packets.