亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? tcp_ip.h

?? 在freescale 的ne64上開發的源代碼
?? H
?? 第 1 頁 / 共 2 頁
字號:
/*
 *Copyright (c) 2000-2002 Viola Systems Ltd.
 *All rights reserved.
 *
 *Redistribution and use in source and binary forms, with or without
 *modification, are permitted provided that the following conditions
 *are met:
 *
 *1. Redistributions of source code must retain the above copyright
 *notice, this list of conditions and the following disclaimer.
 *
 *2. Redistributions in binary form must reproduce the above copyright
 *notice, this list of conditions and the following disclaimer in the
 *documentation and/or other materials provided with the distribution.
 *
 *3. The end-user documentation included with the redistribution, if
 *any, must include the following acknowledgment:
 *	"This product includes software developed by Viola
 *	Systems (http://www.violasystems.com/)."
 *
 *Alternately, this acknowledgment may appear in the software itself,
 *if and wherever such third-party acknowledgments normally appear.
 *
 *4. The names "OpenTCP" and "Viola Systems" must not be used to
 *endorse or promote products derived from this software without prior
 *written permission. For written permission, please contact
 *opentcp@opentcp.org.
 *
 *5. Products derived from this software may not be called "OpenTCP",
 *nor may "OpenTCP" appear in their name, without prior written
 *permission of the Viola Systems Ltd.
 *
 *THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED
 *WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 *MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
 *IN NO EVENT SHALL VIOLA SYSTEMS LTD. OR ITS CONTRIBUTORS BE LIABLE
 *FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 *CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 *SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
 *BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
 *WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
 *OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 *EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 *====================================================================
 *
 *OpenTCP is the unified open source TCP/IP stack available on a series
 *of 8/16-bit microcontrollers, please see <http://www.opentcp.org>.
 *
 *For more information on how to network-enable your devices, or how to
 *obtain commercial technical support for OpenTCP, please see
 *<http://www.violasystems.com/>.
 */

/** \file tcp_ip.h
 *	\brief OpenTCP ARP interface file
 *	\author
 *		\li Jari Lahti (jari.lahti@violasystems.com)
 *	\version 1.0
 *	\date 1.2.2002
 *
 *	OpenTCP TCP and UDP protocol function declarations, constants, etc.
 */

#ifndef INCLUDE_TCP_IP_H
#define INCLUDE_TCP_IP_H

#include "datatypes.h"
#include "ethernet.h"
#include "ip.h"

#define TCP_WANTED1 
#define UDP_WANTED 


#ifdef TCP_WANTED
#define TELNET_WANTED1 
#define POP3_WANTED1
#define SMTP_WANTED1
#define HTTP_WANTED1
#endif

#ifdef UDP_WANTED
#define BOOTP_WANTED1
#define DHCPC_WANTED1
#define DNS_WANTED1
#define TFTP_WANTED1
#endif

/* User define			*/

/** \def NO_OF_TCPSOCKETS
 *	\ingroup opentcp_config
 *	\brief Defines number of TCP sockets available
 *
 *	Change this number to change maximum number of TCP sockets available
 *	to the application.
 *
 */
#define NO_OF_TCPSOCKETS	8

/** \def NO_OF_UDPSOCKETS
 *	\ingroup opentcp_config
 *	\brief Defines number of UDP sockets available
 *
 *	Change this number to change maximum number of UDP sockets available
 *	to the application.
 *
 */
#define NO_OF_UDPSOCKETS	4

/** \def TCP_PORTS_END
 *	\ingroup opentcp_config
 *	\brief Define reserved-ports space
 *
 *	TCP socket numbers will only be assigned to be lower than this
 *	number.
 */
#define TCP_PORTS_END		1023

/** \def UDP_PORTS_END
 *	\ingroup opentcp_config
 *	\brief Define reserved-ports space
 *
 *	UDP socket numbers will only be assigned to be lower than this
 *	number.
 */
#define UDP_PORTS_END			1023

/* UDP Control optios			*/

/** \def UDP_OPT_NONE
 *	\brief Disable checksum calculation for UDP socket
 *
 *	By choosing only this option for UDP socket, checksum calculation
 *	will be disabled for both incoming/outgoing UDP packets. This will
 *	make UDP extremely fast, but also more prone to errors. This is usually
 *	not a big limitation considering that checksum is not so good in
 *	error-detection anyway.
 */
#define UDP_OPT_NONE		0

/** \def UDP_OPT_SEND_CS
 *	\brief Enable checksum calculation for outgoing UDP packets
 *
 *	When only this option is chosen, checksum is calculated for outgoing
 *	UDP packets. This is sometimes neccessary since certain applications
 *	can disable reception of UDP packets without a calculated checksum.
 *
 */
#define UDP_OPT_SEND_CS		1

/** \def UDP_OPT_CHECK_CS
 *	\brief Enable checksum checking for received UDP packets
 *
 *	When this option is enabled, checksum is checked for all received
 *	UDP packets to check for transmission errors.
 */
#define UDP_OPT_CHECK_CS	2

#define UDP_SEND_MTU		ETH_MTU - ETH_HEADER_LEN - UDP_HLEN - IP_MAX_HLEN

#define UDP_HLEN			8				/**< UDP Header Length			*/

#define	MIN_TCP_HLEN		20
#define	MAX_TCP_OPTLEN		40
#define TCP_DEF_MTU			512				/* Default MTU for TCP			*/

/** \def TCP_DEF_RETRIES
 *	\ingroup opentcp_config
 *	\brief Number of attempted TCP retransmissions before giving up
 *
 *	This number defines how many times will TCP module try to retransmit
 *	the data before recognizing that connection was broken. Increase this
 *	value for high-latency, low-throughput networks with substantial packet
 *	loss.
 *
 */
#define	TCP_DEF_RETRIES		7

/** \def TCP_CON_ATTEMTPS
 *	\ingroup opentcp_config
 *	\brief Number of connection-establishment attempts
 *
 *	This number defines how many times will TCP module try to connect
 *	to the desired host.
 */
#define TCP_CON_ATTEMPTS	7

/** \def TCP_DEF_KEEPALIVE
 *	\ingroup opentcp_config
 *	\brief Defines a number of  seconds after which an empty ACK packet is sent
 *
 *	If for TCP_DEF_KEEPALIVE seconds nothing is received/sent over the
 *	TCP connection (this includes received empty TCP packets) an empty
 *	(keep-alive) TCP packet will be sent to check if the other side is
 *	still replying (and able to reply).
 */
#define	TCP_DEF_KEEPALIVE	4

/** \def TCP_DEF_RETRY_TOUT
 *	\ingroup opentcp_config
 *	\brief Default data-retransmission period (in seconds)
 *
 *	If data was not acknowledged during the time-frame defined by this
 *	value (in seconds) retransmission procedure will occur.
 */
#define TCP_DEF_RETRY_TOUT	4

/** \def TCP_INIT_RETRY_TOUT
 *	\ingroup opentcp_config
 *	\brief Initial retransmission period (in seconds)
 *
 *	Initial retransmission is made a little faster, which helps with
 *	connection establishment if ARP cache didn't contain remote IP address.
 */
#define TCP_INIT_RETRY_TOUT	1

/** \def TCP_SYN_RETRY_TOUT
 *	\ingroup opentcp_config
 *	\brief Retranmission period for SYN packet
 *
 *	Controls SYN packet (segment) retransmit period.
 */
#define TCP_SYN_RETRY_TOUT	2

/** \def TCP_TOS_NORMAL
 *	\brief Defines normal type of service for TCP socket
 *
 *	This defines normal (and for now the only one implemented) type of
 *	service for the TCP socket.
 */
#define TCP_TOS_NORMAL		0

/** \def TCP_DEF_TOUT
 *	\ingroup opentcp_config
 *	\brief Default idle timeout
 *
 *	This period defines idle timeout in seconds - this feature allows
 *	TCP/IP stack to close the TCP connection if no data has been exchanged
 *	over it during this period of time. This relates ONLY to data. Empty
 *	keep-alive TCP packets are not included.
 */
#define TCP_DEF_TOUT		120

#define TCP_HALF_SEQ_SPACE	0x0000FFFF		/* For detecting sequence space	*/


/* ICMP message types */

#define ICMP_TYPE_DEST_UNREACHABLE	3
#define ICMP_ECHO_REQUEST	8
#define ICMP_ECHO_REPLY		0
#define ICMP_CODE_FRAGMENTATION_NEEDED_DF_SET	4
#define ICMP_MTUMSG_LEN	16
#define ICMP_ECHOREQ_HLEN	8
#define ICMP_TEMPIPSET_DATALEN	102


/* UDP States					*/

/** \def UDP_STATE_FREE
 *	\brief Defines that UDP socket is free and available
 *
 *	If an entry of ucb type has this as a state value, then it is free
 *	and can be allocated by the udp_getsocket().
 */
#define UDP_STATE_FREE			1

/** \def UDP_STATE_CLOSED
 *	\brief Defines that UDP socket is allocated but closed
 *
 *	Entries of ucb type that have this as their state value were
 *	allocated by udp_getsocket() but they are in the closed state,
 *	so no data can be received/sent through the socket.
 */
#define UDP_STATE_CLOSED		2

/** \def UDP_STATE_OPENED
 *	\brief Defines that UDP socket is allocated and opened
 *
 *	Corresponding UDP socket was allocated and opened so data
 *	can be transmitted/received through it.
 */
#define UDP_STATE_OPENED		3

/* UDP Events					*/

/** \def UDP_EVENT_DATA
 *	\brief Only UDP event notified to UDP socket event listener
 *
 *	For now, this is the only UDP event that is notified to the
 *	UDP sockets' event listener.
 */
#define UDP_EVENT_DATA			64


/* TCP FLAGS					*/

#define	TCP_FLAG_ACK			0x10
#define TCP_FLAG_PUSH			0x08
#define TCP_FLAG_RESET			0x04
#define TCP_FLAG_SYN			0x02
#define TCP_FLAG_FIN			0x01

/* TCP Internal flags			*/

#define TCP_INTFLAGS_CLOSEPENDING	0x01

/* TCP socket types				*/
/** \def TCP_TYPE_NONE
 *	\brief TCP socket is nor a client nor a server
 *
 *	If TCP socket entry is of this type it can not be used for anything.
 *	This may only be used for testing, debugging, etc. purposes or if
 *	application is not sure what it wants to be it can reserve a TCP
 *	socket by getting a socket of type TCP_TYPE_NONE.
 */
#define	TCP_TYPE_NONE			0x00

/** \def TCP_TYPE_SERVER
 *	\brief TCP socket represents a server application
 *
 *	If TCP socket entry is of server type, application using it can only
 *	listen on a given socket for incoming connections. No connections
 *	can be opened towards some outside host unless the outside host
 *	initiates the connection.
 */
#define	TCP_TYPE_SERVER			0x01

/** \def TCP_TYPE_CLIENT
 *	\brief TCP socket represents a client application
 *
 *	If TCP socket entry is of client type, application using it can
 *	establish connection through it towards other Internet hosts but
 *	can not accept any incoming connections on the port (execute
 *	tcp_listen() on it that is).
 */
#define	TCP_TYPE_CLIENT			0x02

/** \def TCP_TYPE_CLIENT_SERVER
 *	\brief	TCP socket can act as client or as server
 *
 *	If TCP socket entry is of this type, application using it can
 *	both listen on a given socket or establish connection towards an
 *	outside host.
 */
#define	TCP_TYPE_CLIENT_SERVER	0x03

/* TCP States. For more detailed descriptions see RFC793		*/

#define	TCP_STATE_FREE			1	/**< Entry is free and unused 				*/
#define	TCP_STATE_RESERVED		2	/**< Entry is reserved for use				*/
#define	TCP_STATE_CLOSED		3	/**< Entry allocated, socket still closed	*/
#define TCP_STATE_LISTENING		4	/**< Socket in listening state,
									 *	 waiting for incoming connections
									 */
#define TCP_STATE_SYN_RECEIVED	5	/**< SYN packet received (either first

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品99久久久久久久女警| 91美女片黄在线观看91美女| 懂色av中文字幕一区二区三区| 色综合久久久久综合| 欧美一区二区在线播放| 国产精品丝袜久久久久久app| 丝袜亚洲另类欧美| 99v久久综合狠狠综合久久| 日韩欧美视频一区| 婷婷国产在线综合| 亚洲色欲色欲www| 精品一区二区三区在线观看| 欧美日韩国产综合草草| 国产精品美女久久久久久2018| 久久精品72免费观看| 欧美在线观看视频一区二区三区| 成人高清免费在线播放| 欧美成人a∨高清免费观看| 亚洲一区二区视频在线观看| 91小视频免费观看| 久久精品视频一区| 久久精品国产一区二区| 91精品国产高清一区二区三区| 亚洲三级理论片| 成人av网站大全| 久久九九久久九九| 国产一区二区三区在线观看免费视频 | 欧美日韩情趣电影| 国产精品看片你懂得| 国产老女人精品毛片久久| 日韩片之四级片| 免费成人av在线| 欧美精选在线播放| 午夜久久福利影院| 欧美天堂一区二区三区| 亚洲国产欧美在线| 欧美四级电影网| 欧美一卡二卡在线| 奇米亚洲午夜久久精品| 日韩免费看网站| 国产一区二区在线视频| 欧美精品一区二区三区视频| 狠狠网亚洲精品| 久久久噜噜噜久久人人看| 激情六月婷婷综合| 欧美激情一二三区| 色综合咪咪久久| 欧美日韩国产小视频| 天天色综合天天| 91精品国产91久久久久久一区二区 | 亚洲国产精品av| 一区二区三区鲁丝不卡| 欧美色涩在线第一页| 婷婷激情综合网| 久久久久久久综合色一本| 国产精品18久久久久久久网站| 中文字幕乱码一区二区免费| 99久久免费国产| 亚洲二区在线观看| 日韩精品一区二区三区四区| 国产成人午夜99999| 亚洲人被黑人高潮完整版| 免费观看91视频大全| 久久嫩草精品久久久精品| 99亚偷拍自图区亚洲| 亚洲一卡二卡三卡四卡 | 久久aⅴ国产欧美74aaa| 国产日韩欧美精品综合| 欧美亚洲国产一区二区三区| 久久精品国产精品亚洲红杏 | 国产精品综合网| 亚洲欧美日韩电影| 日韩欧美色电影| 91亚洲精品乱码久久久久久蜜桃| 日韩成人免费电影| 国产精品免费网站在线观看| 欧美久久一区二区| 成人精品免费视频| 日本亚洲免费观看| 综合分类小说区另类春色亚洲小说欧美| 欧美精品亚洲二区| 91在线观看地址| 国产日韩精品一区二区浪潮av| 欧美日韩中文字幕一区| 国产精品66部| 美女一区二区三区| 亚洲精品欧美二区三区中文字幕| 欧美mv日韩mv亚洲| 91久久一区二区| av中文字幕不卡| 国产一区在线不卡| 日本不卡在线视频| 一区二区三区四区国产精品| 国产三级精品在线| 欧美成人在线直播| 欧美日韩高清一区二区不卡 | 91麻豆精品国产91久久久久久| 国产成人免费在线观看| 男女性色大片免费观看一区二区 | 免费一区二区视频| 亚洲成人av一区| 一区二区三区在线视频观看| 国产精品久久久久桃色tv| 久久色.com| 亚洲精品一区二区精华| 日韩一区二区三区在线观看| 欧美精品在线观看播放| 欧美午夜一区二区三区| 在线观看日产精品| 日本韩国欧美在线| 99国产精品99久久久久久| 国产不卡在线一区| 国产麻豆一精品一av一免费 | 久久久久九九视频| 久久婷婷色综合| 日韩欧美成人午夜| 日韩欧美一级二级| 精品国产网站在线观看| 国产成人亚洲综合a∨婷婷图片| 激情综合网天天干| 国产精品主播直播| 成人午夜短视频| 波多野结衣中文一区| 亚洲男人的天堂在线aⅴ视频| 亚洲欧美综合在线精品| 日韩码欧中文字| 亚洲精品免费在线观看| 亚洲午夜在线观看视频在线| 亚洲国产成人av好男人在线观看| 亚洲狠狠爱一区二区三区| 丝袜亚洲精品中文字幕一区| 精品无人码麻豆乱码1区2区 | 午夜精品久久久久久久99水蜜桃 | 欧美日本国产视频| 欧美电影在线免费观看| 91精品国产高清一区二区三区蜜臀| 制服丝袜国产精品| www成人在线观看| 中文幕一区二区三区久久蜜桃| 亚洲人成在线观看一区二区| 亚洲国产你懂的| 久久国产视频网| 1区2区3区欧美| 午夜精品免费在线| 精品无人区卡一卡二卡三乱码免费卡 | 91在线国产福利| 欧美日本乱大交xxxxx| 亚洲精品一区在线观看| 国产精品狼人久久影院观看方式| 亚洲一区二区三区小说| 激情综合网av| 在线欧美一区二区| 日韩精品一区二区三区视频| 中文字幕制服丝袜一区二区三区 | 蜜桃视频在线一区| www.亚洲色图| 日韩三级视频中文字幕| 亚洲丝袜另类动漫二区| 青青草国产精品97视觉盛宴| 北条麻妃国产九九精品视频| 欧美一区三区四区| 中文字幕在线不卡一区二区三区| 日本色综合中文字幕| 成人激情黄色小说| 欧美成人福利视频| 亚洲国产成人高清精品| 成人a级免费电影| 日韩欧美国产系列| 亚洲一区二区四区蜜桃| 福利一区福利二区| 欧美肥妇毛茸茸| 亚洲欧美另类久久久精品| 久久爱www久久做| 欧美午夜精品一区二区三区| 亚洲国产精品成人久久综合一区| 日韩av网站免费在线| 91片黄在线观看| 久久久天堂av| 免费成人结看片| 欧美狂野另类xxxxoooo| 伊人夜夜躁av伊人久久| 成人av在线播放网址| 国产日韩综合av| 韩国av一区二区三区四区| 欧美日韩欧美一区二区| 亚洲自拍偷拍麻豆| 99精品欧美一区二区三区小说| 久久久综合精品| 久久er99热精品一区二区| 欧美一个色资源| 亚洲国产一区二区视频| 99re这里都是精品| 中文字幕av不卡| 成人永久看片免费视频天堂| 日韩精品电影在线观看| 久久精品国产亚洲a| 欧美日韩中文字幕一区| 亚洲乱码中文字幕| 成人国产免费视频| 日韩毛片在线免费观看|