ospfnet2h.c,v

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

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


desc
@@


1.2
log
@pre-3e code
@
text
@/* ospfnet2h.c - ospfnet2h */

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

/*------------------------------------------------------------------------
 * ospfnet2h - convert OSPF header from network to host byte order
 *------------------------------------------------------------------------
 */
struct ospf *
ospfnet2h(po)
struct ospf	*po;
{
	/* NOTE: only includes fields in the main header */

	po->ospf_len = net2hs(po->ospf_len);
	po->ospf_cksum = net2hs(po->ospf_cksum);
	po->ospf_authtype = net2hs(po->ospf_authtype);
}
@


1.1
log
@Initial revision
@
text
@@

⌨️ 快捷键说明

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