📄 tcpnet2h.c,v
字号:
head 1.2;access;symbols;locks dls:1.2; strict;comment @ * @;1.2date 97.09.21.19.29.52; author dls; state Dist;branches;next 1.1;1.1date 94.01.14.03.51.20; author dls; state v2e1;branches;next ;desc@@1.2log@pre-3e code@text@/* tcpnet2h.c - tcpnet2h */#include <conf.h>#include <kernel.h>#include <network.h>/*------------------------------------------------------------------------ * tcpnet2h - convert TCP header fields from net to host byte order *------------------------------------------------------------------------ */struct tcp *tcpnet2h(ptcp)struct tcp *ptcp;{ /* NOTE: does not include TCP options */ ptcp->tcp_sport = net2hs(ptcp->tcp_sport); ptcp->tcp_dport = net2hs(ptcp->tcp_dport); ptcp->tcp_seq = net2hl(ptcp->tcp_seq); ptcp->tcp_ack = net2hl(ptcp->tcp_ack); ptcp->tcp_window = net2hs(ptcp->tcp_window); ptcp->tcp_urgptr = net2hs(ptcp->tcp_urgptr); return ptcp;}@1.1log@Initial revision@text@@
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -