udpnet2h.c

来自「关于UDP方面的东西。。看不懂就算了。不适合基础者。」· C语言 代码 · 共 18 行

C
18
字号
/* udpnet2h.c - udpnet2h */#include <conf.h>#include <kernel.h>#include <network.h>/*------------------------------------------------------------------------ *  udpnet2h -  convert UDP header fields from net to host byte order *------------------------------------------------------------------------ */voidudpnet2h(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 + -
显示快捷键?