udpnet2h.c,v

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

C,V
42
字号
head	1.1;
access;
symbols;
locks
	dls:1.1; strict;
comment	@ * @;


1.1
date	97.09.21.19.30.32;	author dls;	state Dist;
branches;
next	;


desc
@@


1.1
log
@pre-3e code
@
text
@/* udpnet2h.c - udpnet2h */

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

/*------------------------------------------------------------------------
 *  udpnet2h -  convert UDP header fields from net to host byte order
 *------------------------------------------------------------------------
 */
udpnet2h(pudp)
struct	udp	*pudp;
{
	pudp->u_src = net2hs(pudp->u_src);
	pudp->u_dst = net2hs(pudp->u_dst);
	pudp->u_len = net2hs(pudp->u_len);
}
@

⌨️ 快捷键说明

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