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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? rpccksum.c

?? This is a source code of VxWorks
?? C
字號(hào):
/* rpcCksum.c - xdr checksum filter for UDP trame *//* Copyright 1995-1998 Wind River Systems, Inc. */#include "copyright_wrs.h"/*modification history--------------------01d,22jan98,c_c  Removed EXT_FUNC references.01c,15jan96,elp added windll.h to see external function macros		WIN32 DLL external functions are called through pointers.01b,21jun95,tpr changed code inside xdrCksum().01a,12jun95,tpr	created.*//*DESCRIPTIONThis XDR filter either computes the XDR stream checksun and put thisvalue inside the stream or checks that the xdr stream checksum match thechecksum inside the stream.*//* includes */#include <rpc/rpc.h>#include "wdbP.h"#ifdef HOST#include "wpwrutil.h"#endif	/* HOST *//* defines */#define WDB_CKSUM_FLAG	0xffff0000#define WDB_XDR_STREAM_MAX_SIZE	0x1000/* statics */LOCAL BOOL	xdr_wdb_cksum_enabled = TRUE;/******************************************************************************** xdrCksum - returns the ones compliment checksum of some memory.** NOMANUAL*/UINT32 xdrCksum    (    unsigned short *	pAddr,			/* start of buffer */    int			len			/* size of buffer in bytes */    )    {    UINT32	sum = 0;    BOOL	swap = FALSE;    /* take care of unaligned buffer address */    if ((UINT32)pAddr & 0x1)	{	sum += *((unsigned char *) pAddr);	pAddr = (unsigned short *)(((unsigned char *)pAddr) + 1);	len--;	swap = TRUE;	}    /* evaluate checksum */    while (len > 1)	{	sum += * (pAddr ++);	len -= 2;	}    /* take care of last byte */    if (len > 0)	sum = sum + ((*(unsigned char *) pAddr) << 8);    /* fold to 16 bits */    sum = (sum & 0xffff) + (sum >> 16);    sum = (sum & 0xffff) + (sum >> 16);    /* swap if we started on unaligned address */    if (swap)	sum = ((sum & 0x00ff) << 8) | ((sum & 0xff00) >> 8);    return (~sum);    }/********************************************************************************* xdr_CHECKSUM - checksum an XDR stream** When data are encoded in the XDR stream, this function computes the* checksum of the XDR stream pointer to by <xdr>. The checksum is performed* between the start point of the XDR stream and the current position in the* stream. The XDR stream size and checksum value are placed in the stream* at the <xdrStreamSizePos> and <xdrCksumValPos> position.** When data are decoded from the stream, the filter verifies that the stream* checksum value match the checkum value inside the stream. One of the checksum* feature is when the checksum value of a buffer is included inside this buffer,* its checksum value is equal to zero. This feature is used by this function* to check if checksum values are equal.** RETURN: TRUE no error was detected otherwise FALSE.*/BOOL xdr_CHECKSUM    (    XDR *	xdrs,			/* xdr to compute/check the checksum */    UINT32	xdrCksumVal,		/* xdr stream checksum value */    UINT32	xdrStreamSize,		/* xdr stream size */    UINT32	xdrCksumValPos,		/* checksum value inside the steam */    UINT32	xdrStreamSizePos	/* stream size inside the xdr steam */    )    {    long *		xdrStreamAddr;	/* xdr stream buffer address */    u_int		xdrStreamPos;	/* xdr strean current position */    u_int		cksum = 0x00;  	/* checksum() return value */    switch (xdrs->x_op)	{	case XDR_ENCODE:	    /* return if the xdr stream checksum capability is not enabled */	    if (!xdr_wdb_cksum_enabled)		return (TRUE);	    /* save the current position in the xdr stream */	    xdrStreamPos = XDR_GETPOS (xdrs);	    /* get the xdr stream address */	    if ((xdrStreamAddr = xdr_inline (xdrs, 0)) == NULL)		return (FALSE);	    /* compute the xdr stream start address */	    xdrStreamAddr = (long *) ((char *) xdrStreamAddr - xdrStreamPos +	    					sizeof (UINT32));	    /* set the current position at the xdr stream size value */	    if (!XDR_SETPOS (xdrs, xdrStreamSizePos))		return (FALSE);	    /* compute the XDR stream size */	    xdrStreamSize = xdrStreamPos - sizeof (UINT32);	    /* save the xdr stream size into the xdr stream */	    if (!xdr_UINT32 (xdrs, &xdrStreamSize))		return (FALSE);	    /* checksum the xdr stream */	    cksum = (u_int) xdrCksum ((unsigned short *) xdrStreamAddr,								xdrStreamSize);	    cksum = htons (cksum);	    /* set the flag to signal the xdr stream checksum is available */	    cksum |= WDB_CKSUM_FLAG;	    /* set the current position at the xdr stream checksum value */	    if (!XDR_SETPOS (xdrs, xdrCksumValPos))		return (FALSE);	    /* put the xdr stream checksum value in the xdr steam */	    if (!xdr_UINT32 (xdrs, &cksum))		return (FALSE);	    /* restore the current position in the xdr stream */	    if (!XDR_SETPOS (xdrs, xdrStreamPos))		return (FALSE);            break;	case XDR_DECODE:	    if (!xdr_wdb_cksum_enabled) 		{	        /* 	         * if the xdr stream checksum capability is desabled and the	         * checksum is performed on the reveiced stream then turn on	         * the checksum capability and control checkum coherency.	         */		if (xdrCksumVal & WDB_CKSUM_FLAG)		    xdr_wdb_cksum_enabled = TRUE;		else 		    return (TRUE);		}	    else 		if (!(xdrCksumVal & WDB_CKSUM_FLAG))		    {		    /*		     * Turn off checksum capability because the reveiced		     * stream is sent without its checksum.		     */#ifdef	HOST		    wpwrLogWarn ("The agent doesn't provide XDR stream checksum\n");#endif		    xdr_wdb_cksum_enabled = FALSE;		    return (TRUE);		    }	    /* save the current position in the xdr stream */	    xdrStreamPos = XDR_GETPOS (xdrs);	    /* get the xdr stream address */	    if ((xdrStreamAddr = xdr_inline (xdrs, 0)) == NULL)		return (FALSE);	    /* compute the xdr stream start address */	    xdrStreamAddr = (long *) ((char *) xdrStreamAddr - xdrStreamPos +						sizeof (UINT32));	    /*	     * check the xdr stream size is not too big. The size	     * field may be corrupted.	     */	    if (WDB_XDR_STREAM_MAX_SIZE < xdrStreamSize)		return (FALSE);	    /* checksum the xdr stream */	    cksum = (u_int) xdrCksum ((unsigned short *) xdrStreamAddr,								xdrStreamSize);	    /* 	     * if the received stream is not corrupted its checksun value 	     * should be equal to zero because its checksum value is inside	     * the stream.	     * if checksum is different from 0 then the received stream is 	     * corrupted. So return FLASE .	     */	    if ((cksum & ~WDB_CKSUM_FLAG) != 0)		return (FALSE);            break;	default:	    break;	}     return (TRUE);     }

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产激情视频一区二区在线观看| 色婷婷综合激情| 91精品国产一区二区人妖| 性久久久久久久久| 色综合天天综合网国产成人综合天 | 国产盗摄视频一区二区三区| 久久综合五月天婷婷伊人| 日韩一区二区免费视频| 九色综合狠狠综合久久| 欧美嫩在线观看| 韩国三级电影一区二区| 欧美精品tushy高清| 国产成a人无v码亚洲福利| 日韩欧美资源站| 成人成人成人在线视频| 国产精品久久免费看| 在线视频一区二区三区| 日韩精品电影在线观看| 精品美女被调教视频大全网站| 91官网在线观看| 亚洲一卡二卡三卡四卡五卡| 在线观看一区日韩| 激情丁香综合五月| 91官网在线观看| 精品制服美女丁香| 亚洲自拍偷拍av| 亚洲欧美日韩在线不卡| 国产精品久久久久久久久搜平片| 国产盗摄视频一区二区三区| 精品一区二区三区视频| 26uuu亚洲综合色| 91精选在线观看| 亚洲欧洲日韩一区二区三区| 久久久久久久久久美女| 一区二区三区av电影 | 国产成人免费xxxxxxxx| 国产综合久久久久久久久久久久| 久久嫩草精品久久久久| 欧美精品一区二区蜜臀亚洲| 国产欧美一区二区精品秋霞影院 | 国产乱人伦精品一区二区在线观看 | 日韩av中文字幕一区二区三区| 在线观看亚洲a| 日本韩国一区二区| 国产jizzjizz一区二区| 久久久国际精品| 亚洲欧美色图小说| 91精品在线麻豆| 国产精品少妇自拍| 午夜激情久久久| 美女在线视频一区| 亚洲成在人线免费| 美女mm1313爽爽久久久蜜臀| 成人黄页毛片网站| 91美女在线观看| 欧美电视剧免费观看| 日韩视频免费观看高清完整版| 中文字幕亚洲不卡| 国产精品第13页| 午夜精品久久一牛影视| 九九九久久久精品| 日韩专区中文字幕一区二区| 国产精品中文字幕日韩精品| 免费高清视频精品| 99天天综合性| 欧洲一区在线观看| 国产欧美一区二区三区网站 | 日韩一区和二区| 国产欧美一区二区三区沐欲| 中文字幕一区视频| 亚洲综合在线五月| 国产成人精品一区二区三区四区| 久草这里只有精品视频| 欧美日韩亚洲国产综合| 成人影视亚洲图片在线| 日本高清视频一区二区| 中文字幕不卡在线观看| 日韩一级精品视频在线观看| 一区二区三区中文字幕电影| 亚洲成a人片在线观看中文| 成人av资源在线| 日韩女优视频免费观看| 欧美伊人久久大香线蕉综合69| 2020国产精品自拍| 欧美精品一区二区三区视频| 国产精品久久久久影视| 国产女人18水真多18精品一级做| 日韩国产欧美在线播放| 欧美亚洲一区三区| 成人动漫中文字幕| 欧美一级高清片| 日韩国产精品久久久| 一区二区三区在线观看视频| 成人教育av在线| 91免费看视频| 精品处破学生在线二十三| 日本伊人午夜精品| 偷窥少妇高潮呻吟av久久免费| 日本久久一区二区| 欧美一卡二卡在线观看| 亚洲午夜免费电影| 日本精品免费观看高清观看| 粉嫩一区二区三区性色av| 精品国产一二三| 中文字幕av一区 二区| 亚州成人在线电影| 3d成人动漫网站| 成人精品国产一区二区4080| 久久久亚洲国产美女国产盗摄| 老司机午夜精品99久久| 毛片不卡一区二区| 欧美一区国产二区| 国产欧美视频一区二区三区| 日韩一区精品字幕| 日韩欧美一区中文| 国产精品久久久久久久久久久免费看 | 一区二区三区电影在线播| 亚洲制服丝袜一区| www.66久久| 亚洲精品中文在线| 欧美韩国日本不卡| 91色视频在线| 亚洲国产日韩综合久久精品| 日韩电影免费一区| 欧美成人a∨高清免费观看| 日韩在线一二三区| 一本久道久久综合中文字幕| 亚洲福利一二三区| 99视频有精品| 欧美一级片在线| 国产精品一色哟哟哟| 91黄色免费看| 五月激情综合网| 欧美xxxxxxxxx| 亚洲精品一区在线观看| 免费人成黄页网站在线一区二区| 精品国产免费人成在线观看| 亚洲国产精品精华液ab| 色成年激情久久综合| 久久精品免费在线观看| 亚洲成人黄色小说| 日韩午夜激情电影| 亚洲国产日韩在线一区模特| 欧美精品日韩一区| 国产乱人伦偷精品视频不卡| 欧美电影在线免费观看| 日韩高清不卡一区二区| 久久精品欧美日韩精品| 国产91露脸合集magnet| 国产欧美视频在线观看| 欧美亚洲一区三区| 亚洲另类在线一区| 成人毛片老司机大片| 中文av一区二区| 精品在线亚洲视频| 国产精品每日更新| 538在线一区二区精品国产| 日产国产高清一区二区三区| 91精品国产色综合久久| 成人丝袜18视频在线观看| 日韩欧美二区三区| 紧缚捆绑精品一区二区| 一区二区三区中文字幕在线观看| 亚洲精品ww久久久久久p站 | 日韩福利视频导航| 亚洲精品高清视频在线观看| 91精品国产综合久久婷婷香蕉 | 在线电影一区二区三区| 91精品国产高清一区二区三区蜜臀 | 亚洲成年人影院| 欧美日韩一区不卡| av网站一区二区三区| 国产精品久久久久久久第一福利| 一本色道综合亚洲| 韩国女主播一区| 欧美日韩在线电影| 日韩伦理av电影| 精品福利在线导航| 欧美久久久久久久久| 亚洲精品成人少妇| 久久久久久久久久久黄色| 欧美日韩亚洲不卡| 在线免费不卡电影| 精品日韩av一区二区| 欧美日韩一区二区电影| 91欧美激情一区二区三区成人| 五月天婷婷综合| 一区二区三区日韩精品视频| 久久蜜桃av一区二区天堂 | 懂色一区二区三区免费观看| 午夜精品久久一牛影视| 一区二区三区在线影院| 国产精品国产三级国产三级人妇| 欧美一二三区精品| 久久不见久久见免费视频7| 日韩精品一卡二卡三卡四卡无卡| 一区二区在线观看免费| 国产蜜臀av在线一区二区三区| 91视频一区二区| 成人爱爱电影网址|