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

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

?? rpccksum.c

?? vxworks操作系統(tǒng)Intel體系結構下內核源代碼
?? C
字號:
/* 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);     }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
午夜久久电影网| 91精品国产91综合久久蜜臀| www.在线成人| 欧美综合天天夜夜久久| 欧美肥大bbwbbw高潮| 精品精品欲导航| 久久在线观看免费| 久久久久久久久蜜桃| 亚洲欧美偷拍卡通变态| 亚洲欧美色图小说| 美女高潮久久久| 国产精品亚洲成人| 国产伦精品一区二区三区免费迷| 不卡一区中文字幕| 色婷婷一区二区三区四区| 欧美一区中文字幕| 久久影院午夜片一区| 国产精品网站在线播放| 亚洲免费高清视频在线| 亚洲成人免费av| 丰满少妇在线播放bd日韩电影| 91美女福利视频| 欧美成人vr18sexvr| 国产精品色哟哟网站| 国产精品久久久久久久岛一牛影视| 午夜久久久久久久久久一区二区| 精品一区二区在线免费观看| 欧美艳星brazzers| 精品久久久久99| 亚洲成a人片在线不卡一二三区| 久久精品国产第一区二区三区| 丁香另类激情小说| 欧美mv日韩mv亚洲| 亚洲人吸女人奶水| 国产精品白丝jk白祙喷水网站| 在线视频你懂得一区| 91精品国产综合久久香蕉麻豆 | 亚洲一二三区视频在线观看| 国产做a爰片久久毛片| 色婷婷av久久久久久久| 51精品视频一区二区三区| 《视频一区视频二区| 麻豆91在线播放| 欧美日韩一区小说| 国产欧美一区二区精品性色| 美女视频免费一区| 一本一道久久a久久精品| 精品88久久久久88久久久| 日韩一区精品视频| gogogo免费视频观看亚洲一| 26uuu亚洲综合色欧美 | 欧美日本在线播放| 中文字幕免费不卡| 性做久久久久久免费观看欧美| 99久久久久久| 久久伊人中文字幕| 久久精品国产亚洲一区二区三区| 91香蕉视频污| 国产精品传媒视频| 韩国一区二区三区| 在线精品视频小说1| 亚洲日本乱码在线观看| 国产毛片精品视频| 精品国产91亚洲一区二区三区婷婷| 亚洲一区二区欧美激情| 色综合久久88色综合天天6| 国产亚洲午夜高清国产拍精品| 日日摸夜夜添夜夜添亚洲女人| 欧美日韩精品二区第二页| 中文字幕一区二区三区精华液| 成人av小说网| 国产嫩草影院久久久久| 国产91精品欧美| 久久精品免视看| 免费一区二区视频| 日韩丝袜美女视频| 天天综合色天天| 欧美视频一区二| 亚洲国产日韩a在线播放| 不卡免费追剧大全电视剧网站| 久久精品夜色噜噜亚洲a∨| 久久精品国产成人一区二区三区| 在线综合视频播放| 午夜欧美在线一二页| 大尺度一区二区| 亚洲欧洲一区二区在线播放| 丁香另类激情小说| 一区二区三区四区乱视频| 91视频观看免费| 一区二区三区四区乱视频| 在线观看日韩国产| 视频一区二区不卡| 制服.丝袜.亚洲.另类.中文| 韩国精品一区二区| 精品第一国产综合精品aⅴ| 国产成人精品www牛牛影视| 久久久久久久久一| 97国产一区二区| 亚洲丝袜精品丝袜在线| 粉嫩欧美一区二区三区高清影视| 国产精品久久午夜| 一本大道久久a久久精品综合| 亚洲成人激情自拍| 51精品国自产在线| 国产剧情av麻豆香蕉精品| 久久亚洲精品小早川怜子| 成人午夜碰碰视频| 国产精品黄色在线观看| 成人激情视频网站| 亚洲尤物视频在线| 欧美乱妇15p| 粉嫩13p一区二区三区| 国产精品久久三区| 欧美日韩国产乱码电影| 美腿丝袜亚洲三区| 国产拍揄自揄精品视频麻豆| 99久久精品一区二区| 日韩成人免费电影| 久久久久久久久99精品| 91在线视频免费观看| 三级影片在线观看欧美日韩一区二区 | 国产一区二区在线看| 国产精品电影一区二区| 欧美午夜精品一区| 国模冰冰炮一区二区| 亚洲欧美在线视频| 欧美日韩国产大片| 国产在线不卡一区| 久久精品视频在线看| 欧美无人高清视频在线观看| 免费一级片91| 亚洲乱码国产乱码精品精可以看| 欧美精品日韩综合在线| 成人精品小蝌蚪| 亚洲电影一区二区| 亚洲国产精品精华液ab| 欧美在线观看一区| 成人午夜激情片| 亚洲v精品v日韩v欧美v专区| 中文字幕不卡三区| 欧美日韩五月天| 97se亚洲国产综合自在线不卡| 亚洲高清不卡在线| 中文字幕一区二区视频| 日韩一区二区免费高清| 国产成人精品亚洲午夜麻豆| 日韩精品电影在线| 国产精品毛片大码女人| 久久亚洲综合色| 欧洲精品中文字幕| 99精品欧美一区二区三区小说| 日韩在线一区二区| 国产精品久久久久久亚洲伦| av资源网一区| 韩国av一区二区三区| 亚洲一区二区精品久久av| 中文字幕在线不卡一区| 欧美www视频| 欧美天堂亚洲电影院在线播放| 国产成人精品网址| 激情综合网天天干| 亚洲第一搞黄网站| 亚洲一二三专区| 中文字幕av一区二区三区高| 精品久久久久久久人人人人传媒 | 欧美色综合影院| 97se亚洲国产综合自在线观| 久久不见久久见免费视频1| 亚洲一区免费观看| 国产精品久久久久久久第一福利| 国产色产综合色产在线视频 | 激情丁香综合五月| 亚洲国产成人91porn| 亚洲精品中文字幕在线观看| 国产蜜臀av在线一区二区三区| 精品女同一区二区| 欧美妇女性影城| 色综合久久久网| 99久久精品国产网站| 蜜桃一区二区三区在线观看| 日本午夜精品视频在线观看| 日韩美女精品在线| 亚洲欧美偷拍三级| 国产精品不卡在线观看| 亚洲欧美一区二区三区孕妇| 国产亚洲一区二区三区| 国产日韩欧美麻豆| 精品第一国产综合精品aⅴ| 久久网站最新地址| 精品久久人人做人人爰| 精品88久久久久88久久久| 91精品福利在线一区二区三区| 欧美日韩1234| 在线成人小视频| 欧美天堂一区二区三区| 欧美天天综合网| 欧美三级电影网| 欧美绝品在线观看成人午夜影视| 欧美日韩一区二区三区四区| 欧美日韩在线亚洲一区蜜芽|