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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? sbccksum.c

?? Vxworks下BSP源碼
?? C
字號:
/* sbcCksum.c - internet checksum routines *//* Copyright 1984-1996 Wind River Systems, Inc. */#include "copyright_wrs.h"/* * Copyright (c) 1988, 1992, 1993 *	The Regents of the University of California.  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. All advertising materials mentioning features or use of this software *    must display the following acknowledgment: *	This product includes software developed by the University of *	California, Berkeley and its contributors. * 4. Neither the name of the University nor the names of its contributors *    may be used to endorse or promote products derived from this software *    without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS 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 THE REGENTS OR 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. * *	@(#)in_cksum.c	8.1 (Berkeley) 6/10/93 *//*modification history--------------------01b,27sep01,m_h  printf compile warning01a,05jun01,m_h  created from in_cksum.c 01a*//*DESCRIPTIONThis module provides the checksum function in_cksum as a workaround toavoid a hardware bug on the KS32C50100.  The ARMARCH4 version of this functionis implemented using LDR rx, [ry] where the value of ry is not on a word boundary.According to documentation, this should be legal but, on the Samsung CPU,it generates a data abort.*/#include "vxWorks.h"#include "net/systm.h"#include "net/mbuf.h"#include "logLib.h"#include "stdio.h"/* * Checksum routine for Internet Protocol family headers (Portable Version). * * This routine is very heavily used in the network * code and should be modified for each CPU to be as fast as possible. */#define ADDCARRY(x)  (x > 65535 ? x -= 65535 : x)#define REDUCE {l_util.l = sum; sum = l_util.s[0] + l_util.s[1]; ADDCARRY(sum);}intin_cksum(m, len)	register struct mbuf *m;	register int len;{	register u_short *w;	register int sum = 0;	register int mlen = 0;	int byte_swapped = 0;	union {		char	c[2];		u_short	s;	} s_util;	union {		u_short s[2];		long	l;	} l_util;	for (;m && len; m = m->m_next) {		if (m->m_len == 0)			continue;		w = mtod(m, u_short *);		if (mlen == -1) {			/*			 * The first byte of this mbuf is the continuation			 * of a word spanning between this mbuf and the			 * last mbuf.			 *			 * s_util.c[0] is already saved when scanning previous 			 * mbuf.			 */			s_util.c[1] = *(char *)w;			sum += s_util.s;			w = (u_short *)((char *)w + 1);			mlen = m->m_len - 1;			len--;		} else			mlen = m->m_len;		if (len < mlen)			mlen = len;		len -= mlen;		/*		 * Force to even boundary.		 */		if ((1 & (int) w) && (mlen > 0)) {			REDUCE;			sum <<= 8;			s_util.c[0] = *(u_char *)w;			w = (u_short *)((char *)w + 1);			mlen--;			byte_swapped = 1;		}		/*		 * Unroll the loop to make overhead from		 * branches &c small.		 */		while ((mlen -= 32) >= 0) {			sum += w[0]; sum += w[1]; sum += w[2]; sum += w[3];			sum += w[4]; sum += w[5]; sum += w[6]; sum += w[7];			sum += w[8]; sum += w[9]; sum += w[10]; sum += w[11];			sum += w[12]; sum += w[13]; sum += w[14]; sum += w[15];			w += 16;		}		mlen += 32;		while ((mlen -= 8) >= 0) {			sum += w[0]; sum += w[1]; sum += w[2]; sum += w[3];			w += 4;		}		mlen += 8;		if (mlen == 0 && byte_swapped == 0)			continue;		REDUCE;		while ((mlen -= 2) >= 0) {			sum += *w++;		}		if (byte_swapped) {			REDUCE;			sum <<= 8;			byte_swapped = 0;			if (mlen == -1) {				s_util.c[1] = *(char *)w;				sum += s_util.s;				mlen = 0;			} else				mlen = -1;		} else if (mlen == -1)			s_util.c[0] = *(char *)w;	}	if (len)		printf("cksum: out of data\n");	if (mlen == -1) {		/* The last mbuf has odd # of bytes. Follow the		   standard (the odd byte may be shifted left by 8 bits		   or not as determined by endian-ness of the machine) */		s_util.c[1] = 0;		sum += s_util.s;	}	REDUCE;	return (~sum & 0xffff);}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一区二区久久久久久| 欧美成人精精品一区二区频| 麻豆精品一二三| 一区二区三区免费看视频| 精品日韩在线观看| 欧美人狂配大交3d怪物一区| 91在线porny国产在线看| 午夜精品在线视频一区| 欧美成人伊人久久综合网| 91视频在线观看| 久久精品国产一区二区| 亚洲成av人**亚洲成av**| 亚洲麻豆国产自偷在线| 国产精品白丝在线| 日本一区二区三级电影在线观看| 精品国产一区二区三区久久影院 | 综合电影一区二区三区| 欧美成人女星排名| 日韩三级在线免费观看| 欧美日韩久久不卡| 欧美精品vⅰdeose4hd| 国产精品一级二级三级| 国产福利一区二区三区| 国产成人福利片| 国产成人日日夜夜| 白白色 亚洲乱淫| av电影天堂一区二区在线观看| 粉嫩aⅴ一区二区三区四区 | 美腿丝袜亚洲色图| 亚洲综合另类小说| 日韩国产精品91| 久久精品99久久久| 蜜桃视频在线观看一区二区| 中文字幕亚洲一区二区av在线| 国产精品美女久久久久久久| 久久久不卡网国产精品二区| 国产精品成人免费在线| 69av一区二区三区| 久久人人爽人人爽| 中文字幕日韩一区| 综合久久久久综合| 天天做天天摸天天爽国产一区| 亚洲美女淫视频| 日日嗨av一区二区三区四区| 日韩精品国产欧美| 国产精品一二三四| 91官网在线观看| 在线播放日韩导航| 亚洲国产成人一区二区三区| 一区二区三区在线观看欧美| 日韩—二三区免费观看av| 久久91精品国产91久久小草| 成人综合在线观看| 欧美天堂亚洲电影院在线播放| 欧美日本韩国一区| 国产精品色哟哟| 一区二区三区精品视频在线| 国产一区二区三区高清播放| 欧美日韩一区二区三区四区| 国产夜色精品一区二区av| 丝袜美腿亚洲综合| 久久色视频免费观看| 亚洲精品国产a久久久久久 | 不卡一区中文字幕| 在线日韩av片| 精品在线一区二区| 91.xcao| 亚洲国产精品t66y| 成人小视频免费观看| 3751色影院一区二区三区| 日本一区二区三区dvd视频在线| 性做久久久久久免费观看| 成人激情av网| 国产精品毛片大码女人| 男人的天堂亚洲一区| 在线电影欧美成精品| 亚洲综合免费观看高清完整版| 97久久人人超碰| 中文一区在线播放| 国产主播一区二区三区| 久久久国产一区二区三区四区小说 | 麻豆精品视频在线观看视频| 色综合网色综合| 亚洲精品免费一二三区| 福利一区在线观看| 中文字幕一区二区在线播放| 国产69精品一区二区亚洲孕妇| 欧美国产精品专区| 黄色精品一二区| 国产精品天美传媒| 成人免费毛片app| 亚洲视频一二区| 91麻豆国产香蕉久久精品| 国产亚洲精品福利| 粉嫩aⅴ一区二区三区四区| 亚洲国产高清在线| 91蜜桃免费观看视频| 久久女同精品一区二区| 国产a精品视频| 国产欧美精品区一区二区三区| 99麻豆久久久国产精品免费优播| 亚洲国产激情av| 在线精品视频免费播放| 亚洲影视在线播放| 久久亚洲欧美国产精品乐播| 国产一区二区三区免费看| 亚洲少妇中出一区| 欧美在线不卡一区| 青青草91视频| 亚洲精品一线二线三线无人区| 丰满亚洲少妇av| 亚洲伦理在线免费看| 欧美一区二区人人喊爽| 国内国产精品久久| 美国精品在线观看| 亚洲国产中文字幕| 丁香桃色午夜亚洲一区二区三区| 国产精品久久久久久亚洲毛片| 91日韩在线专区| 亚洲国产日产av| 精品国产电影一区二区| 91九色最新地址| 久久精品国产99久久6| 日韩理论在线观看| 欧美一区二区三区日韩视频| 成人中文字幕在线| 亚洲二区视频在线| 日韩一级免费观看| 欧美三级电影一区| 日本不卡高清视频| 香港成人在线视频| 国产无一区二区| 日韩欧美国产成人一区二区| av电影天堂一区二区在线| 国产一区在线观看视频| 亚洲永久精品国产| 亚洲黄色小视频| 亚洲精品一区二区三区精华液 | av电影一区二区| 老司机午夜精品| 日本色综合中文字幕| 亚洲另类在线一区| 日本一区二区三区国色天香| 欧美一区二区三区四区久久| 欧美aaaaaa午夜精品| 秋霞影院一区二区| 亚洲卡通欧美制服中文| 亚洲欧美日韩系列| 欧美国产日韩一二三区| 国产亚洲一区二区在线观看| 欧美一区二区成人| 日韩欧美专区在线| 欧美日韩日日摸| 欧美精品精品一区| 欧美中文字幕一区| 成人精品小蝌蚪| 狠狠色狠狠色综合| 久久国产精品99久久久久久老狼 | 自拍偷拍亚洲激情| 亚洲色欲色欲www| 一区二区中文字幕在线| 久久综合色鬼综合色| 久久久综合视频| 欧美v亚洲v综合ⅴ国产v| 久久亚洲精品国产精品紫薇| 91精品国产综合久久精品麻豆 | 亚洲一区二区三区视频在线播放| 亚洲已满18点击进入久久| 中文字幕一区二区三区不卡在线| 亚洲女与黑人做爰| 夜夜亚洲天天久久| 久久精品日韩一区二区三区| 欧美韩日一区二区三区| 国产女同性恋一区二区| 一区二区在线观看免费| 亚洲国产精品久久一线不卡| 蜜臀久久久久久久| 久久99精品视频| 91免费看`日韩一区二区| 91麻豆精东视频| 日韩免费视频线观看| 26uuu成人网一区二区三区| 欧美高清在线视频| 中文字幕亚洲在| 美日韩一区二区| 国产999精品久久| 欧美亚洲精品一区| 欧美成人激情免费网| 中文字幕视频一区二区三区久| 亚洲精品成人在线| 欧美激情中文字幕| 日韩成人一区二区三区在线观看| 免费人成黄页网站在线一区二区| 国产精品一区专区| 91亚洲国产成人精品一区二三| 日韩一区二区电影网| 国产亚洲综合性久久久影院| 亚洲成人在线网站| 国产精品一级二级三级| 欧美丰满嫩嫩电影|