ipnet2h.c,v

来自「关于IP协议方面的」· C,V 代码 · 共 45 行

C,V
45
字号
head	1.1;access;symbols;locks	dls:1.1; strict;comment	@ * @;1.1date	97.09.21.19.27.09;	author dls;	state Dist;branches;next	;desc@@1.1log@pre-3e code@text@/* ipnet2h.c - ipnet2h */#include <conf.h>#include <kernel.h>#include <network.h>/*------------------------------------------------------------------------ *  ipnet2h - convert an IP packet header from net to host byte order *------------------------------------------------------------------------ */struct ip *ipnet2h(pip)struct	ip	*pip;{	/* NOTE: does not include IP options	*/	pip->ip_len = net2hs(pip->ip_len);	pip->ip_id = net2hs(pip->ip_id);	pip->ip_fragoff = net2hs(pip->ip_fragoff);	return pip;}@

⌨️ 快捷键说明

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