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

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

?? tcp_ip.h

?? 在freescale 的ne64上開發(fā)的源代碼
?? 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一区二区三区免费野_久草精品视频
久久精品免费观看| 激情图区综合网| 色悠悠久久综合| 亚洲欧美一区二区三区国产精品 | 色婷婷久久综合| 亚洲观看高清完整版在线观看| 91麻豆精品在线观看| 亚洲成人动漫一区| ww亚洲ww在线观看国产| 国产剧情av麻豆香蕉精品| 国产精品第一页第二页第三页| 色偷偷成人一区二区三区91| 亚洲成人免费电影| www成人在线观看| thepron国产精品| 午夜精品123| 精品国产一区二区在线观看| 不卡影院免费观看| 亚洲成a人片在线不卡一二三区| 欧美一区二区三区系列电影| 国产精品一二二区| 亚洲一区二区av电影| 日韩欧美在线网站| www.66久久| 久久精品国产秦先生| 中文字幕亚洲在| 日韩欧美国产成人一区二区| gogo大胆日本视频一区| 婷婷六月综合网| 国产精品妹子av| 日韩午夜av电影| gogogo免费视频观看亚洲一| 日本成人超碰在线观看| 国产精品私房写真福利视频| 懂色av一区二区在线播放| 日本精品视频一区二区| 国产精品久久久久影院色老大| 天天影视色香欲综合网老头| 99久久免费精品高清特色大片| 欧美日韩在线播| 18成人在线观看| 成人av资源在线| 国产精品三级电影| 色一区在线观看| 国产v综合v亚洲欧| 日韩午夜精品电影| 欧美在线一二三| 成人免费毛片app| 国内成+人亚洲+欧美+综合在线| 亚洲三级在线免费| 国产三级精品视频| 精品国产凹凸成av人网站| 欧美性大战久久久久久久| 成人福利视频网站| 国产一区二区三区黄视频| 日韩精品亚洲专区| 亚洲国产欧美日韩另类综合| 成人欧美一区二区三区小说 | 欧美日韩成人综合在线一区二区| 成人视屏免费看| 国产精一品亚洲二区在线视频| 日韩影院免费视频| 五月综合激情婷婷六月色窝| 亚洲欧美日韩国产一区二区三区| 日本一区二区久久| 久久久精品天堂| 久久夜色精品一区| 久久综合精品国产一区二区三区| 欧美一级精品大片| 7777精品伊人久久久大香线蕉完整版 | 国产大陆亚洲精品国产| 久久爱www久久做| 伦理电影国产精品| 免费看日韩a级影片| 免费一级欧美片在线观看| 日本在线播放一区二区三区| 日本视频免费一区| 久久99深爱久久99精品| 九九热在线视频观看这里只有精品| 婷婷丁香激情综合| 久久电影网电视剧免费观看| 精品在线播放午夜| 韩国v欧美v日本v亚洲v| 678五月天丁香亚洲综合网| 蜜臀av国产精品久久久久| 精品夜夜嗨av一区二区三区| 蜜桃av一区二区三区| 亚洲蜜臀av乱码久久精品| 久久精品视频在线免费观看| 欧美日韩精品电影| 色视频一区二区| 国产大片一区二区| 国产精品69毛片高清亚洲| 丝袜美腿亚洲色图| 九九在线精品视频| 亚洲一区二区在线观看视频| 国产精品久久久久久久岛一牛影视 | 亚洲一区二区三区美女| 天堂在线亚洲视频| 国产一区二区三区电影在线观看| 国产69精品久久久久毛片| 色综合久久99| 8x8x8国产精品| 国产视频一区二区在线观看| 亚洲欧美视频一区| 视频一区国产视频| 国产成人av在线影院| 91在线视频播放| 日韩一级片网站| 国产精品久久久久婷婷二区次| 一区二区三区视频在线看| 蜜桃精品视频在线观看| 99综合电影在线视频| 欧美人狂配大交3d怪物一区| 国产亚洲综合在线| 亚洲一二三区不卡| 国产成人免费视频网站| 欧美亚洲一区三区| 久久久久久久久岛国免费| 亚洲午夜国产一区99re久久| 国产一区二区三区电影在线观看| 在线亚洲高清视频| 日本一二三四高清不卡| 午夜精品久久久久| 成人18视频在线播放| 欧美一区二区三级| 亚洲精品自拍动漫在线| 久久99精品一区二区三区| 91亚洲国产成人精品一区二区三 | 色综合亚洲欧洲| 精品国产91乱码一区二区三区| 亚洲欧美日韩久久精品| 国产一区不卡在线| 欧美精品v日韩精品v韩国精品v| 国产精品伦一区二区三级视频| 欧美剧情片在线观看| 国产精品色一区二区三区| 欧美午夜不卡视频| 久久婷婷久久一区二区三区| 亚洲v日本v欧美v久久精品| 国产麻豆视频一区二区| 欧美精品 国产精品| 亚洲欧美日韩国产中文在线| 成人精品免费看| 久久天堂av综合合色蜜桃网| 国产一区在线精品| 国产精品久久久久影院亚瑟 | 久久在线观看免费| 亚洲综合男人的天堂| 成人av在线观| 欧美国产精品一区二区| 久久99精品久久久久久国产越南| 欧美视频在线一区| 一区二区三区欧美在线观看| 高清免费成人av| 久久网站最新地址| 美国欧美日韩国产在线播放| 欧美精品成人一区二区三区四区| 一区二区三区精品视频在线| jizz一区二区| 中文字幕一区二区三区在线观看| 国产米奇在线777精品观看| 精品国产91亚洲一区二区三区婷婷 | 国产成人精品免费视频网站| 2023国产精品| 国产呦精品一区二区三区网站| 欧美成人精品二区三区99精品| 日韩经典一区二区| 欧美福利电影网| 蜜桃视频一区二区三区| 日韩欧美一级二级三级久久久| 日韩av网站免费在线| 正在播放一区二区| 久久精品国产久精国产爱| 精品国产乱码久久久久久老虎| 国产一区二区不卡| 欧美国产日本视频| 91啦中文在线观看| 亚洲电影一区二区| 制服丝袜中文字幕一区| 久久国产精品第一页| 国产情人综合久久777777| 成人黄色小视频| 亚洲人一二三区| 欧美亚洲免费在线一区| 男女激情视频一区| 久久久久国产一区二区三区四区| 国内精品久久久久影院色| 国产清纯在线一区二区www| 99久久精品费精品国产一区二区| 亚洲精品视频免费观看| 欧美日韩高清一区二区三区| 国产精品另类一区| 日韩精品一区在线| 天堂成人国产精品一区| 亚洲免费色视频| 亚洲综合激情小说| 亚洲欧洲日本在线| 欧美国产日韩精品免费观看| 精品乱人伦小说|