📄 udp.h
字号:
/** Copyright (c) 1998-2001 by NETsilicon Inc.** This software is copyrighted by and is the sole property of* NETsilicon. All rights, title, ownership, or other interests* in the software remain the property of NETsilicon. This* software may only be used in accordance with the corresponding* license agreement. Any unauthorized use, duplication, transmission,* distribution, or disclosure of this software is expressly forbidden.** This Copyright notice may not be removed or modified without prior* written consent of NETsilicon.** NETsilicon, reserves the right to modify this software* without notice.** NETsilicon* 411 Waverley Oaks Road USA 781.647.1234* Suite 227 http://www.netsilicon.com* Waltham, MA 02452 AmericaSales@netsilicon.com*************************************************************************** $Name: Fusion 6.52 Fusion 6.51 $* $Date: 2001/12/06 10:14:23 $* $Source: M:/psisrc/stack/incl/rcs/udp.h $* $Revision: 1.9 $*************************************************************************** File Description: UDP (User Datagram Protocol) defines***************************************************************************/#ifndef _UDP_#define _UDP_#include "config.h"#include "ccdep.h"typedef u8 UDPH_T;#define UDPH_SPORT 0 /* source port number, 2 bytes */#define UDPH_DPORT (UDPH_SPORT+2) /* destination port number, 2 bytes */#define UDPH_LENGTH (UDPH_DPORT+2) /* bytes in header + data, 2 bytes */#define UDPH_CHECKSUM (UDPH_LENGTH+2) /* optional checksum, 2 bytes */#define SIZEOF_UDPH_T (UDPH_CHECKSUM+2)#define UDP_ROUTE_PORT 520 /* the NIP socket number */#define UDP_PSIZE 1472 /* Max. number of data bytes in a UDP packet */#define UDP_MHR (sizeof(udph_t) + UDP_PSIZE) /* max bytes in a UDP header + data */#define UDP_MIN_FREE 771 /* see page(417) (was 256) */ /* Changed to 771 for Berkeley compatibility*/#endif /*_UDP_*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -